:root {
    color-scheme: dark;
    font-family: "Readex Pro", system-ui, sans-serif;
    background: #171719;
    color: #fff;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100dvh;
    margin: 0;
    background: #171719;
}

.password-reset-shell {
    width: min(100%, 31rem);
    min-height: 100dvh;
    margin: auto;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    display: grid;
    align-content: center;
    gap: 1rem;
}

.password-reset-back { color: #3fe3cf; width: fit-content; font-size: .9rem; }

.password-reset-card {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem;
    padding: clamp(1.25rem, 5vw, 2rem);
    background: rgba(23, 23, 25, .94);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .35);
}

.password-reset-kicker { margin: 0 0 .75rem; color: #ffe713; font-weight: 700; letter-spacing: .16em; }
.password-reset-card h1 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 7vw, 2rem); }
.password-reset-card p { line-height: 1.65; color: #e8e8e8; }

.password-reset-language { display: flex; gap: .5rem; margin: 0 0 1.25rem; }
.password-reset-language button { width: auto; padding: .45rem .7rem; background: transparent; border: 1px solid #737377; color: #fff; }
.password-reset-language button[aria-pressed="true"] { border-color: #3fe3cf; color: #3fe3cf; }

form { display: grid; gap: .65rem; margin-top: 1.25rem; }
.password-reset-help { margin: 0; font-size: .92rem; }
#password-otp-form { padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14); }
#password-reset-otp { letter-spacing: .14em; text-align: center; direction: ltr; font-variant-numeric: tabular-nums; }
label { font-weight: 600; }
input, button { min-height: 2.8rem; border-radius: .55rem; font: inherit; }
input { width: 100%; border: 1px solid #737377; background: #0f0f10; color: #fff; padding: .6rem .75rem; }
button { border: 0; cursor: pointer; background: #ed1d8f; color: #171719; padding: .65rem .9rem; font-weight: 700; }
button:hover:not(:disabled) { background: #ff4aa8; }
button:disabled { cursor: not-allowed; opacity: .62; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #ffe713; outline-offset: 3px; }

#password-reset-status { min-height: 1.65em; margin: 1rem 0 0; }
#password-reset-status[data-kind="error"] { color: #ffb1cb; }
#password-reset-status[data-kind="success"] { color: #8ff5e7; }

@media (max-width: 360px) {
    .password-reset-shell { padding-inline: .75rem; }
    .password-reset-card { padding: 1rem; }
    .password-reset-language { gap: .25rem; }
    .password-reset-language button { padding-inline: .45rem; font-size: .82rem; }
}
