:root {
    --fx-bg: #020817;
    --fx-bg-deep: #01040d;
    --fx-panel: rgba(255, 255, 255, 0.055);
    --fx-panel-strong: rgba(255, 255, 255, 0.085);
    --fx-border: rgba(255, 255, 255, 0.11);
    --fx-border-strong: rgba(148, 163, 184, 0.25);
    --fx-text: #ffffff;
    --fx-muted: #94a3b8;
    --fx-muted-strong: #cbd5e1;
    --fx-blue: #0ea5e9;
    --fx-blue-strong: #2563eb;
    --fx-indigo: #6366f1;
    --fx-violet: #7c3aed;
    --fx-red: #ef4444;
    --fx-shadow: 0 30px 90px rgba(2, 8, 23, 0.55);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--fx-bg);
}

.fx-next-auth-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    background: var(--fx-bg);
    color: var(--fx-text);
    isolation: isolate;
}

.fx-auth-bg,
.fx-auth-grid-bg,
.fx-auth-glow {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fx-bg-radial-one {
    background: radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.35), transparent 28%);
}

.fx-bg-radial-two {
    background: radial-gradient(circle at 86% 74%, rgba(14, 165, 233, 0.24), transparent 34%), radial-gradient(circle at 56% 44%, rgba(124, 58, 237, 0.13), transparent 34%);
}

.fx-auth-grid-bg {
    background-image: linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .75;
}

.fx-auth-glow {
    left: 50%;
    top: 50%;
    width: 520px;
    height: 520px;
    margin-left: -260px;
    margin-top: -260px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    filter: blur(70px);
}

.fx-next-auth-container {
    position: relative;
    z-index: 1;
    width: min(1500px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
}

.fx-next-hero {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 48px 40px 72px;
}

.fx-next-hero-inner {
    width: 100%;
    max-width: 720px;
}

.fx-logo-wrap {
    width: 100%;
    margin-bottom: 38px;
}

.fx-next-logo {
    display: block;
    width: min(520px, 78%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(37, 99, 235, 0.45));
}

.fx-platform-pill,
.fx-secure-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 9px;
    border: 1px solid var(--fx-border);
    background: rgba(255,255,255,0.05);
    color: #dbeafe;
    border-radius: 999px;
    padding: 9px 15px;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 38px rgba(15, 23, 42, 0.16);
}

.fx-secure-pill {
    color: #bfdbfe;
    padding: 8px 13px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fx-pill-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, .85);
}

.fx-next-hero h1 {
    max-width: 740px;
    margin: 28px 0 0;
    font-size: clamp(3.4rem, 5.4vw, 5.65rem);
    line-height: .98;
    letter-spacing: -0.065em;
    font-weight: 900;
    color: #fff;
    text-wrap: balance;
}

.fx-hero-lead {
    max-width: 680px;
    margin: 25px 0 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.85;
}

.fx-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
    max-width: 720px;
}

.fx-feature-item {
    min-width: 0;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    border: 1px solid var(--fx-border);
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.fx-feature-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.075);
    border-color: rgba(59,130,246,.28);
}

.fx-feature-icon {
    color: #60a5fa;
    font-size: 1.45rem;
    line-height: 1;
}

.fx-feature-item span:last-child {
    color: #f8fafc;
    font-size: .92rem;
    line-height: 1.35;
    text-align: center;
    font-weight: 700;
}

.fx-trust-list {
    display: grid;
    gap: 13px;
    max-width: 720px;
    margin-top: 38px;
    color: #cbd5e1;
    font-size: .96rem;
    line-height: 1.6;
}

.fx-trust-row {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.fx-trust-row span,
.fx-security-box span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59,130,246,.18);
    font-size: .8rem;
    font-weight: 900;
}

.fx-trust-row p,
.fx-security-box p {
    margin: 0;
}

.fx-next-form-section {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
}

.fx-next-form-shell {
    width: 100%;
    max-width: 520px;
    padding: 42px;
    border: 1px solid var(--fx-border);
    border-radius: 32px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    box-shadow: var(--fx-shadow);
    backdrop-filter: blur(28px);
}

.fx-mobile-brand {
    display: none;
}

.fx-form-header {
    text-align: center;
    margin-bottom: 34px;
}

.fx-form-header h2 {
    margin: 22px 0 0;
    font-size: clamp(2.1rem, 3.1vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: #fff;
}

.fx-form-header p {
    margin: 12px 0 0;
    color: var(--fx-muted);
    font-size: 1.06rem;
}

.fx-next-form {
    display: grid;
    gap: 24px;
}

.fx-form-group {
    display: grid;
    gap: 9px;
}

.fx-form-group label,
.fx-check-row {
    color: #f1f5f9;
    font-size: .92rem;
    font-weight: 650;
}

.fx-input-wrap {
    position: relative;
}

.fx-input {
    width: 100%;
    height: 56px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(2, 6, 23, .42);
    color: #fff;
    padding: 0 60px 0 18px;
    outline: none;
    font-size: .98rem;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fx-input::placeholder {
    color: #64748b;
}

.fx-input:focus {
    border-color: rgba(59, 130, 246, .85);
    background: rgba(2, 6, 23, .62);
    box-shadow: 0 0 0 4px rgba(37,99,235,.20);
}

.fx-input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .96rem;
    font-weight: 800;
    pointer-events: none;
}

.fx-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: 38px;
    border: 0;
    border-radius: 13px;
    padding: 0 12px;
    background: rgba(255,255,255,.07);
    color: #cbd5e1;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.fx-password-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.fx-form-options {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fx-check-row {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #94a3b8;
    font-size: .88rem;
    font-weight: 500;
}

.fx-check-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--fx-blue-strong);
}

.fx-form-options a,
.fx-access-link a {
    color: #60a5fa;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 750;
}

.fx-form-options a:hover,
.fx-access-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.fx-submit-button {
    width: 100%;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #7c3aed);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35);
    font-size: 1.02rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fx-submit-button:hover {
    transform: scale(1.01) translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 28px 72px rgba(37, 99, 235, 0.45);
}

.fx-arrow {
    font-size: 1.35rem;
    line-height: 1;
}

.fx-access-link {
    margin: 23px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: .92rem;
}

.fx-security-box {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--fx-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-size: .88rem;
    line-height: 1.6;
}

.fx-auth-footer {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: .82rem;
}

.fx-validation-summary,
.fx-validation,
.field-validation-error {
    color: #fecaca;
    font-size: .86rem;
}

.fx-validation-summary:not(:empty) {
    padding: 14px 16px;
    border: 1px solid rgba(239,68,68,.30);
    border-radius: 16px;
    background: rgba(239,68,68,.10);
    color: #fecaca;
}

.input-validation-error {
    border-color: rgba(239,68,68,.75) !important;
    box-shadow: 0 0 0 4px rgba(239,68,68,.14) !important;
}

/* Shared support for other auth pages using previous markup */
.fx-auth-page,
.fx-single-page {
    min-height: 100vh;
    padding: 32px;
    background: var(--fx-bg);
    color: var(--fx-text);
}

/* =========================================================
   Secondary Auth Screens - Next Style
   Used by Forgot Password, Reset Password, Confirm Email,
   Request Access, Lockout and Access Denied.
   ========================================================= */
.fx-auth-page.fx-single-page {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--fx-bg);
    color: var(--fx-text);
    isolation: isolate;
}

.fx-auth-page.fx-single-page::before,
.fx-auth-page.fx-single-page::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fx-auth-page.fx-single-page::before {
    background: radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.35), transparent 28%), radial-gradient(circle at 86% 74%, rgba(14, 165, 233, 0.24), transparent 34%), radial-gradient(circle at 56% 44%, rgba(124, 58, 237, 0.13), transparent 34%);
}

.fx-auth-page.fx-single-page::after {
    background-image: linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .75;
}

.fx-single-shell {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
}

.fx-wide-shell {
    width: min(860px, 100%);
}

.fx-single-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 42px;
    border: 1px solid var(--fx-border);
    border-radius: 32px;
    background: rgba(255,255,255,0.055);
    color: #fff;
    box-shadow: var(--fx-shadow);
    backdrop-filter: blur(28px);
}

.fx-single-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: radial-gradient(circle at 12% 8%, rgba(14,165,233,.16), transparent 34%), radial-gradient(circle at 92% 86%, rgba(124,58,237,.18), transparent 32%);
}

.fx-text-center {
    text-align: center;
}

.fx-logo,
.fx-logo-card {
    display: block;
    width: min(320px, 76%);
    height: auto;
    object-fit: contain;
    margin: 0 auto 28px;
    filter: drop-shadow(0 0 26px rgba(37, 99, 235, 0.45));
}

.fx-badge,
.fx-status-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 9px;
    border: 1px solid var(--fx-border);
    background: rgba(255,255,255,0.05);
    color: #bfdbfe;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .08em;
    backdrop-filter: blur(18px);
}

.fx-badge::before,
.fx-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, .85);
}

.fx-single-card h1 {
    margin: 22px 0 0;
    font-size: clamp(2.15rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 900;
    color: #fff;
    text-wrap: balance;
}

.fx-description {
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
}

.fx-form {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.fx-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fx-textarea {
    min-height: 142px;
    padding-top: 16px;
    resize: vertical;
}

.fx-button,
.fx-button-link {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #7c3aed);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35);
    font-size: 1.02rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fx-button:hover,
.fx-button-link:hover {
    color: #fff;
    transform: scale(1.01) translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 28px 72px rgba(37, 99, 235, 0.45);
    text-decoration: none;
}

.fx-bottom-link {
    margin: 24px 0 0;
    text-align: center;
    color: #94a3b8;
    font-size: .92rem;
}

.fx-bottom-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 750;
}

.fx-bottom-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.fx-info-box,
.fx-password-rules {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--fx-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    color: #94a3b8;
    font-size: .9rem;
    line-height: 1.6;
}

.fx-info-box-center {
    text-align: left;
}

.fx-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(59,130,246,.18);
    color: #bfdbfe;
    font-size: 1.25rem;
    font-weight: 900;
}

.fx-info-box strong {
    display: block;
    color: #f8fafc;
    font-size: .98rem;
    margin-bottom: 4px;
}

.fx-info-box small,
.fx-password-rules span {
    display: block;
    color: #94a3b8;
    line-height: 1.65;
}

.fx-status-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 22px 60px rgba(15,23,42,.42);
}

.fx-success {
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.fx-error {
    background: linear-gradient(135deg, #ef4444, #7c3aed);
}

.fx-warning {
    background: linear-gradient(135deg, #f59e0b, #7c3aed);
}

.fx-success-badge {
    color: #bbf7d0;
    border-color: rgba(34,197,94,.25);
    background: rgba(34,197,94,.10);
}

.fx-success-badge::before {
    background: #22c55e;
    box-shadow: 0 0 18px rgba(34,197,94,.85);
}

.fx-error-badge {
    color: #fecaca;
    border-color: rgba(239,68,68,.28);
    background: rgba(239,68,68,.10);
}

.fx-error-badge::before {
    background: #ef4444;
    box-shadow: 0 0 18px rgba(239,68,68,.85);
}

.fx-warning-badge {
    color: #fde68a;
    border-color: rgba(245,158,11,.28);
    background: rgba(245,158,11,.10);
}

.fx-warning-badge::before {
    background: #f59e0b;
    box-shadow: 0 0 18px rgba(245,158,11,.85);
}
