/* ===================================
   AUTH — MODERNLAND STYLE
   Navy #1a2332 | Gold #c9a84c | White
   =================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #0d1520;
}

.auth-wrapper { display: flex; width: 100%; min-height: 100vh; }

/* ─── Left Panel ─────────────────────────────────────────── */
.auth-left {
    flex: 1;
    background: linear-gradient(160deg, #1a2332 0%, #0d1520 60%, #162040 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-left-content { position: relative; z-index: 2; max-width: 500px; }

.brand-logo { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 3rem; }

.brand-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, #c9a84c, #e8c96a);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}

.brand-icon svg { width: 28px; height: 28px; color: #1a2332; }
.brand-name { font-size: 1.625rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.75rem; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; }

.hero-title {
    font-size: 2.75rem; font-weight: 800; color: white;
    line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -1px;
}

.hero-title span { color: #c9a84c; }

.hero-subtitle { font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin-bottom: 3rem; }

.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }

.feature-item { display: flex; align-items: flex-start; gap: 1rem; }

.feature-icon {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.feature-icon svg { width: 20px; height: 20px; }
.feature-gold   { background: rgba(201,168,76,0.15); color: #c9a84c; border: 1px solid rgba(201,168,76,0.2); }
.feature-blue   { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.feature-green  { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

.feature-item strong { display: block; font-size: 0.938rem; font-weight: 600; color: white; margin-bottom: 0.2rem; }
.feature-item span   { font-size: 0.813rem; color: rgba(255,255,255,0.5); }

/* Decorative */
.auth-left-decoration { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; }
.deco-1 { width: 500px; height: 500px; top: -150px; right: -150px; border: 1px solid rgba(201,168,76,0.06); }
.deco-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; border: 1px solid rgba(255,255,255,0.04); }
.deco-3 { width: 180px; height: 180px; top: 45%; right: 8%; background: radial-gradient(circle, rgba(201,168,76,0.04), transparent); }
.deco-4 { width: 80px; height: 80px; top: 20%; left: 15%; background: rgba(201,168,76,0.06); border-radius: 50%; filter: blur(20px); }

/* ─── Right Panel ────────────────────────────────────────── */
.auth-right {
    width: 500px;
    background: #f8f9fb;
    display: flex; align-items: center; justify-content: center;
    padding: 2.5rem;
}

.login-card { width: 100%; max-width: 420px; }

.login-header { margin-bottom: 2rem; }

.login-header h2 {
    font-size: 2rem; font-weight: 800; color: #0d1520;
    letter-spacing: -0.75px; margin-bottom: 0.375rem;
}

.login-header p { color: #64748b; font-size: 0.938rem; }

/* Alerts */
.alert {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.875rem 1rem; border-radius: 10px;
    font-size: 0.875rem; margin-bottom: 1.5rem;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Form */
.login-form { display: flex; flex-direction: column; gap: 1.375rem; }
.form-group  { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label { font-size: 0.875rem; font-weight: 600; color: #1e293b; }

.input-wrapper { position: relative; }

.input-icon {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #94a3b8; pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.8rem 0.9rem 0.8rem 2.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.938rem; font-family: inherit;
    background: white; color: #0d1520;
    transition: all 0.2s; outline: none;
}

.form-input:focus { border-color: #c9a84c; box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-input.is-error { border-color: #ef4444; }
.form-input.is-error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

.toggle-password {
    position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: #94a3b8;
    display: flex; align-items: center; padding: 0;
}

.toggle-password svg { width: 18px; height: 18px; }
.toggle-password:hover { color: #475569; }

.field-error { font-size: 0.813rem; color: #ef4444; }

/* Login Button */
.btn-login {
    display: flex; align-items: center; justify-content: center; gap: 0.625rem;
    width: 100%; padding: 0.9rem;
    background: linear-gradient(135deg, #1a2332, #243347);
    color: white; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(26,35,50,0.3);
    margin-top: 0.25rem; position: relative; overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.15), transparent);
    opacity: 0; transition: opacity 0.2s;
}

.btn-login:hover::after { opacity: 1; }
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,35,50,0.4); }
.btn-login:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-arrow { width: 18px; height: 18px; }

.spin { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.login-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: #94a3b8; font-size: 0.813rem;
}

.login-divider::before, .login-divider::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

/* Footer */
.login-footer {
    margin-top: 1.75rem; padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center; font-size: 0.813rem; color: #94a3b8; line-height: 1.9;
}

.login-footer code {
    background: #f1f5f9; padding: 0.125rem 0.4rem;
    border-radius: 4px; font-size: 0.75rem; color: #475569;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) { .auth-left { display: none; } .auth-right { width: 100%; background: white; } }
@media (max-width: 480px) { .auth-right { padding: 1.5rem; } }
