/* ── Login / Auth page styles ─────────────────────────────────────────── */
/* All colours driven by CSS variables set in theme-custom.css            */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

/* ── Split-screen wrapper ── */
.auth-split-wrap {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── Left panel: brand / marketing ── */
.auth-split-left {
    flex: 0 0 60%;
    max-width: none;
    position: relative;
    overflow: hidden;
    padding: 40px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg,
        var(--login-grad-start, #1e2a5e) 0%,
        var(--app-main-deep,    #0f172a) 35%,
        var(--login-grad-end,   #6b1f35) 100%);
}
.auth-left-glow {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}
.auth-left-glow--1 { width: 480px; height: 480px; top: -120px; right: -160px; }
.auth-left-glow--2 { width: 420px; height: 420px; bottom: -140px; right: 60px; }

/* ── Top brand row ── */
.auth-brand-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.auth-brand-logo {
    display: inline-flex;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.auth-brand-logo img { width: 100px; height: 46px; object-fit: contain; display: block; }
.auth-brand-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 22px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.auth-brand-placeholder img { width: 100px; height: 46px; object-fit: contain; display: block; }

/* ── Body copy ── */
.auth-left-body { position: relative; padding: 24px 0; }
.auth-eyebrow {
    color: var(--app-sub-light, #fdba8c);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.auth-headline {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 18px;
    text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.auth-headline span { color: var(--app-sub-light, #fdba8c); }
.auth-tagline {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: rgba(255,255,255,.92);
    font-size: 1.15rem;
    margin: 0 0 26px;
}
.auth-feature-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
}
.auth-feature-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--app-sub-light, #fdba8c);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(var(--app-sub-rgb, 253,186,140), .18);
}
.auth-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    color: var(--app-sub-light, #fdba8c);
    font-size: .88rem;
    margin: 0;
    opacity: .9;
}

/* ── Left footer ── */
.auth-left-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .78rem;
    color: rgba(255,255,255,.55);
}
.auth-left-footer strong { color: rgba(255,255,255,.85); }
.auth-left-footer a {
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-left-footer a:hover { color: var(--app-sub-light, #fdba8c); }

/* ── Right panel: sign-in form ── */
.auth-split-right {
    flex: 0 0 40%;
    min-width: 380px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
}
.auth-form-wrap { width: 100%; max-width: 380px; }
.auth-form-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
}

/* ── Labels ── */
.auth-form-wrap .form-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b !important;
}

/* ── Inputs ── */
.auth-form-wrap .form-control {
    background: #ffffff !important;
    border: 1.5px solid rgba(var(--app-sub-rgb, 217,119,6), 0.45);
    color: #1e293b !important;
    border-radius: 8px;
    height: 46px;
    transition: border-color .2s, box-shadow .2s;
}
.auth-form-wrap .form-control::placeholder { color: #b6c0cc !important; }
.auth-form-wrap .form-control:focus {
    border-color: var(--app-sub, #d97706);
    box-shadow: 0 0 0 3px rgba(var(--app-sub-rgb, 217,119,6), 0.16);
}
.auth-form-wrap .form-control.is-invalid {
    border-color: #dc2626;
    background-image: none;
    box-shadow: none;
}

/* ── Autofill override (browser default autofill bg/text otherwise wins) ── */
.auth-form-wrap .form-control:-webkit-autofill,
.auth-form-wrap .form-control:-webkit-autofill:hover,
.auth-form-wrap .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b;
    border-color: rgba(var(--app-sub-rgb, 217,119,6), 0.45) !important;
}

/* ── Forgot password ── */
.auth-forgot-link {
    color: var(--app-sub, #d97706) !important;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}
.auth-forgot-link:hover { color: var(--app-sub-dark, #b45309) !important; }

/* ── Remember me ── */
.auth-form-wrap .form-check-input {
    background-color: #ffffff;
    border-color: rgba(var(--app-sub-rgb, 217,119,6), 0.55);
}
.auth-form-wrap .form-check-input:checked {
    background-color: var(--app-sub, #d97706);
    border-color: var(--app-sub, #d97706);
}
.auth-form-wrap .form-check-label {
    color: #334155 !important;
    font-size: .875rem;
}

/* ── Sign In button ── */
.btn-signin {
    background: linear-gradient(135deg, var(--app-sub, #d97706), var(--app-sub-light, #f59e0b));
    border: none;
    color: #ffffff;
    border-radius: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: all .22s;
    box-shadow: 0 6px 20px rgba(var(--app-sub-rgb, 217,119,6), 0.40);
}
.btn-signin:hover, .btn-signin:focus {
    background: linear-gradient(135deg, var(--app-sub-dark, #b45309), var(--app-sub, #d97706));
    color: #ffffff;
    box-shadow: 0 8px 26px rgba(var(--app-sub-rgb, 217,119,6), 0.50);
    transform: translateY(-1px);
}
.btn-signin:active { transform: translateY(0); }

/* ── Validation errors ── */
.auth-form-wrap .invalid-feedback { color: #dc2626; font-size: 0.78rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    html, body { overflow: auto; }
    .auth-split-wrap { flex-direction: column; }
    .auth-split-left { max-width: none; padding: 32px; }
    .auth-headline { font-size: 1.9rem; }
    .auth-split-right { padding: 32px 20px; }
}

/* ── ESS login disclaimer page (essdisclaimer/index) ── */
.disclaimer-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #eef1f6);
    padding: 32px 16px;
}
.disclaimer-card {
    width: 100%; max-width: 640px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 36px 40px;
}
.disclaimer-brand { text-align: center; margin-bottom: 18px; }
.disclaimer-brand img { max-height: 48px; }
.disclaimer-title {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 1.3rem; font-weight: 700; color: #1e293b;
    margin-bottom: 4px; text-align: center;
}
.disclaimer-title i { color: var(--app-sub, #d97706); }
.disclaimer-subtitle {
    text-align: center; color: #64748b; font-size: .85rem;
    margin-bottom: 20px;
}
.disclaimer-content {
    max-height: 320px; overflow-y: auto;
    border: 1.5px solid #e2e8f0; border-radius: 12px;
    padding: 16px 18px;
    background: #f8fafc;
    color: #334155; font-size: .9rem; line-height: 1.6;
    margin-bottom: 20px;
}
.disclaimer-check { margin-bottom: 18px; }
.disclaimer-check .form-check-input:checked {
    background-color: var(--app-sub, #d97706);
    border-color: var(--app-sub, #d97706);
}
.disclaimer-check .form-check-label { color: #334155; font-size: .875rem; }
.btn-signin:disabled {
    opacity: .55; cursor: not-allowed;
    box-shadow: none; transform: none;
}
