/* Grupo Terre look: warm paper, near-black ink, black pill buttons, photo banners per restaurant.
   Space Grotesk (SIL OFL, fonts/SpaceGrotesk-OFL.txt) stands in for the sites' own Fugue. */

@font-face {
    font-family: "Space Grotesk";
    src: url("/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg: #f4f0ea;
    --surface: #fffdf9;
    --surface-2: #efe9e1;
    --ink: #141210;
    --ink-2: #3b3631;
    --muted: #7a7168;
    --line: #e6dfd5;
    --line-strong: #d2c9bd;
    --inverse: #141210;
    --inverse-ink: #f7f3ed;
    --accent: #c2602f;
    --ok: #157347;
    --ok-bg: #e2f2e8;
    --error: #b42318;
    --error-bg: #fde7e4;
    --info-bg: #ebe5dc;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgb(20 18 16 / .05), 0 14px 34px -18px rgb(20 18 16 / .22);
    --night: #0f0e0d;
    --night-ink: #f4efe8;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f0e0d;
        --surface: #181614;
        --surface-2: #221f1c;
        --ink: #f4efe8;
        --ink-2: #d8d0c6;
        --muted: #a0968b;
        --line: #2b2724;
        --line-strong: #3d3833;
        --inverse: #f4efe8;
        --inverse-ink: #141210;
        --ok: #62d39c;
        --ok-bg: #11301f;
        --error: #ff8f80;
        --error-bg: #3b1713;
        --info-bg: #221f1c;
        --shadow: 0 1px 2px rgb(0 0 0 / .45), 0 14px 34px -18px rgb(0 0 0 / .7);
        color-scheme: dark;
    }
}

/* Each restaurant: its accent colour and banner photo. A site without a rule gets the default accent and a dark banner. */
.site--restauranteterre {
    --accent: #c9693a;
    --hero: url("/img/sites/restauranteterre.jpg");
    --hero-position: 50% 64%;
}

.site--abarrotebar {
    --accent: #4d7cff;
    --hero: url("/img/sites/abarrotebar.jpg");
    --hero-position: 35% 28%;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

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

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    line-height: .98;
    letter-spacing: -.045em;
}

h2 {
    letter-spacing: -.03em;
}

p {
    margin: 0;
}

small {
    font-size: .82rem;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    display: block;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Top bar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(15 14 13 / .94);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    color: var(--night-ink);
    border-bottom: 1px solid rgb(255 255 255 / .08);
}

.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand img {
    height: 32px;
    width: auto;
    display: block;
}

.brand span {
    padding-left: 14px;
    border-left: 1px solid rgb(255 255 255 / .22);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav a,
.logout button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: rgb(244 239 232 / .72);
    font: inherit;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, background .15s;
}

.nav a:hover,
.logout button:hover {
    color: #fff;
    background: rgb(255 255 255 / .09);
    opacity: 1;
}

.nav a[aria-current="page"] {
    color: var(--night);
    background: var(--night-ink);
}

.logout {
    margin: 0;
    padding-left: 8px;
    border-left: 1px solid rgb(255 255 255 / .14);
}

/* Phones: logo and "Salir" on the first row, the menu on its own row below. */
@media (max-width: 720px) {
    .topbar-inner {
        padding: 10px 12px 8px;
    }

    .brand img {
        height: 26px;
    }

    .logout {
        margin-left: auto;
        border-left: 0;
    }

    .nav {
        order: 3;
        width: 100%;
        margin: 0 -4px;
    }

    .nav a,
    .logout button {
        padding: 7px 11px;
        font-size: .87rem;
    }
}

/* ---------- Page ---------- */

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 72px;
}

main.narrow {
    max-width: 620px;
}

.page-head {
    padding: 44px 0 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px 24px;
}

.page-head > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lede {
    font-size: 1.06rem;
    color: var(--ink-2);
    max-width: 62ch;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
}

.back:hover {
    color: var(--ink);
}

.back + .page-head {
    padding-top: 18px;
}

/* ---------- Buttons and links ---------- */

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--inverse);
    border-radius: 999px;
    background: var(--inverse);
    color: var(--inverse-ink);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -.005em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s, background .15s, color .15s;
}

button:hover,
.btn:hover {
    opacity: .86;
}

button:active,
.btn:active {
    transform: scale(.98);
}

button:disabled {
    opacity: .55;
    cursor: progress;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    opacity: 1;
    border-color: var(--ink);
}

.btn-danger {
    background: transparent;
    color: var(--error);
    border-color: currentColor;
}

.btn-sm {
    padding: 8px 14px;
    font-size: .86rem;
}

.btn-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 1px;
    transition: border-color .15s;
}

.text-link:hover {
    border-color: currentColor;
}

form.inline {
    display: inline;
    margin: 0;
}

/* ---------- Messages ---------- */

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--info-bg);
    color: var(--ink-2);
    font-size: .93rem;
    font-weight: 500;
    animation: flash-in .35s ease-out;
}

.flash .icon {
    margin-top: .12em;
}

.flash.ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.flash.error {
    background: var(--error-bg);
    color: var(--error);
}

main > .flash {
    margin-bottom: 24px;
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* ---------- Restaurant banner ---------- */

.site + .site {
    margin-top: 56px;
}

.site-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 20px;
    min-height: 230px;
    padding: 28px;
    border-radius: var(--radius);
    color: #fff;
    background: #1d1916 var(--hero, linear-gradient(135deg, #2b2420, #0f0e0d)) var(--hero-position, center) / cover no-repeat;
}

.site-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(10 9 8 / .05) 0%, rgb(10 9 8 / .25) 45%, rgb(10 9 8 / .78) 100%);
}

.site-hero .eyebrow {
    color: rgb(255 255 255 / .75);
}

.site-hero h2 {
    margin-top: 6px;
    font-size: clamp(2.3rem, 7vw, 4.4rem);
    line-height: .92;
    letter-spacing: -.05em;
}

.glass-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / .28);
    background: rgb(255 255 255 / .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s;
}

.glass-pill:hover {
    background: rgb(255 255 255 / .22);
}

@media (max-width: 720px) {
    .site-hero {
        min-height: 170px;
        padding: 20px;
    }
}

/* ---------- Document cards ---------- */

.docs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 16px;
    margin-top: 16px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.doc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    scroll-margin-top: 110px;
    transition: border-color .3s, box-shadow .3s;
}

.doc:target,
.doc.is-updated {
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow);
}

.doc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.doc-head h3 {
    font-size: 1.4rem;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.doc-desc {
    margin-top: -8px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.history-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.history-link:hover {
    background: var(--inverse);
    color: var(--inverse-ink);
}

.status {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.status-dot {
    width: 10px;
    height: 10px;
    margin-top: .42em;
    flex: none;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.status.is-original .status-dot {
    background: var(--line-strong);
    box-shadow: none;
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    font-size: .93rem;
}

.status-text strong {
    font-weight: 600;
}

.status-text .muted {
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.status .text-link {
    flex: none;
    align-self: center;
    font-size: .88rem;
}

/* ---------- Upload ---------- */

.upload {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: auto 0 0;
}

.dropzone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    transition: border-color .15s, background .15s;
}

.dropzone:hover,
.dropzone.is-over,
.dropzone:focus-within {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* The real file input covers the whole zone: clicks and dropped files reach it natively. */
.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.dz-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
}

.dz-icon .icon {
    width: 22px;
    height: 22px;
}

.dz-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: .93rem;
    line-height: 1.35;
}

.dz-text strong {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.dz-text span {
    color: var(--muted);
    font-size: .84rem;
}

.dz-file {
    display: none;
}

.upload.has-file .dz-empty {
    display: none;
}

.upload.has-file .dz-file {
    display: flex;
}

.upload.has-file .dropzone {
    border-style: solid;
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

/* With JavaScript the button only shows once a file is chosen; without it, it is always there. */
.js .upload:not(.has-file) .publish {
    display: none;
}

.progress {
    display: none;
    height: 6px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .2s ease-out;
}

.upload.is-uploading .progress {
    display: block;
}

.upload.is-uploading .dropzone {
    pointer-events: none;
    opacity: .7;
}

.client-error {
    color: var(--error);
    font-size: .88rem;
    font-weight: 500;
}

.client-error:empty {
    display: none;
}

.limits {
    margin-top: 40px;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}

/* ---------- History ---------- */

.versions {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.version {
    display: grid;
    grid-template-columns: 9.5rem 1fr auto;
    align-items: center;
    gap: 6px 18px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
}

.version + .version {
    border-top: 1px solid var(--line);
}

.version.is-current {
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
    border-top-color: transparent;
}

.version.is-current + .version {
    border-top-color: transparent;
}

.v-when {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.v-when strong {
    font-weight: 600;
}

.v-when span {
    color: var(--muted);
    font-size: .88rem;
}

.v-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.v-main a {
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.v-main a:hover {
    text-decoration: underline;
}

.v-main span {
    color: var(--muted);
    font-size: .87rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.chip.is-live {
    background: var(--accent);
    color: #fff;
}

.chip.is-ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.chip.is-off {
    background: var(--error-bg);
    color: var(--error);
}

.chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.site-chip .dot {
    background: var(--accent);
}

@media (max-width: 640px) {
    .version {
        grid-template-columns: 1fr auto;
    }

    .v-main {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

.footnote {
    margin-top: 16px;
    color: var(--muted);
    font-size: .86rem;
}

/* ---------- Lists (users) ---------- */

.rows {
    list-style: none;
    margin: 0;
    padding: 6px;
}

.rows li + li {
    border-top: 1px solid var(--line);
}

.row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .15s;
}

a.row:hover {
    background: var(--surface-2);
}

.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    background: var(--inverse);
    color: var(--inverse-ink);
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .02em;
}

.row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.row-main strong {
    font-weight: 600;
}

.row-main span {
    color: var(--muted);
    font-size: .87rem;
}

.row-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.row .chevron {
    color: var(--muted);
}

@media (max-width: 640px) {
    .row {
        flex-wrap: wrap;
    }

    .row-tags {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        padding-left: 56px;
    }

    .row .chevron {
        display: none;
    }
}

/* ---------- Forms ---------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
}

.form h2 {
    font-size: 1.35rem;
}

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

.field-label {
    font-size: .88rem;
    font-weight: 600;
}

.field small {
    color: var(--muted);
}

input[type="text"],
input[type="password"],
input:not([type]) {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input:not([type]):focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 10%, transparent);
}

fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

legend {
    margin-bottom: 10px;
    padding: 0;
    font-size: .88rem;
    font-weight: 600;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice {
    position: relative;
}

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

.choice span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: .93rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.choice span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.choice input:checked + span {
    background: var(--inverse);
    border-color: var(--inverse);
    color: var(--inverse-ink);
}

.choice input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.switch {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.switch input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 46px;
    height: 28px;
    margin: 0;
    flex: none;
    border-radius: 999px;
    background: var(--line-strong);
    cursor: pointer;
    transition: background .2s;
}

.switch input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgb(0 0 0 / .3);
    transition: transform .2s;
}

.switch input:checked {
    background: var(--ok);
}

.switch input:checked::after {
    transform: translateX(18px);
}

.switch-text {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: .95rem;
}

.switch-text small {
    font-weight: 400;
    color: var(--muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.danger-zone {
    margin-top: 18px;
    padding: 20px 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.danger-zone p {
    color: var(--muted);
    font-size: .9rem;
}

/* ---------- Activity log ---------- */

.log {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.log th {
    padding: 14px 18px;
    text-align: left;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.log td {
    padding: 14px 18px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.log tr:last-child td {
    border-bottom: 0;
}

.log .when,
.log .what {
    white-space: nowrap;
}

.table-card {
    overflow-x: auto;
}

@media (max-width: 760px) {
    .log thead {
        display: none;
    }

    .log tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
    }

    .log tr:last-child {
        border-bottom: 0;
    }

    .log td {
        padding: 0;
        border: 0;
    }

    .log td.detail,
    .log td.subject {
        grid-column: 1 / -1;
    }

    .log td.ip {
        display: none;
    }
}

/* ---------- Sign-in ---------- */

.auth {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.auth-visual {
    --hero: url("/img/sites/restauranteterre.jpg");
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    color: #fff;
    background: #1d1916 var(--hero) 62% 50% / cover no-repeat;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(200deg, rgb(10 9 8 / .1) 0%, rgb(10 9 8 / .35) 50%, rgb(10 9 8 / .85) 100%);
}

.auth-visual img {
    height: 44px;
    width: auto;
    align-self: flex-start;
}

.auth-visual h2 {
    font-size: clamp(2.6rem, 5.4vw, 5rem);
    line-height: .92;
    letter-spacing: -.055em;
    max-width: 11ch;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: min(100%, 400px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.auth-card h1 {
    font-size: clamp(2.2rem, 4vw, 2.9rem);
}

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

.auth-card button {
    margin-top: 6px;
    padding: 15px 22px;
}

@media (max-width: 860px) {
    .auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .auth-visual {
        min-height: 300px;
        padding: 24px;
    }

    .auth-visual img {
        height: 34px;
    }

    .auth-main {
        align-items: flex-start;
        padding: 32px 16px 48px;
    }
}

/* ---------- Error page ---------- */

.error-page {
    padding: 72px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.error-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 700;
    line-height: .85;
    letter-spacing: -.06em;
    color: var(--line-strong);
}

.error-page .btn {
    margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
