/* ═══════════════════════════════════════════════
   LOGIN — Login page specific styles
   ═══════════════════════════════════════════════ */

/* Body override for login (flex layout) */
body.login-page { min-height: 100vh; display: flex; }

/* ═══ FIXED LOGO ═══ */
.login-logo-fixed {
    position: fixed; top: 24px; left: 32px; z-index: 10;
    text-decoration: none; display: flex; align-items: center;
}

/* ═══ LAYOUT ═══ */
.login-split { display: flex; width: 100%; min-height: 100vh; }

/* ═══ LEFT PANEL — BRAND ═══ */
.login-brand {
    flex: 0 0 52%;
    background: linear-gradient(170deg, #041828 0%, var(--navy) 40%, var(--navy-2) 100%);
    color: #fff; display: flex; flex-direction: column; justify-content: center;
    padding: 64px 72px; position: relative; overflow: hidden;
}
.login-brand-ambient {
    position: absolute; top: 30%; left: 55%; transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,191,179,0.07) 0%, rgba(0,191,179,0.02) 30%, transparent 60%);
    pointer-events: none;
}
.login-brand-ambient-2 {
    position: absolute; bottom: -10%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,191,179,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.login-brand-content { position: relative; z-index: 1; max-width: 480px; }

.login-headline { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.login-headline em { font-style: italic; color: var(--teal); font-weight: 500; }
.login-subline { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 48px; max-width: 400px; }

/* Trust badges */
.login-trust { display: flex; align-items: center; gap: 24px; margin-top: 48px; }
.login-trust-item { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.35); }
.login-trust-item svg { opacity: 0.45; }

/* ═══ RIGHT PANEL — FORM ═══ */
.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 56px; background: var(--white); }
.login-form-wrap { width: 100%; max-width: 400px; }

.login-form-header { margin-bottom: 36px; }
.login-form-title { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.login-form-subtitle { font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.login-form-subtitle a { color: var(--teal); text-decoration: none; font-weight: 600; }
.login-form-subtitle a:hover { text-decoration: underline; }

/* Social buttons */
.login-social { margin-bottom: 28px; }
.login-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 12px 16px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--white);
    font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink);
    cursor: pointer; transition: all 0.2s var(--ease);
}
.login-social-btn:hover { border-color: var(--ink-4); background: var(--warm-soft); }
.login-social-btn svg { flex-shrink: 0; }

/* Divider */
.login-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.login-divider-line { flex: 1; height: 1px; background: var(--border); }
.login-divider-text { font-size: 12px; font-weight: 500; color: var(--ink-4); text-transform: uppercase; letter-spacing: 0.06em; }

/* Form fields */
.login-field { margin-bottom: 20px; transition: transform 0.2s var(--ease); }
.login-password-wrap { transition: transform 0.2s var(--ease); }
.login-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.login-input {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--white);
    font-family: var(--sans); font-size: 14px; color: var(--ink);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.login-input::placeholder { color: var(--ink-4); }
.login-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,179,0.1); }

/* Focus lift */
.login-field.focused, .login-password-wrap.focused { transform: translateY(-1px); }

/* Password toggle */
.login-password-wrap { position: relative; }
.login-password-wrap .login-input { padding-right: 48px; }
.login-password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--ink-4);
    padding: 4px; display: flex; align-items: center; transition: color 0.2s;
}
.login-password-toggle:hover { color: var(--ink-3); }

/* Options row */
.login-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; cursor: pointer; }
.login-checkbox {
    width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border);
    appearance: none; -webkit-appearance: none; cursor: pointer; transition: all 0.2s; position: relative;
}
.login-checkbox:checked { background: var(--teal); border-color: var(--teal); }
.login-checkbox:checked::after {
    content: ''; position: absolute; left: 4.5px; top: 1.5px;
    width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* Consent checkboxes (signup only) */
.login-consent { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.login-consent-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.5; cursor: pointer; }
.login-consent-label a { color: var(--teal); text-decoration: none; font-weight: 600; }
.login-consent-label a:hover { text-decoration: underline; }
.login-consent-label .login-checkbox { margin-top: 2px; flex-shrink: 0; }

.login-forgot { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 600; }
.login-forgot:hover { text-decoration: underline; }

/* Submit */
.login-submit {
    width: 100%; padding: 14px; border-radius: 10px; border: none;
    background: var(--navy); color: #fff; font-family: var(--sans);
    font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s var(--ease);
}
.login-submit:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(5,28,44,0.25); }
.login-submit:active { transform: translateY(0); }
.login-submit.loading { opacity: 0.7; pointer-events: none; }

/* Terms reminder */
.login-terms { margin-top: 16px; font-size: 12px; color: var(--ink-4); text-align: center; line-height: 1.5; }
.login-terms a { color: var(--ink-3); text-decoration: none; font-weight: 500; }
.login-terms a:hover { color: var(--ink); text-decoration: underline; }

/* Error / Success messages */
.login-error {
    padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5;
    margin-bottom: 20px;
    background: rgba(239,68,68,0.08); color: #dc2626; border: 1px solid rgba(239,68,68,0.15);
}
.login-success {
    padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; line-height: 1.5;
    margin-bottom: 20px;
    background: rgba(16,185,129,0.08); color: #059669; border: 1px solid rgba(16,185,129,0.15);
}

/* Footer — back to home */
.login-footer { margin-top: 32px; text-align: center; }
.login-back-home {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: var(--ink-4);
    text-decoration: none; transition: color 0.2s var(--ease);
}
.login-back-home:hover { color: var(--ink-2); }
.login-back-home svg { transition: transform 0.2s var(--ease); }
.login-back-home:hover svg { transform: translateX(-2px); }

/* ═══ ANIMATIONS ═══ */
.fade-in { opacity: 0; transform: translateY(16px); animation: fadeIn 0.6s var(--ease) forwards; }
.fd1 { animation-delay: 0.1s; } .fd2 { animation-delay: 0.2s; } .fd3 { animation-delay: 0.3s; }
.fd4 { animation-delay: 0.4s; } .fd5 { animation-delay: 0.5s; } .fd6 { animation-delay: 0.6s; }
.fd7 { animation-delay: 0.7s; } .fd8 { animation-delay: 0.8s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.fade-in-left { opacity: 0; transform: translateX(-20px); animation: fadeInLeft 0.7s var(--ease) forwards; }
.fdl1 { animation-delay: 0.15s; } .fdl2 { animation-delay: 0.3s; } .fdl3 { animation-delay: 0.45s; }
.fdl4 { animation-delay: 0.6s; } .fdl5 { animation-delay: 0.75s; }
@keyframes fadeInLeft { to { opacity: 1; transform: translateX(0); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .login-brand { flex: 0 0 42%; padding: 48px 40px; }
    .login-headline { font-size: 30px; }
    .login-form-panel { padding: 48px 40px; }
}
@media (max-width: 768px) {
    .login-logo-fixed { position: absolute; top: 20px; left: 24px; }
    .login-split { flex-direction: column; }
    .login-brand { flex: none; padding: 56px 32px 40px; min-height: auto; }
    .login-brand-content { max-width: 100%; }
    .login-headline { font-size: 26px; }
    .login-trust { flex-wrap: wrap; gap: 16px; }
    .login-form-panel { padding: 40px 32px; }
}
@media (max-width: 480px) {
    .login-logo-fixed { top: 16px; left: 20px; }
    .login-brand { padding: 52px 24px 32px; }
    .login-form-panel { padding: 32px 24px; }
    .login-headline { font-size: 22px; }
    .login-stats { gap: 16px; flex-wrap: wrap; }
    .login-stat-val { font-size: 20px; }
    .login-form-title { font-size: 24px; }
}

/* ═══ REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .fade-in-left { transition: none; animation: none; opacity: 1; transform: none; }
    .login-submit, .login-social-btn, .login-input, .login-field, .login-password-wrap { transition: none; }
}
