/* =====================================================================
   Auth split-screen layout (Login, Register, Forgot password)
   Used by Components/Layout/AuthLayout.razor.
   ===================================================================== */

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 5fr) minmax(420px, 4fr);
    min-height: 100vh;
    width: 100%;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
}

/* ── Brand panel (left) ─────────────────────────────────────────────── */

.auth-brand {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: -20% auto auto -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand::after {
    content: "";
    position: absolute;
    bottom: -25%;
    right: -15%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-inner {
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4);
}

.auth-brand-headline {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
}

.auth-brand-subhead {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(248, 250, 252, 0.82);
    margin: 0 0 36px 0;
}

.auth-brand-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: rgba(248, 250, 252, 0.92);
}

.auth-brand-features .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
    flex-shrink: 0;
}

.auth-brand-footer {
    font-size: 13px;
    color: rgba(248, 250, 252, 0.55);
}

.auth-brand-footer a {
    color: rgba(248, 250, 252, 0.8);
    text-decoration: none;
}

.auth-brand-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Hide the brand panel on small screens — keep just the form */
@media (max-width: 900px) {
    .auth-brand {
        display: none;
    }
}

/* ── Form panel (right) ─────────────────────────────────────────────── */

.auth-form {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-form h1,
.auth-form h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
    color: #0f172a;
}

.auth-form .auth-lede {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.auth-form .auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.auth-form .auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.01em;
}

.auth-form .auth-field input {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .auth-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-form .auth-field .validation-message,
.auth-form .auth-field .text-danger {
    font-size: 12px;
    color: #dc2626;
    margin-top: 2px;
}

.auth-form .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-form .auth-row .remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.auth-form .auth-row a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.auth-form .auth-row a:hover {
    text-decoration: underline;
}

.auth-form .auth-submit {
    width: 100%;
    height: 46px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.auth-form .auth-submit:hover {
    background: #1d4ed8;
}

.auth-form .auth-submit:active {
    transform: translateY(1px);
}

.auth-form .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-form .auth-divider::before,
.auth-form .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-form .auth-sso {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-form .auth-sso button,
.auth-form .auth-sso .btn {
    width: 100%;
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.15s, border-color 0.15s;
}

.auth-form .auth-sso button:hover,
.auth-form .auth-sso .btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.auth-form .auth-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 14px;
    color: #475569;
}

.auth-form .auth-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-form .auth-footer a:hover {
    text-decoration: underline;
}

.auth-form .auth-status {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-form .auth-status.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.auth-form .auth-status.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* Long-form legal pages (Privacy, Terms) hosted under AuthLayout. The shell already
   centers content; we just give the document its own width + section spacing. */
.legal-doc {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    color: #111827;
}

.legal-doc h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.legal-doc h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 8px 0;
    color: #1f2937;
}

.legal-doc .legal-meta {
    color: #6b7280;
    font-size: 12px;
    margin: 0 0 24px 0;
}

.legal-doc .legal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.legal-doc .legal-nav a {
    color: #6b7280;
    text-decoration: none;
    padding: 4px 0;
}

.legal-doc .legal-nav a.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
}

.legal-doc .legal-nav .sep {
    color: #d1d5db;
}

.legal-doc section {
    margin-bottom: 8px;
}

.legal-doc p, .legal-doc ul {
    line-height: 1.55;
    color: #374151;
}

.legal-doc ul {
    padding-left: 18px;
}

.legal-doc li {
    margin-bottom: 4px;
}

.legal-doc a {
    color: #2563eb;
}
