/**
 * assets/css/login.css
 * Styles for the admin login page.
 */

:root {
    --primary: #00C853;
    --primary-dark: #009624;
    --primary-light: #5EFC82;
    --secondary: #2962FF;
    --accent: #FF6B35;
    --dark: #1a1f2e;
    --darker: #121625;
    --gray: #8a94a6;
    --light-gray: #2a3042;
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(0,0,0,.15);
    --transition: all .2s ease;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.login-card {
    background: var(--dark);
    border-radius: var(--radius);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,200,83,0.3);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-text {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.error-message {
    background: rgba(255, 107, 53, 0.15);
    border-left: 4px solid var(--accent);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    0% { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--gray);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    background: var(--darker);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
    outline: none;
}

.password-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15);
}

.password-wrapper .toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: var(--transition);
}

.password-wrapper .toggle-btn:hover {
    color: var(--white);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,200,83,0.25);
}

.btn-login:active {
    transform: scale(0.98);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--gray);
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }
}