/* ==========================================================================
   SIGN-IN PAGE - WHITE THEME (Login.cshtml, main.auth-simple)
   A white card on a soft blue-tinted page, framed and accented in the brand
   blue. Loaded after auth.css by the Login page only, so it overrides the
   older dark-navy card styles there and nowhere else.
   ========================================================================== */

.auth-simple {
    --as-blue: #0E63E6;
    --as-blue-dark: #0A50BF;
    --as-blue-soft: #E8F1FE;
    --as-card: #FFFFFF;
    --as-input: #FFFFFF;
    --as-line: #BFD6FA;          /* light blue border */
    --as-line-strong: #8DB7F5;   /* hover border */
    --as-fill: #F5F9FF;
    --as-ink: #0B1F44;
    --as-text: #1E293B;
    --as-text-2: #334155;
    --as-muted: #64748B;
    --as-link: #0E63E6;
    display: block;
    background: #F4F8FE;
}
body:has(.auth-simple) { background: #F4F8FE; color: #1E293B; color-scheme: light; }

.auth-simple .form-panel {
    min-height: 100vh;
    padding: 40px 16px;
    background: radial-gradient(1200px 600px at 50% -10%, #E3EEFD 0%, #F4F8FE 55%, #FFFFFF 100%);
}
.auth-simple .form-panel::before { display: none; }
.auth-simple .auth-card { width: min(100%, 420px); }

.auth-simple .card-shell {
    background: var(--as-card);
    border: 1.5px solid var(--as-blue);
    border-top-width: 4px;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(14, 99, 230, .08), 0 24px 48px -24px rgba(14, 99, 230, .35);
    color-scheme: light;
    padding: 34px 34px 28px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.auth-simple .auth-logo { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--as-line); box-shadow: 0 8px 20px -10px rgba(14, 99, 230, .45); }
.auth-simple .auth-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-simple .brand-name { text-align: center; color: var(--as-blue); font-weight: 800; font-size: 14px; letter-spacing: .02em; margin-bottom: 18px; }

.auth-simple .card-head { margin-bottom: 24px; text-align: center; }
.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: #7A93B8; }
.auth-simple .field:focus-within .input-icon { color: var(--as-blue); }

.auth-simple .field input[type="text"],
.auth-simple .field input[type="password"],
.auth-simple .field input {
    height: 48px !important;
    border: 1.5px solid var(--as-line) !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: light !important;
    box-shadow: none !important;
}
.auth-simple .field input::placeholder { color: #94A3B8 !important; opacity: 1; }
.auth-simple .field input[type="text"]:hover,
.auth-simple .field input[type="password"]:hover,
.auth-simple .field input:hover {
    border-color: var(--as-line-strong) !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: var(--as-blue) !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, .15) !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 #FFFFFF inset !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #1E293B !important;
    caret-color: #1E293B !important;
    color: #1E293B !important;
}

.auth-simple .password-toggle { color: #7A93B8; }
.auth-simple .password-toggle:hover { background: var(--as-blue-soft); color: var(--as-blue); }

.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: var(--as-blue); }
.auth-simple .forgot { color: var(--as-link); font-weight: 600; }
.auth-simple .forgot:hover { color: var(--as-blue-dark); text-decoration: underline; }

.auth-simple .submit {
    height: 48px;
    border-radius: 11px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--as-blue);
    border: 1.5px solid var(--as-blue);
    box-shadow: 0 12px 24px -14px rgba(14, 99, 230, .9);
}
.auth-simple .submit:hover { transform: none; background: var(--as-blue-dark); border-color: var(--as-blue-dark); }
.auth-simple .submit:focus-visible { outline: 3px solid rgba(14, 99, 230, .35); outline-offset: 2px; }

.auth-simple .divider { color: var(--as-muted); font-weight: 500; font-size: 12px; margin: 24px 0 8px; }
.auth-simple .divider::before, .auth-simple .divider::after { background: var(--as-line); }
.auth-simple .provider-hint { text-align: center; color: var(--as-muted); font-size: 11.5px; margin: 0 0 12px; }

.auth-simple .provider-btn {
    height: 44px;
    border: 1.5px solid var(--as-line);
    border-radius: 11px;
    background: #FFFFFF;
    color: var(--as-text);
    font-weight: 600;
    box-shadow: none;
    backdrop-filter: none;
}
.auth-simple .provider-btn:hover { background: var(--as-fill); border-color: var(--as-blue); color: var(--as-ink); transform: none; box-shadow: none; }
.auth-simple .provider-btn[disabled] { opacity: .55; background: #F8FAFC; border-color: #D7E3F5; color: var(--as-muted); cursor: not-allowed; }
.auth-simple .provider-btn[disabled]:hover { border-color: #D7E3F5; background: #F8FAFC; }
.auth-simple .provider-note {
    color: #475569; font-size: 12px; text-align: center; margin-top: 12px;
    padding: 9px 12px; border: 1px solid var(--as-line); border-radius: 10px; background: var(--as-blue-soft);
}

.auth-simple .trial-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--as-line); color: var(--as-muted); font-size: 13px; text-align: center; }
.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 .legal-links { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; color: var(--as-muted, #64748b); font-size: 12.5px; }
.auth-simple .legal-links a { color: var(--as-muted, #64748b); text-decoration: none; }
.auth-simple .legal-links a:hover { color: var(--as-link, #0A50BF); text-decoration: underline; }

.auth-simple .error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; font-weight: 600; }
.auth-simple .success { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }

@media (max-width: 620px) {
    .auth-simple .form-panel { align-items: center; padding: 24px 16px; }
    .auth-simple .card-shell { padding: 26px 20px 22px; border-radius: 18px; }
    .auth-simple .card-title { font-size: 24px; }
    .auth-simple .provider-grid { grid-template-columns: 1fr 1fr; }
}
