@import url('./fonts.css');

/* ==========================================================================
   AUTHENTICATION SCREENS - Premium Executive Obsidian Dark Theme
   ========================================================================== */

:root {
    --navy-950: #061939;
    --navy-900: #0B1F44;
    --navy-800: #13295A;
    --blue-600: #0A50BF;
    --blue-500: #0E63E6;
    --cyan-400: #38bdf8;
    --teal-400: #2dd4bf;
    --green-400: #34d399;
    --red-400: #fb7185;
    --gold-500: #c39a55;
    --gold-400: #d4af6b;
    --gold-300: #e8d3a4;
    --ink: #f8fafc;
    --ink-secondary: #cbd5e1;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.1);
    --panel: #0B1F44;
    --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { min-height: 100%; }
body {
    min-height: 100vh;
    font-family: 'Futura Cyrillic', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: #061939;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color-scheme: dark;
}

button, input { font: inherit; }
a { color: inherit; }

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(600px, 61fr) minmax(460px, 39fr);
    background: #061939;
}

/* ── Brand panel (Left Side) ─────────────────────────────────────────────── */

.brand-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 6%, rgba(14, 99, 230, .28), transparent 36%),
        radial-gradient(circle at 88% 30%, rgba(56, 189, 248, .14), transparent 32%),
        radial-gradient(circle at 70% 96%, rgba(212, 175, 107, .12), transparent 44%),
        linear-gradient(158deg, var(--navy-800) 0%, var(--navy-900) 42%, var(--navy-950) 100%);
    padding: clamp(30px, 3vw, 54px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(22px, 3vh, 40px);
    isolation: isolate;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-panel::before {
    content: "";
    position: absolute;
    width: 72vw;
    height: 72vw;
    right: -40vw;
    top: -38vw;
    border: 1px solid rgba(96, 165, 250, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(14, 99, 230, .025), 0 0 0 140px rgba(14, 99, 230, .018), 0 0 0 210px rgba(14, 99, 230, .012);
    pointer-events: none;
    z-index: -1;
}

.brand-net {
    position: absolute;
    right: -3%;
    top: 24%;
    width: min(46%, 430px);
    height: auto;
    opacity: .85;
    pointer-events: none;
    z-index: -1;
}

.brand-top, .brand-bottom { position: relative; z-index: 2; }

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(30px, 3.4vh, 52px);
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
    padding: 5px;
    flex: 0 0 auto;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-size: 17.5px; font-weight: 800; letter-spacing: -.025em; color: #ffffff; }
.brand-sub { margin-top: 3px; color: var(--gold-400); font-size: 12px; font-weight: 600; letter-spacing: .005em; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: #a9c1dc;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #8fb3dc, rgba(143, 179, 220, .12));
}

h1 {
    max-width: 560px;
    font-size: clamp(34px, 3.7vw, 56px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 800;
}

.title-line { display: block; }
.title-white { color: #fff; }
.title-gold {
    background: linear-gradient(178deg, var(--gold-300) 0%, var(--gold-400) 52%, var(--gold-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.accent-text {
    background: linear-gradient(90deg, #0E63E6, #D4AF6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 545px;
    margin-top: 20px;
    color: #b6c6da;
    font-size: 14.5px;
    line-height: 1.7;
}

/* ── Business snapshot card ──────────────────────────────────────────────── */

.overview-card {
    margin-top: clamp(22px, 3vh, 34px);
    max-width: 760px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
    padding: 16px 18px 14px;
    backdrop-filter: blur(10px);
}

.overview-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.overview-title { font-size: 12px; font-weight: 800; }
.overview-period { color: #a9b8ca; font-size: 10.5px; font-weight: 700; }
.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 2px 14px; border-right: 1px solid rgba(148, 163, 184, .14); min-width: 0; }
.metric:first-child { padding-left: 2px; }
.metric:last-child { border-right: 0; }
.metric-label { color: #9eb0c5; font-size: 9.5px; }
.metric-value { margin-top: 6px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.metric-change { margin-top: 4px; font-size: 10px; font-weight: 800; color: var(--green-400); }
.metric-change.down { color: var(--red-400); }

.spark {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
    margin-top: 9px;
}
.spark i {
    flex: 1 1 auto;
    border-radius: 1.5px;
    background: linear-gradient(180deg, var(--spark), rgba(255, 255, 255, .10));
    opacity: .85;
}
.metric--revenue { --spark: #0E63E6; }
.metric--expense { --spark: #fb7185; }
.metric--profit  { --spark: #38bdf8; }
.metric--cash    { --spark: #34d399; }

/* ── Feature cards ───────────────────────────────────────────────────────── */

.feature-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.feature-card {
    min-height: 112px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, .15);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); border-color: rgba(147, 197, 253, .3); }
.feature-icon {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    color: #bfdbfe; background: rgba(14, 99, 230, .2); margin-bottom: 11px;
}
.feature-icon svg { width: 16px; height: 16px; stroke: currentColor; }
.feature-card strong { display: block; font-size: 12px; }
.feature-card span { display: block; margin-top: 6px; color: #91a4bd; font-size: 10.5px; line-height: 1.45; }

.brand-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    color: #9fb1c9;
    font-size: 11px;
    font-weight: 600;
}
.license-note { display: flex; align-items: center; gap: 8px; }
.shield-small { width: 23px; height: 23px; color: #5C9DFF; }
.shield-small svg { width: 100%; height: 100%; stroke: currentColor; }
.brand-footer strong { color: #e5edf7; font-weight: 700; }

/* ── Credential panel (Right Side - Dark Mode Enhanced) ───────────────────── */

.form-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(26px, 3.4vw, 56px);
    background:
        radial-gradient(circle at 82% 16%, rgba(14, 99, 230, 0.18), transparent 44%),
        radial-gradient(circle at 18% 84%, rgba(56, 189, 248, 0.14), transparent 46%),
        radial-gradient(circle at 50% 50%, rgba(14, 99, 230, 0.08), transparent 60%),
        linear-gradient(160deg, #0B1F44 0%, #061939 55%, #040F24 100%);
    overflow: hidden;
}

.form-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(14, 99, 230, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px, 32px 32px;
    pointer-events: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: min(100%, 490px);
}

.mobile-lockup { display: none; align-items: center; gap: 12px; margin-bottom: 22px; }

.card-shell {
    background: rgba(11, 31, 68, 0.82);
    border: 1px solid rgba(148, 178, 255, 0.18);
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 45px rgba(14, 99, 230, 0.15);
    padding: clamp(28px, 3vw, 44px);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.auth-emblem {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #C9D6EE;
    background: linear-gradient(145deg, rgba(14, 99, 230, 0.28), rgba(30, 58, 138, 0.45));
    border: 1px solid rgba(169, 193, 232, 0.25);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(14, 99, 230, 0.25);
}
.auth-emblem svg { width: 26px; height: 26px; stroke: currentColor; }

.card-head { text-align: center; margin-bottom: 26px; }
.card-title {
    font-size: clamp(26px, 2.2vw, 33px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #f8fafc;
    background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.card-copy { margin-top: 8px; color: #94a3b8; font-size: 13.5px; line-height: 1.55; }

/* ── Dark Mode Input Boxes ───────────────────────────────────────────────── */

.field { margin-bottom: 18px; }
.field label {
    display: block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .015em;
}
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: #64748b;
    pointer-events: none;
    transition: color .18s ease;
}
.input-icon svg { width: 100%; height: 100%; stroke: currentColor; }
.field:focus-within .input-icon {
    color: #A9C1E8;
}

.field input[type="text"],
.field input[type="password"],
.field input {
    width: 100% !important;
    height: 52px !important;
    border: 1px solid rgba(148, 178, 255, 0.22) !important;
    border-radius: 13px !important;
    background: #0A1A38 !important;
    background-color: #0A1A38 !important;
    color: #f8fafc !important;
    padding: 0 48px 0 46px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    outline: none !important;
    color-scheme: dark !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
.field input::placeholder { color: #64748b !important; font-weight: 500; }
.field input[type="text"]:hover,
.field input[type="password"]:hover,
.field input:hover {
    border-color: rgba(148, 178, 255, 0.45) !important;
    background: #0E2148 !important;
    background-color: #0E2148 !important;
    color: #ffffff !important;
}
.field input[type="text"]:focus,
.field input[type="password"]:focus,
.field input:focus {
    background: #13295A !important;
    background-color: #13295A !important;
    border-color: #0E63E6 !important;
    box-shadow: 0 0 0 4px rgba(14, 99, 230, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Chrome/Safari/Edge autofill prevention - stops browser from flashing white on hover out/blur */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #0A1A38 inset !important;
    box-shadow: 0 0 0 1000px #0A1A38 inset !important;
    -webkit-text-fill-color: #f8fafc !important;
    caret-color: #f8fafc !important;
    color: #f8fafc !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
.password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #A9C1E8;
}
.password-toggle svg { width: 18px; height: 18px; stroke: currentColor; }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 4px 0 22px;
    font-size: 12.5px;
}
.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
}
.remember input {
    width: 17px;
    height: 17px;
    accent-color: #0E63E6;
    border-radius: 4px;
    cursor: pointer;
}
.forgot {
    color: #5C9DFF;
    text-decoration: none;
    font-weight: 700;
    transition: color .15s ease;
}
.forgot:hover {
    color: #A9C1E8;
    text-decoration: underline;
}

/* ── Submit & Buttons ────────────────────────────────────────────────────── */

.submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: #0E63E6;
    color: #fff;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 10px 24px -12px rgba(14, 99, 230, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: background-color .2s, box-shadow .25s, transform .2s cubic-bezier(.2, .7, .2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.submit:hover {
    transform: translateY(-1px);
    background: #0A50BF;
    box-shadow: 0 14px 28px -12px rgba(14, 99, 230, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.submit:active { transform: translateY(0); }
.submit-arrow { font-size: 20px; line-height: 1; margin-top: -1px; transition: transform .18s ease; }
.submit:hover .submit-arrow { transform: translateX(3px); }

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.provider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.provider-btn {
    height: 48px;
    border: 1px solid rgba(148, 178, 255, 0.2);
    border-radius: 12px;
    background: rgba(14, 20, 36, 0.75);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all .2s ease;
}
.provider-btn:hover {
    background: rgba(24, 34, 60, 0.9);
    border-color: rgba(14, 99, 230, 0.45);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.provider-btn[disabled] {
    opacity: .4;
    cursor: not-allowed;
    background: rgba(10, 14, 26, 0.5);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}
.provider-btn[disabled]:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.06);
}
.provider-note { margin: 10px 2px 0; color: #94a3b8; font-size: 11.5px; line-height: 1.5; }
.provider-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.provider-icon svg { width: 100%; height: 100%; display: block; }

.trial-row { margin-top: 22px; text-align: center; color: #94a3b8; font-size: 12px; }
.trial-row strong { color: #5C9DFF; }

.error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 650;
}

.auth-meta {
    margin-top: 22px;
    text-align: center;
    color: #7a8b9f;
    font-size: 11px;
    line-height: 1.7;
}
.meta-shield { width: 22px; height: 22px; margin: 0 auto 8px; color: #5C9DFF; }
.meta-shield svg { width: 100%; height: 100%; stroke: currentColor; }
.auth-meta a { color: #5C9DFF; font-weight: 700; text-decoration: none; }
.auth-meta a:hover { text-decoration: underline; color: #A9C1E8; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1120px) {
    .auth-page { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; padding-top: 76px; }
    .mobile-lockup { display: flex; }
}

@media (max-width: 620px) {
    .form-panel { align-items: flex-start; padding: 70px 14px 24px; }
    .auth-card { width: 100%; }
    .card-shell { border-radius: 20px; padding: 24px 20px; }
    .card-title { font-size: 26px; }
    .provider-grid { grid-template-columns: 1fr; }
}

/* ── Password Reset & Notice Enhancements ────────────────────────────────── */

.card-foot {
    margin-top: 18px;
    text-align: center;
}
.card-foot .forgot {
    color: #5C9DFF;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #f87171;
}

.field-help {
    display: block;
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.45;
}

.card-note {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 178, 255, 0.18);
    border-radius: 10px;
    background: rgba(14, 20, 38, 0.75);
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.55;
}

.card-note strong {
    display: block;
    color: #f8fafc;
    margin-bottom: 6px;
}

.card-note ul {
    margin: 0;
    padding-left: 18px;
}

.card-note li {
    margin-bottom: 4px;
}

.success {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   SIMPLE SIGN-IN (Login.cshtml, main.auth-simple)
   Only the sign-in card, in the app's dark-mode colours: the blue page gradient
   with a deep navy-blue card. Scoped so the password-reset screens that share
   this file keep their own look.
   ========================================================================== */

.auth-simple {
    --as-card: #0B2B66;
    --as-input: #082252;
    --as-line: rgba(255, 255, 255, .10);
    --as-line-strong: rgba(255, 255, 255, .18);
    --as-fill: rgba(255, 255, 255, .05);
    --as-ink: #FFFFFF;
    --as-text: #EAF0F7;
    --as-text-2: #C6D1E0;
    --as-muted: #93A5C4;
    --as-link: #6FB4FF;
    display: block;
    background: #FFFFFF;
}
/* White page around the dark navy card. The card keeps color-scheme: dark (below) so its native
   controls - checkbox, autofill, password reveal - still render in the dark style. */
body:has(.auth-simple) { background: #FFFFFF; color: #EAF0F7; color-scheme: light; }

.auth-simple .form-panel {
    min-height: 100vh;
    padding: 40px 16px;
    background: #FFFFFF;
}
.auth-simple .form-panel::before { display: none; }
.auth-simple .auth-card { width: min(100%, 420px); }

.auth-simple .card-shell {
    background: var(--as-card);
    border: 1px solid var(--as-line);
    border-radius: 20px;
    /* Softer than on the old blue page: a near-black shadow reads as a smudge on white. */
    box-shadow: 0 1px 2px rgba(11, 31, 68, .08), 0 24px 48px -20px rgba(11, 31, 68, .40);
    color-scheme: dark;
    padding: 36px 34px 30px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-simple .auth-logo { width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.auth-simple .auth-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.auth-simple .card-head { margin-bottom: 26px; }
.auth-simple .card-title {
    font-size: 26px;
    letter-spacing: -.02em;
    color: var(--as-ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}
.auth-simple .card-copy { color: var(--as-muted); font-size: 14px; margin-top: 6px; }

.auth-simple .field { margin-bottom: 16px; }
.auth-simple .field label { color: var(--as-text-2); font-size: 13px; font-weight: 700; letter-spacing: 0; margin-bottom: 7px; }
.auth-simple .input-icon { color: var(--as-muted); }
.auth-simple .field:focus-within .input-icon { color: var(--as-link); }

.auth-simple .field input[type="text"],
.auth-simple .field input[type="password"],
.auth-simple .field input {
    height: 48px !important;
    border: 1px solid var(--as-line-strong) !important;
    border-radius: 11px !important;
    background: var(--as-input) !important;
    background-color: var(--as-input) !important;
    color: var(--as-text) !important;
    font-weight: 500 !important;
    color-scheme: dark !important;
    box-shadow: none !important;
}
.auth-simple .field input::placeholder { color: var(--as-muted) !important; opacity: .85; }
.auth-simple .field input[type="text"]:hover,
.auth-simple .field input[type="password"]:hover,
.auth-simple .field input:hover {
    border-color: rgba(255, 255, 255, .28) !important;
    background: var(--as-input) !important;
    background-color: var(--as-input) !important;
    color: var(--as-text) !important;
}
.auth-simple .field input[type="text"]:focus,
.auth-simple .field input[type="password"]:focus,
.auth-simple .field input:focus {
    border-color: #0E63E6 !important;
    background: var(--as-input) !important;
    background-color: var(--as-input) !important;
    color: var(--as-ink) !important;
    box-shadow: 0 0 0 4px rgba(14, 99, 230, .35) !important;
}
.auth-simple input:-webkit-autofill,
.auth-simple input:-webkit-autofill:hover,
.auth-simple input:-webkit-autofill:focus,
.auth-simple input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #082252 inset !important;
    box-shadow: 0 0 0 1000px #082252 inset !important;
    -webkit-text-fill-color: #EAF0F7 !important;
    caret-color: #EAF0F7 !important;
    color: #EAF0F7 !important;
}

.auth-simple .password-toggle { color: var(--as-muted); }
.auth-simple .password-toggle:hover { background: var(--as-fill); color: var(--as-link); }

.auth-simple .form-options { margin: 2px 0 22px; font-size: 13px; }
.auth-simple .remember { color: var(--as-text-2); font-weight: 500; }
.auth-simple .remember input { accent-color: #0E63E6; }
.auth-simple .forgot { color: var(--as-link); font-weight: 600; }
.auth-simple .forgot:hover { color: #A9CFFF; }

.auth-simple .submit {
    height: 48px;
    border-radius: 11px;
    font-weight: 700;
    background: #0E63E6;
    box-shadow: 0 12px 24px -12px rgba(14, 99, 230, .95);
}
.auth-simple .submit:hover { transform: none; background: #0A50BF; }
.auth-simple .submit:focus-visible { outline: 3px solid rgba(111, 180, 255, .55); outline-offset: 2px; }

.auth-simple .divider { color: var(--as-muted); font-weight: 500; font-size: 12px; margin: 24px 0 16px; }
.auth-simple .divider::before, .auth-simple .divider::after { background: var(--as-line); }

.auth-simple .provider-btn {
    height: 44px;
    border: 1px solid var(--as-line-strong);
    border-radius: 11px;
    background: var(--as-fill);
    color: var(--as-text);
    font-weight: 600;
    box-shadow: none;
    backdrop-filter: none;
}
.auth-simple .provider-btn:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); color: var(--as-ink); transform: none; box-shadow: none; }
.auth-simple .provider-btn[disabled] { opacity: .45; background: var(--as-fill); border-color: var(--as-line); color: var(--as-muted); }
.auth-simple .provider-btn[disabled]:hover { border-color: var(--as-line); }
.auth-simple .provider-note { color: var(--as-muted); font-size: 12px; text-align: center; margin-top: 12px; }

.auth-simple .trial-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--as-line); color: var(--as-muted); font-size: 13px; }
.auth-simple .trial-row strong { color: var(--as-link); }
.auth-simple .trial-row a { color: var(--as-link); text-decoration: none; }
.auth-simple .trial-row a:hover { text-decoration: underline; }

.auth-simple .error { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .35); color: #FCA5A5; font-weight: 600; }
.auth-simple .success { background: rgba(74, 222, 128, .12); border-color: rgba(74, 222, 128, .3); color: #86EFAC; }

@media (max-width: 620px) {
    .auth-simple .form-panel { align-items: center; padding: 24px 16px; }
    .auth-simple .card-shell { padding: 28px 20px 24px; border-radius: 18px; }
    .auth-simple .card-title { font-size: 24px; }
    .auth-simple .provider-grid { grid-template-columns: 1fr 1fr; }
}
