/* Account pages (Views/Shared/_AuthLayout.cshtml): sign in, sign up, two-factor, recovery and notices.
   Palette: indigo night #1B1740, mint #34D399, apricot #FDBA74, periwinkle #A5B4FC, mist #FAFAFE. */
:root { --ax-ink: #1B1740; --ax-ink-2: #262055; --ax-ink-3: #3A3373; --ax-mint: #34D399; --ax-mint-dark: #0E9F6E;
        --ax-apricot: #FDBA74; --ax-peri: #A5B4FC; --ax-mist: #FAFAFE; --ax-line: #E4E2F2; --ax-muted: #6E6A93; --ax-soft: #A3A0BF; }
.ax-body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--ax-ink); background: #fff; }
.ax { display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* Brand panel */
.ax-panel { position: relative; overflow: hidden; background: var(--ax-ink); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; }
.ax-panel::before { content: ""; position: absolute; width: 520px; height: 520px; right: -220px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, .18), transparent 65%); }
.ax-panel::after { content: ""; position: absolute; width: 460px; height: 460px; left: -200px; bottom: -220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 180, 252, .14), transparent 65%); }
.ax-panel > * { position: relative; z-index: 1; }
.ax-brand, .ax-mobile-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: inherit; text-decoration: none; }
.ax-brand:hover { color: #fff; }
.ax-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ax-mint); color: var(--ax-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.ax-headline { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.8px; margin: 56px 0 28px; color: #fff; }
.ax-headline span { color: var(--ax-mint); }
.ax-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.ax-card { background: var(--ax-ink-2); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 16px 18px; color: #C7C2F2;
    display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateY(14px); animation: ax-rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.ax-card:nth-child(2) { animation-delay: .1s; } .ax-card:nth-child(3) { animation-delay: .2s; } .ax-card:nth-child(4) { animation-delay: .3s; }
.ax-card small { font-size: 12px; }
.ax-card strong { font-size: 22px; font-weight: 600; color: #fff; }
.ax-card-mint { background: var(--ax-mint); color: var(--ax-ink); }
.ax-card-mint strong { color: var(--ax-ink); }
.ax-avatars { display: flex; padding-left: 8px; margin: 4px 0; }
.ax-avatars span { width: 30px; height: 30px; border-radius: 50%; margin-left: -8px; border: 2px solid var(--ax-ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.ax-avatars .a1 { background: var(--ax-apricot); color: #7C2D12; } .ax-avatars .a2 { background: var(--ax-peri); color: #312E81; }
.ax-avatars .a3 { background: #6EE7B7; color: #064E3B; } .ax-avatars .a4 { background: #F9A8D4; color: #831843; } .ax-avatars .a5 { background: var(--ax-mint); color: var(--ax-ink); }
.ax-ring-card { flex-direction: row; align-items: center; gap: 14px; }
.ax-ring-card svg { width: 64px; height: 64px; flex-shrink: 0; }
.ax-ring-card div { display: flex; flex-direction: column; }
.ax-ring-track { fill: none; stroke: var(--ax-ink-3); stroke-width: 7; }
.ax-ring-fill { fill: none; stroke: var(--ax-mint); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 132; transform: rotate(-90deg); transform-origin: 26px 26px;
    animation: ax-ring 1.2s .4s ease-out forwards; }
.ax-week { display: flex; gap: 4px; margin: 6px 0; }
.ax-week span { width: 16px; height: 16px; border-radius: 4px; background: var(--ax-ink-3); }
.ax-week .away { background: var(--ax-apricot); } .ax-week .pending { background: var(--ax-peri); }
.ax-steps { list-style: none; padding: 0; margin: 0 0 24px; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.ax-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); color: #C7C2F2;
    opacity: 0; transform: translateY(14px); animation: ax-rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.ax-steps li:nth-child(2) { animation-delay: .1s; } .ax-steps li:nth-child(3) { animation-delay: .2s; }
.ax-steps li > span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ax-peri); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.ax-steps li.current { background: var(--ax-ink-2); color: #fff; }
.ax-steps li.current > span { background: var(--ax-mint); border-color: var(--ax-mint); color: var(--ax-ink); }
.ax-steps strong { display: block; font-weight: 600; }
.ax-steps small { color: #9E98D6; }
.ax-signup-note { max-width: 240px; }
.ax-panel-foot { margin-top: auto; padding-top: 32px; font-size: 13px; color: #8E88C9; }
.ax-panel-foot i { color: var(--ax-mint); margin-right: 4px; }

/* Main column */
.ax-main { display: flex; flex-direction: column; padding: 32px 48px; background: #fff; }
.ax-mobile-brand { display: none; color: var(--ax-ink); }
.ax-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.ax-footer { font-size: 12px; color: var(--ax-soft); text-align: center; }
.ax-footer a { color: var(--ax-muted); }

/* Form card (class names shared by every account view) */
.ax-body .auth-card, .ax-body .auth-single-card { width: 100%; max-width: 440px; margin: 0 auto; background: none; border: 0; box-shadow: none; padding: 0; text-align: left; }
.ax-body .auth-card-wide { max-width: 500px; }
.ax-body .auth-single-wrap { display: block; min-height: 0; padding: 0; width: 100%; }
.ax-body .auth-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-mint-dark); margin-bottom: 6px; }
.ax-body .auth-card h2, .ax-body .auth-single-card h2 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; color: var(--ax-ink); margin: 0 0 6px; }
.ax-body .auth-subtitle { color: var(--ax-muted); font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.ax-body .auth-icon, .ax-body .auth-hero-icon, .ax-body .auth-result-icon { width: 52px; height: 52px; border-radius: 14px; background: #EEF0FF; color: var(--ax-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 0 18px; }
.ax-body .auth-result-icon.success { background: #DCFCE9; color: var(--ax-mint-dark); }
.ax-body .auth-result-icon.warning { background: #FFF1E0; color: #B45309; }
.ax-body .auth-result-card { text-align: center; }
.ax-body .auth-result-card .auth-result-icon { margin-left: auto; margin-right: auto; }
.ax-body .auth-card-top { display: flex; justify-content: space-between; gap: 16px; }
.ax-body .auth-card-top .auth-icon { display: none; }
.ax-body .auth-back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--ax-muted); font-size: 13px; font-weight: 500; text-decoration: none; margin-bottom: 22px; }
.ax-body .auth-back-link:hover { color: var(--ax-ink); }
.ax-body .auth-field { margin-bottom: 16px; }
.ax-body .auth-field label { display: block; font-size: 13px; font-weight: 500; color: var(--ax-muted); margin-bottom: 6px; }
.ax-body .auth-input-wrap { position: relative; }
.ax-body .auth-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ax-soft); z-index: 2; pointer-events: none; }
.ax-body .auth-input-wrap .form-control { height: 48px; border-radius: 12px; border: 1px solid var(--ax-line); background: var(--ax-mist); padding: 0 44px 0 42px; font-size: 15px; color: var(--ax-ink); box-shadow: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.ax-body .auth-input-wrap .form-control::placeholder { color: var(--ax-soft); }
.ax-body .auth-input-wrap .form-control:focus { background: #fff; border-color: var(--ax-ink); box-shadow: 0 0 0 4px rgba(27, 23, 64, .08); }
.ax-body .auth-input-wrap .form-control.input-validation-error { border-color: #E11D48; }
.ax-body .password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ax-soft); width: 34px; height: 34px; border-radius: 8px; }
.ax-body .password-toggle:hover { color: var(--ax-ink); background: #F1F0FA; }
.ax-body .auth-inline-link, .ax-body .auth-bottom-link a { color: var(--ax-ink); font-weight: 600; text-decoration: none; }
.ax-body .auth-inline-link:hover, .ax-body .auth-bottom-link a:hover { color: var(--ax-mint-dark); }
.ax-body .auth-options { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; }
.ax-body .auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ax-muted); cursor: pointer; }
.ax-body .auth-check input { width: 16px; height: 16px; accent-color: var(--ax-mint-dark); }
.ax-body .auth-secure-note { font-size: 12px; color: var(--ax-soft); }
.ax-body .btn-auth-primary { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--ax-ink); color: #fff; font-weight: 600; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.ax-body .btn-auth-primary:hover { background: #2A2460; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(27, 23, 64, .22); }
.ax-body .btn-auth-primary i { transition: transform .15s; }
.ax-body .btn-auth-primary:hover i { transform: translateX(3px); }
.ax-btn-secondary { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--ax-line); background: #fff; color: var(--ax-ink); font-weight: 600; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.ax-btn-secondary:hover { border-color: var(--ax-ink); color: var(--ax-ink); }
.ax-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; font-size: 12px; color: var(--ax-soft); }
.ax-divider::before, .ax-divider::after { content: ""; flex: 1; height: 1px; background: #EEEDF7; }
.ax-body .auth-bottom-link { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ax-muted); border: 0; padding: 0; }
.ax-body .field-error { display: block; color: #E11D48; font-size: 13px; margin-top: 5px; }
.ax-body .auth-validation-summary ul { list-style: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #FFF1F3; color: #BE123C; font-size: 14px; }
.ax-body .auth-validation-summary.validation-summary-valid ul { display: none; }
.ax-body .auth-hint { font-size: 13px; color: var(--ax-muted); margin: -4px 0 18px; }
.ax-strength { display: flex; gap: 6px; margin: 8px 0 6px; }
.ax-strength span { flex: 1; height: 5px; border-radius: 3px; background: #EEEDF7; transition: background .2s; }
.ax-strength[data-score="1"] span:nth-child(-n+1), .ax-strength[data-score="2"] span:nth-child(-n+2) { background: var(--ax-apricot); }
.ax-strength[data-score="3"] span:nth-child(-n+3) { background: var(--ax-peri); }
.ax-strength[data-score="4"] span { background: var(--ax-mint); }
.ax-trust { margin-top: 18px; text-align: center; font-size: 12px; color: var(--ax-soft); }
.ax-trust i { color: var(--ax-mint-dark); }

@keyframes ax-rise { to { opacity: 1; transform: none; } }
@keyframes ax-ring { to { stroke-dasharray: 111 132; } }
@media (prefers-reduced-motion: reduce) { .ax-card, .ax-steps li { animation: none; opacity: 1; transform: none; } .ax-ring-fill { animation: none; stroke-dasharray: 111 132; } }

/* Tablet and phone: the panel becomes a slim header strip */
@media (max-width: 991.98px) {
    .ax { grid-template-columns: 1fr; }
    .ax-panel { padding: 22px 24px; }
    .ax-panel .ax-headline { font-size: 24px; margin: 16px 0 14px; }
    .ax-bento { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; max-width: none; padding-bottom: 4px; scrollbar-width: none; }
    .ax-bento .ax-card { padding: 12px 14px; }
    .ax-steps, .ax-signup-note, .ax-panel-foot { display: none; }
    .ax-main { padding: 28px 24px; }
}
@media (max-width: 575.98px) {
    .ax-panel { display: none; }
    .ax-mobile-brand { display: inline-flex; }
    .ax-content { align-items: flex-start; padding-top: 28px; }
    .ax-body .auth-card h2, .ax-body .auth-single-card h2 { font-size: 26px; }
}
