/* ══ The sign-in pages in the Playground look ══
 * views/look/login.ejs, signup.ejs, forgot-password.ejs, reset-password.ejs, two-step.ejs, choose-username.ejs and
 * auth-status.ejs, with partials/look-signin-side.ejs and look-signin-bar.ejs, on top of the kit (public/css/look.css).
 * Every rule starts with .lk-signin (the pages' body class), so nothing here reaches another page.
 * The scripts are today's (public/js/dashboard.js, auth-recover.js), and so are the classes they read and write:
 * .st-auth-card (the shake), .st-auth-error, .st-auth-handle-mark, .st-auth-status, .st-auth-suggest and the buttons
 * built in it, .st-auth-submit-spin. They are styled here, inside the pages.
 * The sign-in buttons (partials/auth-oauth-buttons.ejs, shared with today's pages) follow Google's and Microsoft's own
 * rules for them, so they are not the kit's buttons: the light theme's white with a 1px grey edge, each company's
 * logo in its own colours, no offset shadow, and the same size and weight for all, so none outranks Google. */

.lk-signin {
    /* Google's light sign-in button (developers.google.com/identity/branding-guidelines). */
    --lk-signin-provider-bg: #ffffff;
    --lk-signin-provider-hover: #f2f2f2;
    --lk-signin-google-stroke: #747775;
    --lk-signin-google-ink: #1f1f1f;
    /* Microsoft's light sign-in button (its official SVG). */
    --lk-signin-ms-stroke: #8c8c8c;
    --lk-signin-ms-ink: #5e5e5e;
    /* The other marks, in their owners' colours. */
    --lk-signin-github: #24292f;
    --lk-signin-discord: #5865f2;
    --lk-signin-x: #000000;
    --lk-signin-card-max: 480px;
    /* The kit's hard shadow, lifted a little further (a card that is a link, as a.lk-card), and in the danger colour (an
       input the kit marks invalid). */
    --lk-signin-sh-lift: 8px 8px 0 var(--lk-shadow);
    --lk-signin-sh-danger: 3px 3px 0 var(--lk-danger);
}

/* ── The stage: the dotted ground under the menu, the card in the middle of what's left of the screen ── */

.lk-signin .lk-signin-stage {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--lk-nav-h));
    min-height: calc(100svh - var(--lk-nav-h));
    padding: clamp(28px, 6vh, 72px) 0 clamp(48px, 9vh, 104px);
}

/* Grid items may shrink below their content's widest word (a long name, the username box). */
.lk-signin .lk-signin-stage > *,
.lk-signin .lk-signin-split > * {
    min-width: 0;
}

.lk-signin .lk-signin-split {
    display: grid;
    gap: 48px;
    justify-items: center;
}

@media (min-width: 900px) {
    .lk-signin .lk-signin-split {
        grid-template-columns: minmax(0, var(--lk-signin-card-max)) minmax(0, 420px);
        align-items: center;
        justify-content: center;
        column-gap: clamp(48px, 7vw, 128px);
    }
}

.lk-signin .lk-signin-col {
    width: 100%;
    max-width: var(--lk-signin-card-max);
    animation: lk-signin-drop 0.6s cubic-bezier(0.3, 1.3, 0.4, 1) both;
}

.lk-signin .lk-signin-col--single {
    margin-inline: auto;
}

@keyframes lk-signin-drop {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }
}

.lk-signin .lk-signin-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 22px;
    color: var(--lk-muted);
    font: 600 14px/1.2 var(--lk-mono);
    text-decoration: none;
}

.lk-signin .lk-signin-back:hover {
    color: var(--lk-ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ── The card ── */

.lk-signin .lk-signin-card {
    width: 100%;
    padding: clamp(22px, 2.3vw, 34px);
}

/* A state's picture hangs off the card's top corner, like the home's stickers. */
.lk-signin .lk-signin-col--single .lk-signin-card {
    padding-top: clamp(34px, 3vw, 44px);
}

.lk-signin .lk-signin-title {
    font-family: var(--lk-disp);
    font-size: clamp(30px, 1.2vw + 20px, 40px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.lk-signin .lk-signin-sub {
    margin-top: 10px;
    color: var(--lk-muted);
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* A long label in Spanish or Portuguese wraps inside its button rather than out of the card (the page's own buttons,
   not the menu's). */
.lk-signin .lk-signin-stage .lk-btn--block {
    white-space: normal;
}

.lk-signin .lk-signin-note {
    color: var(--lk-muted);
    font-size: 14px;
    line-height: 1.5;
}

.lk-signin .lk-signin-tile {
    position: absolute;
    top: -26px;
    inset-inline-end: 26px;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    rotate: 6deg;
}

.lk-signin .lk-signin-tile svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-signin .lk-signin-tile--lilac { background: var(--lk-lilac); color: var(--lk-brand-deep); }
.lk-signin .lk-signin-tile--sky { background: var(--lk-sky); color: var(--lk-info); }
.lk-signin .lk-signin-tile--mint { background: var(--lk-mint); color: var(--lk-ok); }
.lk-signin .lk-signin-tile--rose { background: var(--lk-rose); color: var(--lk-danger); }

/* An error makes the card shake (public/js/dashboard.js adds .is-shake); the words say what went wrong. */
.lk-signin .st-auth-card.is-shake {
    animation: lk-signin-shake 0.42s ease;
}

@keyframes lk-signin-shake {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-7px); }
    36% { transform: translateX(7px); }
    54% { transform: translateX(-4px); }
    72% { transform: translateX(4px); }
}

/* ── The sign-in buttons (partials/auth-oauth-buttons.ejs) ── */

.lk-signin .lk-signin-providers {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

/* "Welcome back", when the last way in is known. */
.lk-signin .lk-signin-providers .st-auth-welcome {
    margin-bottom: 2px;
    color: var(--lk-brand-deep);
    font: 700 12.5px/1.3 var(--lk-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lk-signin .st-auth-google {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--lk-signin-google-stroke);
    border-radius: var(--lk-r);
    background: var(--lk-signin-provider-bg);
    color: var(--lk-signin-google-ink);
    font: 500 15px/20px var(--lk-body);
    text-align: center;
    text-decoration: none;
    transition: background-color 0.12s ease;
}

.lk-signin .st-auth-google:hover,
.lk-signin .st-auth-google:active {
    background: var(--lk-signin-provider-hover);
    color: var(--lk-signin-google-ink);
}

.lk-signin .st-auth-google:focus-visible {
    outline: 3px solid var(--lk-focus);
    outline-offset: 3px;
}

.lk-signin .st-auth-google svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.lk-signin #microsoftLogin,
.lk-signin #microsoftLogin:hover,
.lk-signin #microsoftLogin:active {
    border-color: var(--lk-signin-ms-stroke);
    color: var(--lk-signin-ms-ink);
}

.lk-signin #githubLogin svg {
    color: var(--lk-signin-github);
}

.lk-signin #xLogin svg {
    color: var(--lk-signin-x);
}

.lk-signin #discordLogin svg {
    color: var(--lk-signin-discord);
}

/* "Last used": a sticker on the button's top corner. Its button keeps 14px above its words however they wrap, and the
   sticker reaches no lower than that, so it never covers a letter. */
.lk-signin .st-auth-google--last {
    padding-block: 14px;
}

.lk-signin .st-auth-last-tag {
    position: absolute;
    top: -12px;
    inset-inline-end: 12px;
    padding: 3px 8px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-y);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-on-y);
    font: 700 10.5px/1.2 var(--lk-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    rotate: 3deg;
}

.lk-signin .lk-signin-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 20px;
    color: var(--lk-muted);
    font: 600 13px/1 var(--lk-mono);
}

.lk-signin .lk-signin-or::before,
.lk-signin .lk-signin-or::after {
    content: "";
    flex: 1;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
}

/* ── The forms ── */

.lk-signin .lk-signin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.lk-signin .lk-signin-or + .lk-signin-form {
    margin-top: 0;
}

/* What went wrong, as the kit's danger notice: the script writes the words (role=alert); the mark beside them is drawn
   here. On forgot, reset and two-step it sits just before the form (public/js/auth-recover.js looks there), elsewhere
   first in the form. */
.lk-signin .st-auth-error {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin: 22px 0 0;
    padding: 12px 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-danger-bg);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.lk-signin .lk-signin-form > .st-auth-error {
    margin-top: 0;
}

.lk-signin .st-auth-error::before {
    content: "";
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background: var(--lk-danger);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.lk-signin .lk-signin-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 16px;
    margin-top: -4px;
}

.lk-signin .lk-signin-row .lk-check,
.lk-signin .lk-signin-row .lk-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.lk-signin .lk-signin-row .lk-link {
    font-size: 15px;
}

/* Log in, Sign up, Send reset link, Save new password and Continue are busy while their request runs: the scripts
   (dashboard.js, auth-recover.js) set aria-busy beside disabled. Busy is drawn as the kit draws it, with the button's
   own colours and the spinner; a disabled button without aria-busy is the kit's flat grey. Pick your username's
   button is the kit's own busy one. */
.lk-signin :is(#loginSubmit, #signupSubmit, #forgotSubmit, #resetSubmit, #twoStepSubmit)[aria-busy="true"] {
    border-color: var(--lk-line);
    background: var(--lk-brand);
    box-shadow: var(--lk-sh);
    color: var(--lk-on-brand);
    cursor: progress;
}

.lk-signin :is(#loginSubmit, #signupSubmit, #forgotSubmit, #resetSubmit, #twoStepSubmit)[aria-busy="true"]::after {
    content: "";
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lk-signin-spin 0.7s linear infinite;
}

.lk-signin .lk-signin-fine {
    color: var(--lk-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.lk-signin .lk-signin-fine a {
    color: var(--lk-brand-deep);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
}

/* The other way: "New to Striqr? Sign up instead", "Remembered it? Back to log in", "Not you? Sign in again". */
.lk-signin .lk-signin-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
    color: var(--lk-muted);
    font-size: 15px;
    text-align: center;
}

.lk-signin .lk-signin-switch .lk-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* The person the page is about: the account a new password is for, or who just signed in. */
.lk-signin .lk-signin-who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 12px 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface-2);
}

.lk-signin .lk-signin-who .lk-avatar {
    width: 42px;
    height: 42px;
    font-size: 17px;
}

.lk-signin .st-auth-who-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.lk-signin .st-auth-who-copy strong {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.lk-signin .st-auth-who-copy em {
    color: var(--lk-muted);
    font: 500 13px/1.4 var(--lk-mono);
    font-style: normal;
    overflow-wrap: anywhere;
}

/* ── Two-step: one box for the code, big and in the code font ── */

.lk-signin .lk-signin-as {
    margin-top: 14px;
    border-radius: var(--lk-r);
    white-space: normal;
    overflow-wrap: anywhere;
}

.lk-signin .lk-signin-code {
    min-height: 64px;
    padding-inline-start: calc(14px + 0.3em);
    font: 600 28px/1.2 var(--lk-mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.3em;
    text-align: center;
}

.lk-signin .lk-signin-code--recovery {
    min-height: 56px;
    padding-inline-start: calc(14px + 0.12em);
    font-size: 19px;
    letter-spacing: 0.12em;
}

.lk-signin .lk-signin-alt {
    margin-top: 6px;
}

.lk-signin .lk-signin-alt + .lk-signin-note {
    margin-top: 10px;
    text-align: center;
}

/* ── Pick your username ── */

.lk-signin .lk-signin-step {
    top: -18px;
    inset-inline-end: 22px;
    --r: 4deg;
}

.lk-signin .lk-signin-school {
    margin-top: 18px;
}

/* The username box is the kit's input (.lk-input) with striqr.com/ and the check's mark inside it. */
.lk-signin .st-auth-handle {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 10px 0 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: var(--lk-r);
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    transition: box-shadow 0.12s ease;
}

.lk-signin .st-auth-handle:focus-within {
    outline: 3px solid var(--lk-focus);
    outline-offset: 2px;
}

.lk-signin .st-auth-handle-prefix {
    flex: 0 0 auto;
    color: var(--lk-faint);
    font: 500 15px/1.4 var(--lk-mono);
}

.lk-signin .st-auth-handle-host {
    color: var(--lk-muted);
}

.lk-signin .st-auth-handle input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 12px 8px 12px 1px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--lk-ink);
    font: 600 16px/1.4 var(--lk-body);
}

.lk-signin .st-auth-handle-mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: var(--lk-bw) solid transparent;
    border-radius: 50%;
}

.lk-signin .st-auth-handle-mark svg {
    width: 15px;
    height: 15px;
}

.lk-signin .st-auth-handle-mark.is-ok {
    border-color: var(--lk-ok);
    background: var(--lk-ok-bg);
    color: var(--lk-ok);
}

.lk-signin .st-auth-handle-mark.is-error {
    border-color: var(--lk-danger);
    background: var(--lk-danger-bg);
    color: var(--lk-danger);
}

.lk-signin .st-auth-handle-mark.is-checking {
    border-color: var(--lk-line-soft);
    border-top-color: var(--lk-brand);
    animation: lk-signin-spin 0.7s linear infinite;
}

@keyframes lk-signin-spin {
    to { transform: rotate(360deg); }
}

.lk-signin #chooseUsernameField.is-ok .st-auth-handle {
    border-color: var(--lk-ok);
}

.lk-signin #chooseUsernameField.is-error .st-auth-handle {
    border-color: var(--lk-danger);
    box-shadow: var(--lk-signin-sh-danger);
}

/* The name's live check: its words carry ✓ or ✗, so the colour is never the only sign. */
.lk-signin .st-auth-status {
    color: var(--lk-muted);
    font-size: 14.5px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.lk-signin .st-auth-status.is-ok {
    color: var(--lk-ok);
}

.lk-signin .st-auth-status.is-error {
    color: var(--lk-danger);
    font-weight: 700;
}

.lk-signin .st-auth-suggest {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-signin .st-auth-suggest-label {
    color: var(--lk-muted);
    font-size: 14px;
}

.lk-signin .st-auth-suggest-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

/* The names dashboard.js offers are buttons it builds with today's classes. */
.lk-signin .st-auth-suggest-list button {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 0 14px;
    border: var(--lk-bw) solid var(--lk-line);
    border-radius: 999px;
    background: var(--lk-surface);
    box-shadow: var(--lk-sh-sm);
    color: var(--lk-ink);
    font: 600 14px/1.2 var(--lk-mono);
    overflow-wrap: anywhere;
    cursor: pointer;
    appearance: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.lk-signin .st-auth-suggest-list button:hover {
    background: var(--lk-y);
    transform: translate(-1px, -1px);
    box-shadow: var(--lk-sh);
}

.lk-signin .st-auth-suggest-list button:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

/* The kit's busy button (aria-busy) draws its own spinner beside "Creating…". */
.lk-signin .st-auth-submit-spin {
    display: none;
}

.lk-signin .lk-signin-cancel {
    margin-top: 22px;
    padding-top: 14px;
    border-top: var(--lk-bw) dashed var(--lk-line-soft);
    text-align: center;
}

.lk-signin .lk-signin-linkbtn {
    min-height: 44px;
    margin: 0;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--lk-brand-deep);
    font: 700 15px/1.3 var(--lk-body);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.lk-signin .lk-signin-linkbtn:hover {
    text-decoration-color: var(--lk-y);
}

/* ── The status page: what a link said, and where to go ── */

.lk-signin .lk-signin-actions {
    margin-top: 24px;
}

.lk-signin .lk-signin-actions .lk-btn {
    flex: 1 1 200px;
    white-space: normal;
}

/* ── Beside the form on Log in and Sign up (partials/look-signin-side.ejs) ── */

.lk-signin .lk-signin-side {
    display: grid;
    gap: 28px;
    width: 100%;
    max-width: 420px;
}

.lk-signin .lk-signin-side .lk-card {
    padding: 22px 24px;
}

.lk-signin .lk-signin-side p {
    margin-top: 8px;
    color: var(--lk-ink);
    font-size: 15.5px;
    line-height: 1.5;
}

.lk-signin .lk-signin-try {
    background: var(--lk-sun);
    rotate: -1deg;
    transition: translate 0.14s ease, box-shadow 0.14s ease;
}

.lk-signin .lk-signin-try-sticker {
    top: -18px;
    inset-inline-end: -8px;
    --r: 5deg;
}

.lk-signin .lk-signin-try-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    min-height: 32px;
}

/* The whole card is the link's target. */
.lk-signin .lk-signin-try-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.lk-signin .lk-signin-try-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lk-signin .lk-signin-try:has(.lk-signin-try-link:hover),
.lk-signin .lk-signin-try:focus-within {
    translate: -2px -2px;
    box-shadow: var(--lk-signin-sh-lift);
}

.lk-signin .lk-signin-free {
    background: var(--lk-mint);
    rotate: 1deg;
}

@media (min-width: 900px) {
    .lk-signin .lk-signin-try {
        max-width: 400px;
        rotate: -2deg;
    }

    .lk-signin .lk-signin-free {
        width: 88%;
        margin-inline-start: auto;
        rotate: 2deg;
    }
}

/* ── The slim bar on two-step and Pick your username (partials/look-signin-bar.ejs) ── */

.lk-signin .lk-signin-bar {
    position: relative;
    z-index: 5;
    border-bottom: var(--lk-bw) solid var(--lk-line);
    background: var(--lk-surface);
}

.lk-signin .lk-signin-bar-in {
    display: flex;
    align-items: center;
    min-height: var(--lk-nav-h);
}

.lk-signin .lk-signin-bar-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--lk-ink);
}

.lk-signin .lk-signin-bar-svg {
    width: auto;
    height: 30px;
}

.lk-signin .lk-signin-bar-svg .st-logo-mark {
    color: var(--lk-brand);
}

/* ── Phones ── */

@media (max-width: 479px) {
    /* A phone starts at the top: no empty band above a short card. */
    .lk-signin .lk-signin-stage {
        align-items: start;
        padding-top: 32px;
    }

    .lk-signin .lk-signin-tile {
        top: -22px;
        inset-inline-end: 18px;
        width: 48px;
        height: 48px;
    }

    .lk-signin .lk-signin-tile svg {
        width: 22px;
        height: 22px;
    }

    .lk-signin .st-auth-handle-prefix {
        font-size: 13px;
    }

    .lk-signin .lk-signin-code {
        font-size: 24px;
        letter-spacing: 0.24em;
    }

    /* A recovery code is 14 characters (xxxx-xxxx-xxxx): all of it shows from 320 px. */
    .lk-signin .lk-signin-code--recovery {
        padding-inline-start: calc(14px + 0.06em);
        font-size: 17px;
        letter-spacing: 0.06em;
    }
}

/* The smallest phones: a little less padding, so "Continue with Google", GitHub and Discord keep to one line in every
   language. */
@media (max-width: 359px) {
    .lk-signin .lk-signin-card {
        padding-inline: 16px;
    }

    .lk-signin .st-auth-google {
        gap: 8px;
        padding-inline: 10px;
        font-size: 14.5px;
    }
}

/* ── Big monitors: a little more room, as on the home ── */

@media (min-width: 1600px) {
    .lk-signin {
        --lk-signin-card-max: 520px;
    }

    .lk-signin .lk-signin-split {
        grid-template-columns: minmax(0, var(--lk-signin-card-max)) minmax(0, 460px);
    }

    .lk-signin .lk-signin-side {
        max-width: 460px;
    }

    .lk-signin .lk-signin-title {
        font-size: clamp(40px, 0.8vw + 28px, 50px);
    }

    .lk-signin .lk-signin-sub {
        font-size: 17px;
    }

    .lk-signin .st-auth-google {
        min-height: 52px;
        font-size: 16px;
    }
}

/* ── Less motion ── */

@media (prefers-reduced-motion: reduce) {
    .lk-signin .lk-signin-col,
    .lk-signin .st-auth-card.is-shake,
    .lk-signin .st-auth-handle-mark.is-checking,
    .lk-signin :is(#loginSubmit, #signupSubmit, #forgotSubmit, #resetSubmit, #twoStepSubmit)[aria-busy="true"]::after {
        animation: none;
    }

    .lk-signin .st-auth-google,
    .lk-signin .lk-signin-try,
    .lk-signin .st-auth-suggest-list button,
    .lk-signin .st-auth-handle {
        transition: none;
    }

    .lk-signin .lk-signin-try:has(.lk-signin-try-link:hover),
    .lk-signin .lk-signin-try:focus-within,
    .lk-signin .st-auth-suggest-list button:hover,
    .lk-signin .st-auth-suggest-list button:active {
        translate: none;
        transform: none;
    }
}

/* ══ The sign-in pages in the Playground look: end ══ */
