/* ==========================================================================
   AVENHOLT — Auth Surface Modern Layer (2026 refresh)
   Dark glass sign-in / registration / OTP treatment matching the portal
   shells. Scoped entirely to .auth-shell so the public site is unaffected.
   ========================================================================== */

.auth-shell {
    position: relative;
    background:
        radial-gradient(900px 420px at 110% -10%, rgba(13, 148, 136, 0.16), transparent 60%),
        radial-gradient(700px 400px at -15% 115%, rgba(9, 30, 50, 0.5), transparent 60%),
        linear-gradient(160deg, #061424 0%, #04101d 55%, #071a2c 100%);
    min-height: 70vh;
}

/* ---------- Glass card ---------- */

.auth-shell .auth-card {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 1.4rem !important;
    box-shadow: 0 30px 60px -20px rgba(2, 10, 18, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    overflow: hidden;
}

.auth-shell .auth-card .card-header {
    background:
        radial-gradient(300px 140px at 85% 0%, rgba(13, 148, 136, 0.25), transparent 70%),
        linear-gradient(135deg, #0a2236 0%, #061424 100%) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
    padding: 2rem 1.5rem 1.6rem;
}

.auth-shell .auth-card .card-header h3 {
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.auth-shell .auth-card .card-header .text-white-50 {
    color: #94a3b8 !important;
}

.auth-shell .auth-card .badge.bg-teal {
    background: linear-gradient(135deg, #0d9488, #006a63) !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 6px 14px -4px rgba(13, 148, 136, 0.55);
}

/* ---------- Form controls (dark) ---------- */

.auth-shell .form-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.auth-shell .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #f1f5f9;
    border-radius: 0.8rem;
    padding: 0.6rem 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-shell .form-control::placeholder {
    color: #64748b;
}

.auth-shell .form-control:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: #14b8a6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.18);
}

.auth-shell .form-control.is-invalid {
    border-color: #f87171;
    background-image: none;
}

.auth-shell .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

.auth-shell .invalid-feedback {
    color: #fca5a5;
}

/* OTP field emphasis */
.auth-shell input[name="code"] {
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(20, 184, 166, 0.4);
    color: #5eead4;
}

/* ---------- Checkbox ---------- */

.auth-shell .form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.4);
}

.auth-shell .form-check-input:checked {
    background-color: #0d9488;
    border-color: #0d9488;
}

.auth-shell .form-check-label {
    color: #94a3b8;
}

/* ---------- Buttons ---------- */

.auth-shell .btn-navy {
    background: linear-gradient(135deg, #0d9488 0%, #006a63 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px -8px rgba(13, 148, 136, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.02em;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, filter 0.2s ease;
}

.auth-shell .btn-navy:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(13, 148, 136, 0.7);
    color: #fff;
}

/* ---------- Links & footer strip ---------- */

.auth-shell .text-teal {
    color: #2dd4bf !important;
}

.auth-shell .text-teal:hover {
    color: #5eead4 !important;
}

.auth-shell .border-top {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.auth-shell .small.text-muted {
    color: #94a3b8 !important;
}

/* ---------- Split-screen portal layout ---------- */

.auth-split { display: flex; align-items: center; }
.auth-split .split-frame { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1rem; }
.auth-split .split-card {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px -20px rgba(2, 10, 18, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
@media (min-width: 992px) {
    .auth-split .split-card { grid-template-columns: 1.08fr 1fr; min-height: 620px; }
}

/* Brand panel */
.auth-split .brand-panel {
    position: relative;
    overflow: hidden;
    padding: 2.75rem 2.75rem 2.25rem;
    background:
        radial-gradient(420px 260px at 90% -10%, rgba(13, 148, 136, 0.22), transparent 70%),
        radial-gradient(300px 300px at -10% 110%, rgba(9, 30, 50, 0.85), transparent 70%),
        linear-gradient(150deg, #0a2236 0%, #061424 60%, #04101d 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}
.auth-split .brand-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    pointer-events: none;
    background-image: linear-gradient(rgba(148, 163, 184, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.35) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 75%);
}
.auth-split .auth-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--auth-accent, rgba(13, 148, 136, 0.22));
    border: 1px solid var(--auth-accent-border, rgba(13, 148, 136, 0.55));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.auth-split .brand-headline {
    font-family: 'Playfair Display', serif;
    color: #f8fafc;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
    max-width: 22ch;
}
.auth-split .brand-lead {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 46ch;
    margin-bottom: 1.6rem;
}
.auth-split .auth-feature-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.86rem;
    padding: 0.42rem 0;
}
.auth-split .auth-feature-list .material-symbols-outlined {
    font-size: 20px;
    color: var(--auth-accent-icon, #14b8a6);
    margin-top: 0.05rem;
}
.auth-split .brand-trust {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}
.auth-split .brand-trust .material-symbols-outlined {
    color: var(--auth-accent-icon, #14b8a6);
    font-size: 26px;
}
.auth-split .brand-trust strong { display: block; color: #f1f5f9; font-size: 0.82rem; }
.auth-split .brand-trust span { display: block; color: #64748b; font-size: 0.72rem; margin-top: 0.15rem; }

/* Mobile brand strip */
.auth-split .brand-panel-mobile { padding: 1.75rem 1.5rem 0; }
.auth-split .brand-panel-mobile .brand-headline { font-size: 1.45rem; max-width: none; }

/* Form panel */
.auth-split .form-panel { padding: 1.5rem 1.5rem 2rem; }
@media (min-width: 992px) {
    .auth-split .form-panel {
        padding: 3rem 3rem 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
.auth-split .form-title {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}
.auth-split .form-subtitle { color: #94a3b8; font-size: 0.86rem; }
.auth-split .auth-form-logo { height: 34px; width: auto; object-fit: contain; }

/* Password visibility toggle */
.auth-split .password-wrap { position: relative; }
.auth-split .password-wrap .form-control { padding-right: 2.75rem; }
.auth-split .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.6rem;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #64748b;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}
.auth-split .password-toggle:hover { color: #5eead4; }
.auth-split .password-toggle .material-symbols-outlined { font-size: 20px; }

/* Accent-aware sign-in button (teal default, violet for agency) */
.auth-split .btn-navy {
    background: linear-gradient(135deg, var(--auth-accent-btn-1, #0d9488) 0%, var(--auth-accent-btn-2, #006a63) 100%) !important;
    box-shadow: 0 10px 22px -8px rgba(13, 148, 136, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------- Selection ---------- */

.auth-shell ::selection {
    background: rgba(13, 148, 136, 0.3);
}

/* Wide variant for multi-field forms (registration) */
.auth-split .split-frame.split-wide { max-width: 1240px; }
@media (min-width: 992px) {
    .auth-split .split-wide .split-card { grid-template-columns: 0.85fr 1.15fr; }
}

/* Checkbox labels inside split forms */
.auth-split .form-check-label { color: #94a3b8; }
.auth-split .form-check-label a { font-weight: 700; }
