.auth-refresh {
    --auth-border: #354669;
    --auth-surface: #111a2e;
    --auth-accent: #8cf4ec;
    position: relative;
    isolation: isolate;
    min-height: 0;
    background:
        radial-gradient(ellipse at 18% 26%, #173961 0, transparent 48%),
        radial-gradient(ellipse at 87% 65%, #261d51 0, transparent 50%),
        #080e1b;
    display: grid;
    align-content: center;
    padding-block: clamp(24px, 4vw, 54px);
}
.auth-refresh-challenge { padding-block: clamp(20px, 4vw, 32px); }
.auth-refresh-challenge + .site-footer { margin-top: 0; }
.auth-refresh .auth-page {
    width: min(1080px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap: clamp(30px, 6vw, 90px);
    align-items: center;
    padding: 0;
}
.auth-refresh-login .auth-story::before {
    content: "";
    display: block;
    width: min(270px, 100%);
    aspect-ratio: 5 / 1;
    background: url("../images/brand/mndset-dex-horizontal-transparent.png") center / contain no-repeat;
    border-radius: 8px;
    margin-bottom: 30px;
}
.auth-refresh .auth-story h1 {
    font-size: clamp(38px, 5.3vw, 75px);
    letter-spacing: -.055em;
    line-height: 1.04;
}
.auth-refresh .auth-card,
.auth-refresh-challenge .content-panel {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid var(--auth-border);
    border-radius: 26px;
    background: linear-gradient(155deg, #182441, var(--auth-surface) 65%);
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 28px 72px #0007, inset 0 1px #ffffff12;
}
.auth-refresh .auth-card h2 { font-size: clamp(26px, 3vw, 36px); }
.auth-refresh input:is([type=email], [type=password], [type=text]):not(.mndset-otp-input) {
    min-height: 48px;
    border: 1px solid var(--auth-border);
    border-radius: 12px;
    background: #0a1325;
    color: #f5f8ff;
}
.auth-refresh :is(input, button, a):focus-visible {
    outline: 2px solid var(--auth-accent);
    outline-offset: 3px;
}
.auth-refresh .google-signin { border-radius: 12px; min-height: 48px; }
.auth-refresh-challenge > .auth-challenge-card {
    width: min(424px, calc(100% - 32px));
    padding: clamp(18px, 4vw, 28px);
    border-radius: 20px;
    margin-inline: auto;
    text-align: center;
}
.auth-challenge-card .eyebrow { justify-content: center; }
.auth-challenge-card h1 {
    margin: 4px 0 6px;
    color: #f5f8ff;
    font-size: clamp(24px, 5vw, 30px);
    letter-spacing: -.035em;
    line-height: 1.15;
}
.auth-challenge-card header p {
    max-width: 34ch;
    margin: 0 auto 16px;
    color: #afbdd4;
    font-size: 13px;
    line-height: 1.5;
}
.auth-challenge-card label { color: #e1ebfa; font-size: 12px; font-weight: 650; }
.auth-challenge-card input[name="auth_code"]:not(.mndset-otp-input) {
    display: block;
    width: min(100%, 310px);
    margin: 7px auto 0;
    padding: 8px 12px;
    font-size: 16px;
}
.auth-challenge-card .auth-challenge-error {
    max-width: 32ch;
    margin: 8px auto;
    color: #ffb9bd;
    font-size: 13px;
}
.auth-challenge-card .auth-back { margin: 0; font-size: 13px; }
.mndset-otp { display: block; position: relative; width: 100%; max-width: 310px; margin: 7px auto; }
.mndset-otp-cells {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(4px, 1.1vw, 9px);
    pointer-events: none;
}
.mndset-otp-cell {
    display: grid;
    place-items: center;
    height: clamp(38px, 10vw, 46px);
    min-width: 0;
    background: #080f20;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    color: #f5f8ff;
    font: 600 clamp(17px, 5vw, 25px)/1 ui-monospace, monospace;
}
.mndset-otp:focus-within .mndset-otp-cell[data-active] {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 2px #8cf4ec33;
}
.mndset-otp:not([data-recovery]) .mndset-otp-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .01;
    font-size: 16px;
}
.mndset-otp[data-recovery] .mndset-otp-cells { display: none; }
.mndset-otp-toggle {
    display: block;
    margin: 4px auto 8px;
    padding: 5px 0;
    border: 0;
    background: none;
    color: #b9eefa;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}
@media (max-width: 760px) {
    .auth-refresh .auth-page { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
    .auth-refresh-login .auth-story::before { width: 205px; margin-bottom: 18px; }
    .auth-refresh .auth-story h1 { font-size: clamp(33px, 8vw, 52px); }
}

.auth-refresh-challenge [data-otp-enhancement] { display: none; }
.auth-refresh-challenge form:has(input[name="auth_code"]) { text-align: center; }
.auth-refresh-challenge form:has(input[name="auth_code"]) label {
    display: block;
    text-align: center;
}
.auth-refresh-challenge form:has(input[name="auth_code"]) :is(button:not([type]), button[type="submit"], input[type="submit"]) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 310px);
    min-height: 44px;
    margin: 10px auto 8px;
    padding: 10px 16px;
    border: 1px solid #a8fdf0;
    border-radius: 12px;
    background: linear-gradient(115deg, #a1f9e8, #a6c9ff);
    color: #091627;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 7px 20px #63e7e831;
}
.auth-refresh-challenge form:has(input[name="auth_code"]) :is(button:not([type]), button[type="submit"], input[type="submit"]):hover {
    background: #c1fdf4;
}
body.mndset-auth-entry .site-footer {
    padding-top: 18px;
}
.auth-newsletter {
    margin: 0 0 18px;
    border: 1px solid #354669;
    border-radius: 12px;
    background: #111a2e;
}
.auth-newsletter summary {
    padding: 12px 16px;
    color: #d6f3ff;
    font-weight: 650;
    cursor: pointer;
}
.auth-newsletter summary:focus-visible {
    outline: 2px solid #8cf4ec;
    outline-offset: 3px;
}
.auth-newsletter[open] { padding-bottom: 12px; }
.auth-newsletter[open] > :not(summary) { margin: 0 12px; }
