.auth-page main {
    align-items: center;
    padding-top: clamp(42px, 6vw, 90px);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 520px);
    gap: clamp(38px, 7vw, 112px);
    align-items: center;
    min-height: min(720px, calc(100vh - var(--player-height) - 210px));
}

.auth-copy {
    position: relative;
    display: grid;
    align-content: center;
    max-width: 620px;
    min-height: 430px;
    padding-left: clamp(18px, 2.4vw, 38px);
}

.auth-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 10%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(88, 213, 246, 0.52), rgba(231, 169, 95, 0.38), transparent);
    box-shadow: 0 0 24px rgba(88, 213, 246, 0.2);
}

.auth-copy .eyebrow {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(167, 184, 218, 0.18);
    border-radius: 999px;
    background: rgba(7, 11, 24, 0.52);
    color: #c6d1e3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-copy h1 {
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(3.35rem, 5.8vw, 5.8rem);
    line-height: 0.98;
    overflow-wrap: normal;
    text-wrap: balance;
}

.auth-copy p:last-child {
    max-width: 520px;
    color: #c3cede;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.auth-card {
    position: relative;
    isolation: isolate;
    gap: 20px;
    width: 100%;
    padding: clamp(24px, 3vw, 34px);
    border-color: var(--neon-line);
    background:
        radial-gradient(circle at 12% 0%, var(--neon-soft), transparent 36%),
        radial-gradient(circle at 92% 100%, var(--neon-secondary-soft), transparent 42%),
        linear-gradient(180deg, rgba(18, 25, 44, 0.88), rgba(7, 11, 23, 0.82)),
        rgba(8, 12, 24, 0.84);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 58px rgb(var(--neon-primary-rgb) / 0.055),
        0 30px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgb(var(--neon-secondary-rgb) / 0.18),
        0 0 34px rgb(var(--neon-primary-rgb) / 0.2),
        0 0 72px rgb(var(--neon-secondary-rgb) / 0.12);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(115deg, rgb(var(--neon-primary-rgb) / 0.2), transparent 34%),
        linear-gradient(295deg, rgb(var(--neon-secondary-rgb) / 0.18), transparent 42%),
        linear-gradient(90deg, transparent 0 8%, rgb(var(--neon-primary-rgb) / 0.18) 50%, transparent 92%) left top / 100% 1px no-repeat;
    opacity: 0.82;
}

.auth-card h2 {
    margin-bottom: 2px;
    font-size: clamp(1.8rem, 2.7vw, 2.45rem);
    line-height: 1.08;
}

.auth-card label {
    gap: 9px;
}

.auth-card label span {
    color: #c1cadb;
    font-size: 0.94rem;
    font-weight: 640;
}

.auth-card input:not([type="checkbox"]) {
    min-height: 58px;
    border-color: rgba(167, 184, 218, 0.24);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.045)),
        rgba(7, 11, 22, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 26px rgba(0, 0, 0, 0.12);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.auth-card input:not([type="checkbox"]):hover {
    border-color: rgba(167, 184, 218, 0.38);
    background-color: rgba(255, 255, 255, 0.06);
}

.auth-card input:not([type="checkbox"]):focus {
    border-color: var(--neon-line);
    box-shadow:
        0 0 0 3px var(--neon-soft),
        0 0 26px rgb(var(--neon-primary-rgb) / 0.16),
        0 16px 34px rgba(0, 0, 0, 0.2);
}

.auth-card .form-row {
    gap: 14px;
    padding-top: 2px;
}

.auth-card .form-row > a {
    color: #edf3ff;
    font-weight: 700;
    transition: color 160ms ease;
}

.auth-card .form-row > a:hover,
.auth-card .form-row > a:focus-visible {
    color: var(--cyan);
}

.auth-form-stack {
    display: grid;
    gap: 16px;
    width: 100%;
}

.auth-panel[hidden] {
    display: none;
}

.auth-text-button {
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #edf3ff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease;
}

.auth-text-button:hover,
.auth-text-button:focus-visible,
.auth-card-note a:hover,
.auth-card-note a:focus-visible {
    color: var(--cyan);
}

.auth-text-button:focus-visible {
    outline: 2px solid rgba(88, 213, 246, 0.72);
    outline-offset: 4px;
}

.auth-card-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.auth-card-note a {
    color: #edf3ff;
    font-weight: 700;
}

.auth-feedback {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(167, 184, 218, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    line-height: 1.45;
}

.auth-feedback[data-feedback-type="success"] {
    border-color: rgba(84, 215, 157, 0.34);
    background: rgba(84, 215, 157, 0.1);
}

.auth-feedback[data-feedback-type="error"] {
    border-color: rgba(210, 109, 145, 0.38);
    background: rgba(210, 109, 145, 0.12);
}

.auth-maintenance-card {
    align-content: start;
}

.auth-maintenance-pill {
    display: inline-flex;
    width: fit-content;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(231, 169, 95, 0.36);
    border-radius: 999px;
    background: rgba(231, 169, 95, 0.1);
    color: #f1d3a3;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-maintenance-expected {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(88, 213, 246, 0.26);
    border-radius: var(--radius);
    background: rgba(88, 213, 246, 0.08);
    color: #dbefff;
    font-weight: 700;
    line-height: 1.45;
}

.auth-back-button {
    justify-self: start;
}

.auth-card .button {
    min-height: 58px;
    margin-top: 2px;
    font-size: 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 18px 42px rgb(var(--neon-primary-rgb) / 0.22),
        0 0 34px rgb(var(--neon-secondary-rgb) / 0.16);
}

.auth-card .check-line {
    width: fit-content;
    color: var(--muted);
}

.auth-card .check-line span {
    color: #b8c1d2;
    font-weight: 560;
}

.auth-card .check-line input[type="checkbox"] {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(167, 184, 218, 0.38);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card .check-line input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #07101f;
    border-bottom: 2px solid #07101f;
    opacity: 0;
    transform: translateY(-1px) rotate(-45deg);
}

.auth-card .check-line input[type="checkbox"]:checked {
    border-color: rgba(84, 215, 157, 0.8);
    background: linear-gradient(135deg, var(--mint), var(--cyan));
}

.auth-card .check-line input[type="checkbox"]:checked::before {
    opacity: 1;
}

