/*
 * JRS1 · public/css/auth.css
 * Created:     2026-11-15 04:09 EST
 * Last edited: 2026-11-15 11:36 EST
 * Version:     0.9.0 (pre-gold)
 */
/* Sign-in, sign-up and password pages: jrsports.one's member sign-in (pl/fb/public/assets/css/auth.css), same layout, fonts and
   sizes, in the JRS1 colors: red and white, red on dark gray-blue in the dark theme (Danny 2026-11-14). */

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Lato";
    src: url("../fonts/Lato-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #e3262f;
    --red-bright: #ff5a60;
    --red-deep: #b51c24;
    --body: #1b2230;
    --body-soft: #151b27;
    --panel: #222b3b;
    --panel-raised: #2a3446;
    --paper: #f1f6f9;
    --ink: #15181f;
    --muted: #8ea1ad;
    --muted-dark: #5f7480;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --green: #42d98b;
    --amber: #ffb62e;
    --danger: #ff6373;
    --lato: "Lato", Arial, Helvetica, sans-serif;
    --source: "Source Sans 3", Arial, Helvetica, sans-serif;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-lg: 0 40px 100px rgba(0, 0, 0, 0.45);
    --shadow-red: 0 18px 50px rgba(227, 38, 47, 0.22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--body);
    color: var(--paper);
    font-family: var(--source);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


body.auth-page {
    background: #f4f5f8;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--lato);
    letter-spacing: -0.02em;
}

::selection {
    background: var(--red);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    vertical-align: -0.14em;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--red);
    color: #ffffff;
    font-family: var(--lato);
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    line-height: 1;
    flex: 0 0 auto;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.4), transparent 45%),
        linear-gradient(135deg, var(--red-bright), var(--red) 45%, var(--red-deep));
    color: #ffffff;
    font-family: var(--lato);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.5px;
    box-shadow: 0 10px 30px rgba(227, 38, 47, 0.26);
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand__name {
    font-family: var(--lato);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--paper);
}

.brand__name span {
    color: var(--red);
}

.brand__tag {
    color: #87a0ad;
    font-family: var(--lato);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.brand--showcase {
    position: relative;
    z-index: 4;
}

.brand--compact .brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.brand--compact .brand__name {
    font-size: 19px;
}

.brand--panel {
    display: none;
    margin-bottom: 24px;
}

.brand--panel .brand__name {
    color: var(--ink);
}

.brand--panel .brand__tag {
    color: var(--muted-dark);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--red);
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 236, 237, 0.78);
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 38, 47, 0.16);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid rgba(227, 38, 47, 0.22);
    border-radius: 999px;
    background: rgba(227, 38, 47, 0.07);
    color: #a51a21;
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #19b978;
    box-shadow: 0 0 0 3px rgba(25, 185, 120, 0.15);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--lato);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.65px;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button--primary {
    background: linear-gradient(135deg, var(--red-bright), var(--red) 55%, #c81f28);
    color: #ffffff;
    box-shadow: var(--shadow-red);
}

.button--primary:hover {
    box-shadow: 0 20px 55px rgba(227, 38, 47, 0.34);
}
.button--wide {
    width: 100%;
}

.button__spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(60, 5, 9, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.button.is-loading .button__label,
.button.is-loading > .icon {
    opacity: 0;
}

.button.is-loading .button__spinner {
    position: absolute;
    display: block;
}

.button[disabled] {
    pointer-events: none;
    opacity: 0.75;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid rgba(227, 38, 47, 0.18);
    border-radius: 13px;
    background: rgba(227, 38, 47, 0.06);
    color: #5c1014;
    font-size: 14px;
    line-height: 1.45;
}

.notice__icon {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: rgba(227, 38, 47, 0.12);
    color: #c41f28;
}

.notice p,
.notice ul {
    margin: 0;
}

.notice ul {
    padding-left: 18px;
    margin-top: 6px;
}

.notice strong {
    font-family: var(--lato);
    font-weight: 700;
}

.notice--success {
    border-color: rgba(25, 185, 120, 0.23);
    background: rgba(25, 185, 120, 0.07);
    color: #145a3b;
}

.notice--success .notice__icon {
    background: rgba(25, 185, 120, 0.13);
    color: #0d8a52;
}

.notice--warning {
    border-color: rgba(255, 182, 46, 0.25);
    background: rgba(255, 182, 46, 0.08);
    color: #6a4a00;
}

.notice--warning .notice__icon {
    background: rgba(255, 182, 46, 0.15);
    color: #a66c00;
}

.notice--danger {
    border-color: rgba(214, 53, 70, 0.23);
    background: rgba(214, 53, 70, 0.065);
    color: #8a1e2a;
}

.notice--danger .notice__icon {
    background: rgba(214, 53, 70, 0.12);
    color: #bc2c3e;
}

.notice--info {
    color: #5c1014;
}
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-showcase {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: start;
    height: 100vh;
    height: 100dvh;
    padding: clamp(32px, 4.5vw, 64px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 72, 78, 0.33) 0%, rgba(120, 10, 16, 0.18) 30%, transparent 60%),
        radial-gradient(circle at 18% 80%, rgba(200, 30, 38, 0.14) 0%, transparent 50%),
        linear-gradient(145deg, #5a090e 0%, #9e1820 42%, #3d0609 100%);
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(227, 38, 47, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 38, 47, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(40, 4, 7, 0.42), transparent 50%, rgba(40, 4, 7, 0.35));
    pointer-events: none;
}

.auth-showcase__texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.65px, transparent 0.8px);
    background-size: 4px 4px;
    opacity: 0.38;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.auth-showcase__glow {
    position: absolute;
    top: -24%;
    right: -16%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 72, 78, 0.3) 0%, rgba(150, 15, 22, 0.12) 44%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.auth-showcase__watermark {
    position: absolute;
    right: -0.06em;
    bottom: -0.17em;
    z-index: -1;
    color: rgba(227, 38, 47, 0.055);
    font-family: var(--lato);
    font-size: clamp(210px, 30vw, 520px);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 0.7;
    user-select: none;
    pointer-events: none;
}

.auth-showcase__model {
    position: absolute;
    right: 6%;
    bottom: 2%;
    z-index: -1;
    width: min(32vw, 340px);
    max-height: 72vh;
    object-fit: contain;
    opacity: 0.11;
    filter: invert(1) brightness(1.45);
    pointer-events: none;
}

.auth-showcase__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: auto 0;
    padding: 70px 0;
}

.auth-showcase__content h1 {
    margin: 22px 0 22px;
    color: #edf0f6;
    font-size: clamp(48px, 5.4vw, 82px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 0.92;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.auth-showcase__content h1 span {
    color: var(--red-bright);
    text-shadow: 0 0 50px rgba(227, 38, 47, 0.3);
}

.auth-showcase__content > p {
    max-width: 520px;
    margin-bottom: 30px;
    color: #9db4c2;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
}

.showcase-list {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.showcase-list li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #b1bacb;
    font-family: var(--lato);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.showcase-list__check {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border: 1px solid rgba(227, 38, 47, 0.25);
    border-radius: 50%;
    background: rgba(227, 38, 47, 0.1);
    color: var(--red-bright);
    font-size: 11px;
}

.showcase-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 17px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #66818f;
    font-family: var(--lato);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.1px;
}

.showcase-strip i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(227, 38, 47, 0.6);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 64px);
    background:
        radial-gradient(circle at 100% 0%, rgba(227, 38, 47, 0.06), transparent 34%),
        #f4f5f8;
    color: var(--ink);
}

.auth-panel__inner {
    width: 100%;
    max-width: 470px;
}

.auth-panel__eyebrow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: clamp(30px, 5vh, 58px);
}

.auth-card {
    padding: clamp(28px, 3.4vw, 42px);
    border: 1px solid rgba(21, 24, 31, 0.07);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(21, 24, 31, 0.1);
    animation: card-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-card__header {
    margin-bottom: 26px;
}

.auth-card__header .eyebrow {
    color: #d0232c;
    margin-bottom: 12px;
}

.auth-card__header h2 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 38px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.auth-card__header p {
    margin: 0;
    color: #6b7f8a;
    font-size: 15px;
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    color: #263b47;
    font-family: var(--lato);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field__hint-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 4px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #7b8f9b;
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.field__hint-button:hover {
    color: #b51c24;
}

.field__hint-button .icon {
    font-size: 16px;
}

.field__hint-button .icon--eye-off {
    display: none;
}

.field__hint-button.is-visible .icon--eye {
    display: none;
}

.field__hint-button.is-visible .icon--eye-off {
    display: block;
}

.field__control {
    position: relative;
    display: flex;
    align-items: center;
}

.field__icon {
    position: absolute;
    left: 16px;
    display: grid;
    place-items: center;
    color: #8397a2;
    pointer-events: none;
    transition: color 0.18s ease;
}

.field__icon .icon {
    font-size: 18px;
}

.field input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    border: 1px solid #d7e2e8;
    border-radius: 13px;
    background: #f9fbfc;
    color: var(--ink);
    font-family: var(--source);
    font-size: 15px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input::placeholder {
    color: #98aab4;
}

.field input:focus {
    border-color: var(--red);
    outline: 0;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(227, 38, 47, 0.1);
}

.field input:focus + .field__icon,
.field__control:focus-within .field__icon {
    color: var(--red-deep);
}

.field input[aria-invalid="true"] {
    border-color: rgba(214, 53, 70, 0.6);
    box-shadow: 0 0 0 4px rgba(214, 53, 70, 0.07);
}

.field input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px #f9fbfc inset;
    transition: background-color 9999s ease-out;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
}

.form-row__meta {
    color: #8ea0aa;
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #445b67;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.check__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 1px solid #c7d5dc;
    border-radius: 6px;
    background: #f9fbfc;
    color: #ffffff;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.check__box .icon {
    font-size: 11px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.check input:checked + .check__box {
    border-color: var(--red);
    background: var(--red);
}

.check input:checked + .check__box .icon {
    opacity: 1;
    transform: scale(1);
}

.check input:focus-visible + .check__box {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.caps-hint {
    margin: 2px 0 0;
    color: #a16600;
    font-family: var(--lato);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.75px;
}

.auth-card .button--primary {
    min-height: 54px;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 1px;
}

.auth-card__support {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f3;
    color: #82939c;
    font-size: 12.5px;
    line-height: 1.5;
}

.auth-card__support .icon {
    margin-top: 1px;
    color: #8fa4af;
    font-size: 16px;
}

.auth-card__support p {
    margin: 0;
}

.auth-card__support a {
    color: #c41f28;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(181, 28, 36, 0.28);
    text-underline-offset: 2px;
}

.auth-card__support a:hover {
    color: #8f161c;
}

.auth-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    color: #81939d;
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-transform: uppercase;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secure-note .icon {
    font-size: 15px;
    color: #1b9b6b;
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand__name b {
    color: var(--red);
    font-weight: inherit;
}

@media (max-width: 1180px) {
    .auth-showcase__content h1 {
        font-size: clamp(46px, 5vw, 64px);
    }
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-showcase {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        min-height: 100dvh;
        background:
            radial-gradient(circle at 50% -10%, rgba(227, 38, 47, 0.12), transparent 36%),
            #f4f5f8;
    }

    .brand--panel {
        display: inline-flex;
    }

    .auth-panel__eyebrow {
        justify-content: flex-start;
        margin-bottom: 22px;
    }
}

@media (max-width: 760px) {
    .auth-panel {
        align-items: flex-start;
        padding: 22px 18px 30px;
    }

    .auth-panel__inner {
        max-width: 560px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 22px;
        box-shadow: 0 20px 60px rgba(21, 24, 31, 0.09);
    }

    .auth-card__header h2 {
        font-size: 31px;
    }

    .auth-panel__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 0 4px;
    }

    .brand--compact .brand__mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 13px;
    }

    .brand--compact .brand__name {
        font-size: 17px;
    }

    .brand--compact .brand__tag {
        font-size: 8px;
        letter-spacing: 1.35px;
    }
}

/* Windows up to 1080p's (about 900px tall in Chrome): tighter, so the join form fits too, with no scrolling */
@media (max-height: 1000px) and (min-width: 961px) {
    .auth-panel {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .auth-panel__eyebrow {
        margin-bottom: 22px;
    }

    .auth-card {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .auth-panel__footer {
        margin-top: 16px;
    }

    .auth-form {
        gap: 14px;
    }

    .auth-showcase__content {
        padding: 34px 0;
    }
}

@media (max-height: 780px) and (min-width: 961px) {
    .auth-form {
        gap: 12px;
    }
}

/* Desktop: the page is exactly the window, never taller, so a 1080p screen never scrolls (Danny 2026-11-15: "I don't want a
   scroll on this size 1080p"). Sized from the window itself (height: 100% down from html), not from vh units. The sign-in
   column sits near the top, not centered, so it is in view however tall the window (Danny 2026-11-15: centered, it sat low
   on his Chrome); if a window is too short for it, that column scrolls on its own, never the page. */
@media (min-width: 961px) {
    html,
    body.auth-page {
        height: 100%;
        overflow: hidden;
    }

    .auth-shell {
        height: 100%;
        min-height: 0;
    }

    .auth-showcase {
        position: relative;
        height: 100%;
    }

    .auth-panel {
        height: 100%;
        overflow-y: auto;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .auth-panel::before {                 /* the gap above the form: up to 60px, and the first thing to give way when room is short */
        content: "";
        flex: 0 1 60px;
    }

    .auth-panel__inner {
        flex: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.field__optional {
    color: #8ea0aa;
    font-weight: 400;
}

.field__hint {
    margin: 0;
    color: #7b8f9b;
    font-size: 12.5px;
    line-height: 1.4;
}

.theme-switch {
    padding: 7px 12px;
    border: 1px solid rgba(21, 24, 31, 0.16);
    border-radius: 999px;
    background: transparent;
    color: #445b67;
    font-family: var(--lato);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.theme-switch:hover {
    border-color: var(--red);
    color: var(--red-deep);
}

.auth-panel__eyebrow {
    flex-wrap: wrap;
    gap: 10px;
}

/* Dark theme: red on the site's dark gray-blue. */
[data-theme="dark"] body.auth-page {
    background: #1b2230;
}

[data-theme="dark"] .auth-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(227, 38, 47, 0.1), transparent 36%),
        #1b2230;
    color: var(--paper);
}

[data-theme="dark"] .auth-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: #222b3b;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .brand--panel .brand__name,
[data-theme="dark"] .auth-card__header h2 {
    color: #edf0f6;
}

[data-theme="dark"] .brand--panel .brand__tag,
[data-theme="dark"] .form-row__meta,
[data-theme="dark"] .auth-panel__footer {
    color: #8591a6;
}

[data-theme="dark"] .status-pill {
    border-color: rgba(227, 38, 47, 0.3);
    background: rgba(227, 38, 47, 0.1);
    color: #ff8a8f;
}

[data-theme="dark"] .theme-switch {
    border-color: rgba(255, 255, 255, 0.18);
    color: #b1bacb;
}

[data-theme="dark"] .theme-switch:hover {
    border-color: var(--red-bright);
    color: var(--red-bright);
}

[data-theme="dark"] .auth-card__header .eyebrow {
    color: var(--red-bright);
}

[data-theme="dark"] .auth-card__header p,
[data-theme="dark"] .auth-card__support,
[data-theme="dark"] .field__hint,
[data-theme="dark"] .field__optional {
    color: #8591a6;
}

[data-theme="dark"] .field label,
[data-theme="dark"] .check {
    color: #d5dbe6;
}

[data-theme="dark"] .field__hint-button,
[data-theme="dark"] .field__icon,
[data-theme="dark"] .auth-card__support .icon {
    color: #8591a6;
}

[data-theme="dark"] .field__hint-button:hover,
[data-theme="dark"] .field__control:focus-within .field__icon {
    color: var(--red-bright);
}

[data-theme="dark"] .field input {
    border-color: #34405a;
    background: #1b2230;
    color: #edf0f6;
}

[data-theme="dark"] .field input::placeholder {
    color: #6b7690;
}

[data-theme="dark"] .field input:focus {
    border-color: var(--red);
    background: #151b27;
    box-shadow: 0 0 0 4px rgba(227, 38, 47, 0.16);
}

[data-theme="dark"] .field input[aria-invalid="true"] {
    border-color: rgba(255, 99, 115, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 99, 115, 0.12);
}

[data-theme="dark"] .field input:-webkit-autofill {
    -webkit-text-fill-color: #edf0f6;
    -webkit-box-shadow: 0 0 0 1000px #1b2230 inset;
}

[data-theme="dark"] .check__box {
    border-color: #3d4a66;
    background: #1b2230;
}

[data-theme="dark"] .caps-hint {
    color: var(--amber);
}

[data-theme="dark"] .auth-card__support {
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-card__support a {
    color: var(--red-bright);
    text-decoration-color: rgba(255, 120, 125, 0.35);
}

[data-theme="dark"] .auth-card__support a:hover {
    color: #ffb3b6;
}

[data-theme="dark"] .notice {
    border-color: rgba(227, 38, 47, 0.25);
    background: rgba(227, 38, 47, 0.08);
    color: #f6d5d6;
}

[data-theme="dark"] .notice__icon {
    background: rgba(227, 38, 47, 0.16);
    color: var(--red-bright);
}

[data-theme="dark"] .notice--success {
    border-color: rgba(66, 217, 139, 0.28);
    background: rgba(66, 217, 139, 0.08);
    color: #bdf5d8;
}

[data-theme="dark"] .notice--success .notice__icon {
    background: rgba(66, 217, 139, 0.15);
    color: var(--green);
}

[data-theme="dark"] .notice--warning {
    border-color: rgba(255, 182, 46, 0.3);
    background: rgba(255, 182, 46, 0.08);
    color: #ffe2a8;
}

[data-theme="dark"] .notice--warning .notice__icon {
    background: rgba(255, 182, 46, 0.15);
    color: var(--amber);
}

[data-theme="dark"] .notice--danger {
    border-color: rgba(255, 99, 115, 0.32);
    background: rgba(255, 99, 115, 0.09);
    color: #ffc9cf;
}

[data-theme="dark"] .notice--danger .notice__icon {
    background: rgba(255, 99, 115, 0.16);
    color: var(--danger);
}
