/* GUEST PAGES: the only stylesheet the signed-out pages load besides Bootstrap */

/* Shared with the dashboard: copied from dashboard.css rule for rule, so a change there has to be made here too */

:root {
    --heading-font: "Urbanist", sans-serif;
    --body-font: "Inter", sans-serif;
    /* colors are bare HSL channels so any token works as hsl(var(--x) / alpha) */
    --white: 0 0% 100%;
    --black: 0 0% 0%;
    --gray-50: 210 20% 98%;
    --gray-100: 220 14% 96%;
    --gray-200: 220 13% 91%;
    --gray-400: 218 11% 65%;
    --gray-500: 220 9% 46%;
    --gray-600: 215 14% 34%;
    --gray-700: 217 19% 27%;
    --gray-800: 215 28% 17%;
    --base-h: 25;
    --base-s: 100%;
    --base-l: 50%;
    --base: var(--base-h) var(--base-s) var(--base-l);
    /* bright enough to carry a fill; where one becomes text it darkens via --text-shade */
    --primary: 217 91% 53%;
    --secondary: 220 12% 58%;
    --success: 152 65% 42%;
    --danger: 358 80% 57%;
    --warning: 36 95% 50%;
    --info: 199 92% 46%;
    /* section and label colors are content, not brand: users pick one and the key is what the database stores */
    --lane-slate: 215 16% 47%;
    --lane-blue: 216 91% 55%;
    --lane-violet: 262 83% 58%;
    --lane-teal: 174 72% 40%;
    --lane-green: 151 65% 42%;
    --lane-amber: 40 96% 50%;
    --lane-orange: 25 95% 53%;
    --lane-rose: 350 86% 60%;
    --lane-indigo: 239 84% 62%;
    --lane-sky: 199 89% 48%;
    --lane-lime: 84 70% 42%;
    --lane-pink: 330 81% 60%;
    --dark: var(--black);
    /* manual time (entered by hand, not tracked) is grey everywhere so it never reads as tracked time or an activity level */
    --manual: var(--gray-600);
    /* the sidebar surface: a deeper indigo than --dark, so the rail reads as chrome */
    --sidebar: 248 66% 11.4%;
    --heading-color: var(--black);
    --body-color: var(--gray-600);
    --text-color: var(--gray-500);
    --muted-color: var(--gray-500);
    --mute-color: hsl(var(--gray-500));
    --border-color: var(--gray-200);
    --border-subtle: var(--gray-100);
    /* the colour an avatar ring or badge cutout takes: the surface it sits on */
    --ring-surface: var(--white);
    --input-border: var(--gray-200) / 0.8;
    --control-h: 40px;
    --header-h: 64px;
    /* the board's one spacing step: between lanes, toolbar to lanes, and the themed frame around them */
    --board-gap: 16px;
    --section-bg: var(--gray-50);
    /* how far a state colour drops in lightness when it is used as text on white */
    --text-shade: 0.68;
    --radius: 4px;
    --radius-lg: 8px;
    --radius-pill: 999px;
    /* one avatar scale for every person or project; components read --thumb-size, so a size modifier only re-points it */
    --avatar-xs: 20px;
    --avatar-xsm: 24px;
    --avatar-sm: 28px;
    --avatar-md: 36px;
    --avatar-lg: 44px;
    --avatar-xl: 58px;
    --thumb-size: var(--avatar-md);
    --icon-color: var(--gray-500);
    --control-text: var(--gray-700);
    --shadow-md: 0 4px 12px -2px hsl(var(--black) / 0.1), 0 2px 4px -2px hsl(var(--black) / 0.05);
    --shadow-lg: 0 12px 28px -6px hsl(var(--black) / 0.1), 0 4px 8px -4px hsl(var(--black) / 0.05);
    --shadow-xl: 0 24px 48px -12px hsl(var(--black) / 0.2);
    --fs-10: 0.625rem;
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-28: 1.75rem;
    --fs-32: 2rem;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;
    --fw-700: 700;
    --dur-fast: 0.15s;
    --dur: 0.2s;
    --dur-slow: 0.3s;
    --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
    --select-tone: var(--base) / 0.7;
    --fc-small-font-size: 0.875em;
    --fc-page-bg-color: hsl(var(--white));
    --fc-neutral-bg-color: hsl(var(--section-bg));
    --fc-neutral-text-color: hsl(var(--body-color));
    --fc-border-color: hsl(var(--border-color));
    --fc-button-text-color: hsl(var(--heading-color));
    --fc-button-bg-color: hsl(var(--white));
    --fc-button-border-color: hsl(var(--border-color));
    --fc-button-hover-bg-color: hsl(var(--section-bg));
    --fc-button-hover-border-color: hsl(var(--border-color));
    --fc-button-active-bg-color: hsl(var(--section-bg));
    --fc-button-active-border-color: hsl(var(--border-color));
    --fc-event-bg-color: hsl(var(--base));
    --fc-event-border-color: hsl(var(--base));
    --fc-event-text-color: hsl(var(--white));
    --fc-event-selected-overlay-color: none;
    --fc-more-link-bg-color: hsl(var(--section-bg));
    --fc-more-link-text-color: inherit;
    --fc-event-resizer-thickness: 8px;
    --fc-event-resizer-dot-total-width: 8px;
    --fc-event-resizer-dot-border-width: 1px;
    --fc-non-business-color: hsl(var(--gray-100));
    --fc-bg-event-color: hsl(var(--base));
    --fc-bg-event-opacity: 0.3;
    --fc-highlight-color: hsl(var(--base) / 0.1);
    --fc-today-bg-color: hsl(var(--base) / 0.05);
    --fc-now-indicator-color: hsl(var(--danger));
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--body-font);
    color: hsl(var(--body-color));
    word-break: break-word;
    background-color: hsl(var(--section-bg));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

p { font-size: var(--fs-16); font-weight: var(--fw-400); margin: 0; color: hsl(var(--body-color)); }

span { display: inline-block; }

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--heading-font);
    font-weight: var(--fw-700);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: hsl(var(--heading-color));
}

h1 { font-size: 4rem; }

h2 { font-size: 2.5rem; }

h3 { font-size: 2.25rem; }

h5 { font-size: var(--fs-20); }

a { display: inline-block; transition: var(--dur) linear; text-decoration: none; color: hsl(var(--base)); }

a:hover { color: hsl(var(--base)); text-decoration: none !important; }

img { max-width: 100%; height: auto; }

select { cursor: pointer; }

ul, ol { padding: 0; margin: 0; list-style: none; }

button { border: 0; background-color: transparent; }

button:focus { outline: none; box-shadow: none; }

::selection { color: hsl(var(--white)); background: hsl(from hsl(var(--base)) h s calc(l * 0.9)); }

img[alt] { font-size: var(--fs-12); }

@media (max-width: 1399px) {
    h1 { font-size: 3.375rem; }

    h2 { font-size: 2.25rem; }

    h3 { font-size: var(--fs-32); }
}

@media (max-width: 1199px) {
    h1 { font-size: 3rem; }

    h2 { font-size: var(--fs-32); }

    h3 { font-size: var(--fs-28); }

    h5 { font-size: var(--fs-18); }
}

@media (max-width: 991px) {
    h1 { font-size: 2.625rem; }

    h2 { font-size: var(--fs-32); }

    h3 { font-size: var(--fs-24); }

    h5,
        h6 { font-size: var(--fs-16); }
}

@media (max-width: 767px) {
    h1 { font-size: 2.25rem; }

    h2 { font-size: var(--fs-28); }

    h3 { font-size: var(--fs-24); }

    h5 { font-size: var(--fs-16); }
}

@media (max-width: 575px) {
    h1 { font-size: var(--fs-32); }

    h2 { font-size: var(--fs-24); }

    h3 { font-size: var(--fs-20); }
}

/* .btn + one color class (btn--base to btn-outline--dark) + one size class */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: var(--fs-16);
    font-weight: var(--fw-500);
    line-height: 1.3;
    white-space: nowrap;
    color: hsl(var(--white)) !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius);
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.btn:disabled { opacity: 0.6; }

.btn.is-busy { cursor: progress; }

.btn.is-busy::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: svg-icon-spin 0.7s linear infinite;
}

.btn:active { transform: translateY(1px); }

.btn--md { height: var(--control-h); padding: 8px 14px; font-size: var(--fs-14); }

.btn--base { --btn: var(--base); --btn-hover: hsl(from hsl(var(--base)) h s calc(l * 0.9)); }

.btn--base,
.btn--primary,
.btn--success,
.btn--warning,
.btn--danger,
.btn--info, .btn--dark { background-color: hsl(var(--btn)) !important; border-color: hsl(var(--btn)) !important; }

.btn--base:hover,
.btn--primary:hover,
.btn--success:hover,
.btn--warning:hover,
.btn--danger:hover,
.btn--info:hover,
.btn--dark:hover { background-color: var(--btn-hover) !important; border-color: var(--btn-hover) !important; }

/* sits beside inputs in a filter bar, so it takes their --control-text ink and --input-border; font-size is left to the size modifier */
.btn--secondary {
    font-weight: var(--fw-500);
    color: hsl(var(--control-text)) !important;
    background-color: hsl(var(--white)) !important;
    border-color: hsl(var(--input-border)) !important;
}

.btn--secondary:hover {
    color: hsl(var(--black)) !important;
    background-color: hsl(var(--gray-50)) !important;
    border-color: hsl(var(--gray-200)) !important;
}

.btn--secondary.active { background-color: hsl(var(--black) / 0.1) !important; }

.btn.active,
.btn.show,
.btn:first-child:active, :not(.btn-check) + .btn:active { color: none; background-color: none; border-color: none; }

.form--label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
    line-height: 1.3;
    color: hsl(var(--gray-700));
}

.form-group { margin-bottom: 1rem; }

.form--control {
    width: 100%;
    height: var(--control-h);
    padding: 0 14px;
    font-size: var(--fs-14);
    font-weight: var(--fw-400);
    line-height: 1.4;
    color: hsl(var(--heading-color));
    background: hsl(var(--white));
    border: 1px solid hsl(var(--input-border));
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.form--control:hover { border-color: hsl(var(--gray-200)); }

.form--control::placeholder { color: hsl(var(--gray-400)); }

.form--control:focus,
.form--control:focus-within { border-color: hsl(var(--base)); }

.form--control:disabled,
.form--control[readonly] {
    opacity: 1;
    color: hsl(var(--gray-500));
    background-color: hsl(var(--gray-50));
    box-shadow: none;
}

.form--control[type="password"] { color: hsl(var(--black) / 0.5); }

.form--control[type="password"]:focus { color: hsl(var(--black)); }

.input-group { border-radius: var(--radius); border: 1px solid hsl(var(--border-color)); overflow: hidden; }

/* the group draws the border, so the field gives back 2px to stay 40px; flex and width copy Bootstrap's .form-control so it lays out in one row */
.input-group > .form--control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }

.input-group .form--control { border-width: 0px !important; box-shadow: unset !important; }

.input-group-text {
    border-width: 0px;
    background-color: hsl(var(--section-bg));
    position: relative;
    color: hsl(var(--heading-color));
    font-weight: var(--fw-500);
    padding-block: 0;
    font-size: var(--fs-12);
}

.input-group:focus-within { --border-tone: var(--base); border: 1px solid hsl(var(--border-tone)); }

.form--control.code-input { padding-inline: 0; }

.input-group-text:focus { box-shadow: none !important; }

/* any password toggle shows the eye while hidden and the crossed eye once revealed */
[data-password-toggle] svg + svg, [data-password-toggle].is-revealed svg:first-child { display: none; }

[data-password-toggle].is-revealed svg + svg { display: block; }

.form--check {
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.form--check a { display: inline; }

.form--check .form-check-input {
    background-color: hsl(var(--white));
    position: relative;
    border-radius: var(--radius);
    width: 18px;
    height: 18px;
    border: 1.5px solid hsl(var(--black) / 0.25);
    cursor: pointer;
    margin-top: 0;
}

.form--check .form-check-input:focus { box-shadow: none; border-color: hsl(var(--black) / 0.2); }

.form--check .form-check-input:checked {
    background-color: hsl(var(--base)) !important;
    border-color: hsl(var(--base)) !important;
}

.form--check .form-check-input:checked[type="checkbox"] { background-image: none; }

.form--check .form-check-input:checked::before {
    position: absolute;
    content: "";
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%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='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    color: hsl(var(--white));
    font-size: var(--fs-12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form--check .form-check-label {
    font-weight: var(--fw-500);
    padding-left: 12px;
    -webkit-box-flex: 1;
    flex: 1;
    cursor: pointer;
    font-size: var(--fs-12);
    -webkit-user-select: none;
    user-select: none;
    color: hsl(var(--heading-color));
}

.input-group-text, .btn-group, .page-link, .progress, .tooltip-inner { border-radius: var(--radius); }

input:-webkit-autofill:hover { transition: background-color 5000s ease-in-out 0s; }

input:-webkit-autofill:focus { transition: background-color 5000s ease-in-out 0s; }

input:-webkit-autofill:active { transition: background-color 5000s ease-in-out 0s; }

input:-webkit-autofill {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: hsl(var(--black)) !important;
    caret-color: hsl(var(--black));
}

select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: hsl(var(--black)) !important;
    caret-color: hsl(var(--black));
}

.form--control[type="password"]:not(:placeholder-shown) { font-size: var(--fs-20); letter-spacing: 0.08em; }

input::-webkit-outer-spin-button { -webkit-appearance: none; }

input::-webkit-inner-spin-button { -webkit-appearance: none; }

input[type="number"] { -webkit-appearance: textfield; appearance: textfield; }

label.required::after {
    content: '*';
    color: hsl(from hsl(var(--danger)) h s calc(l * var(--text-shade))) !important;
    margin-left: 2px;
}

.timo-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.timo-select-box {
    --s-height: var(--control-h);
    --select-bg: hsl(var(--white));
    --select-tone: var(--input-border);
    --select-color: hsl(var(--heading-color));
    --arrow-color: hsl(var(--body-color) / 0.5);
    --border-radius: var(--radius);
    --font-size: var(--fs-16);
    --font-weight: var(--fw-400);
    /* auto sizes to content in a flex row and fills a block parent, so it never forces a row to wrap; the control inside carries width: 100% */
    --select-width: auto;
    position: relative;
    width: var(--select-width);
    max-width: 100%;
}

.timo-select-control {
    --border-tone: var(--select-tone);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    position: relative;
    min-height: var(--s-height);
    padding: 0 30px 0 12px;
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    line-height: 1.4;
    color: var(--select-color);
    background: var(--select-bg);
    border: 1px solid hsl(var(--border-tone));
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: none;
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.timo-select-control:hover { border-color: hsl(var(--gray-200)); }

.timo-select-control:focus-visible,
.timo-select-box.is-open .timo-select-control { border-color: hsl(var(--base)); }

/* set after a pointer pick, cleared on the next keypress */
.timo-select-box.is-quiet .timo-select-control:focus-visible {
    border-color: hsl(var(--select-tone));
    box-shadow: none;
}

.timo-select-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.timo-select-value.is-placeholder { color: hsl(var(--gray-400)); }

.timo-select-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.timo-select-note { margin-left: auto; padding-left: 10px; font-size: var(--fs-12); color: hsl(var(--gray-500)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.timo-select-search {
    flex: 1 1 60px;
    min-width: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    outline: none;
}

.timo-select-search[readonly] { pointer-events: none; }

.timo-select-box:not(.is-open) .timo-select-search { position: absolute; width: 1px; opacity: 0; pointer-events: none; }

.timo-select-box.is-open:not(.timo-select-box--multiple) .timo-select-value { visibility: hidden; }

.timo-select-box.is-open:not(.timo-select-box--multiple) .timo-select-search {
    position: absolute;
    inset: 0;
    width: auto;
    padding: inherit;
}

/* data-search-in="dropdown": the search field heads the open list and the control keeps its value */
.timo-select-searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    margin: -4px -4px 4px;
    padding: 0 12px;
    color: hsl(var(--gray-400));
    border-bottom: 1px solid hsl(var(--border-color));
    cursor: text;
}

.timo-select-searchbar svg { flex: none; width: 16px; height: 16px; }

.timo-select-searchbar:focus-within { color: hsl(var(--base)); }

.timo-select-box.timo-select-box--panel-search.is-open .timo-select-value { visibility: visible; }

.timo-select-box.timo-select-box--panel-search.is-open .timo-select-search {
    position: static;
    padding: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-400);
    color: hsl(var(--heading-color));
}

.timo-select-box--panel-search .timo-select-search::placeholder { color: hsl(var(--gray-400)); }

.timo-select-arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    display: flex;
    width: 12px;
    height: 12px;
    color: var(--arrow-color);
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform var(--dur-fast) ease;
}

.timo-select-arrow svg { width: 100%; height: 100%; }

.timo-select-box.is-open .timo-select-arrow { transform: translateY(-50%) rotate(180deg); }

.timo-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 1060;
    display: none;
    min-width: 140px;
    padding: 4px;
    background: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.timo-select-box.is-open .timo-select-dropdown { display: block; }

.timo-select-box.is-above .timo-select-dropdown { top: auto; bottom: calc(100% + 4px); }

.timo-select-options {
    max-height: 240px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.timo-select-options::-webkit-scrollbar { width: 5px; height: 5px; }

.timo-select-options::-webkit-scrollbar-track { background-color: hsl(var(--border-color)); }

.timo-select-options::-webkit-scrollbar-thumb {
    background-color: hsl(var(--gray-400));
    border-radius: var(--radius-pill);
}

@supports (-moz-appearance: none) {
    .timo-select-options { scrollbar-width: thin; scrollbar-color: hsl(var(--gray-400)) hsl(var(--border-color)); }
}

.timo-select-option {
    display: flex;
    align-items: center;
    padding: 7px 10px;
    font-size: var(--fs-14);
    color: hsl(var(--heading-color));
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.timo-select-option + .timo-select-option { margin-top: 2px; }

.timo-select-option:hover,
.timo-select-option.is-highlighted { color: hsl(var(--heading-color)); background-color: hsl(var(--gray-100)); }

.timo-select-option.is-selected {
    font-weight: var(--fw-500);
    color: hsl(var(--base));
    background-color: hsl(var(--base) / 0.1);
}

.timo-select-option.is-disabled { color: hsl(var(--gray-400)); cursor: not-allowed; }

.timo-select-option.is-disabled:hover { color: hsl(var(--gray-400)); background-color: transparent; }

.timo-select-empty { padding: 12px 10px; font-size: var(--fs-14); color: hsl(var(--muted-color)); text-align: center; }

.timo-select-box.is-disabled { pointer-events: none; }

.timo-select-box.is-disabled .timo-select-control {
    color: hsl(var(--gray-500));
    background-color: hsl(var(--gray-50));
    border-color: hsl(var(--input-border));
}

.timo-select-box.is-invalid .timo-select-control { border-color: hsl(var(--danger) / 0.6); }

.input-group:has(.timo-select-box) { overflow: unset; }

.input-group:has(.timo-select-box) .input-group-text:has(.timo-select-box) { padding: 0; }

.input-group:has(.timo-select-box) .timo-select-box {
    --select-bg: transparent;
    --select-tone: 0 0% 0% / 0;
    --select-width: 100px;
    --border-radius: var(--radius);
}

/* the group draws the one border; the select inside it never adds its own, open or focused */
.input-group:has(.timo-select-box) .timo-select-control { border-color: transparent; box-shadow: none; }

@keyframes svg-icon-spin {
    to { transform: rotate(360deg); }
}

.card, .modal-content, .dropdown-menu, .popover, .toast, .alert, .list-group { border-radius: var(--radius-lg); }

.callout {
    --border-tone: var(--warning);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background-color: hsl(var(--warning) / 0.1);
    border: 1px solid hsl(var(--border-tone) / 0.25);
    border-radius: var(--radius-lg);

    @media (max-width: 575px) { flex-wrap: wrap; }
}

.callout__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-size: var(--fs-18);
    color: hsl(from hsl(var(--warning)) h s calc(l * var(--text-shade)));
    background-color: hsl(var(--warning) / 0.2);
    border-radius: 50%;
}

.callout__body { flex: 1; min-width: 0; }

.callout__title { font-size: var(--fs-14); font-weight: var(--fw-600); color: hsl(var(--black)); }

.callout__text { font-size: var(--fs-14); color: hsl(var(--gray-600)); }

.td-toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.td-toast {
    --td-accent: hsl(var(--success));
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 14px 14px 18px;
    overflow: hidden;
    border: 1px solid hsl(var(--border-subtle));
    border-radius: var(--radius-lg);
    background: hsl(var(--white));
    box-shadow: var(--shadow-lg);
    font-family: inherit;
    pointer-events: auto;
    transform: translateX(16px) scale(0.98);
    opacity: 0;
    transition: transform var(--dur-slow) cubic-bezier(0.2, 0.8, 0.2, 1), opacity var(--dur-slow) ease, box-shadow var(--dur-fast) ease;
}

/* the rail carries the status colour, so the card itself stays neutral and readable */
.td-toast::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--td-accent);
}

.td-toast:hover { box-shadow: var(--shadow-xl); }

.td-toast.is-in { transform: none; opacity: 1; }

.td-toast.is-out { transform: translateX(16px) scale(0.98); opacity: 0; }

.td-toast--error { --td-accent: hsl(var(--danger)); }

.td-toast--warning { --td-accent: hsl(var(--warning)); }

.td-toast--info { --td-accent: hsl(var(--info)); }

.td-toast__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--avatar-sm);
    height: var(--avatar-sm);
    border-radius: 50%;
    color: var(--td-accent);
    background: color-mix(in srgb, var(--td-accent) 12%, hsl(var(--white)));
}

.td-toast__icon svg { width: 15px; height: 15px; stroke-width: 2.4; }

.td-toast__body { flex: 1 1 auto; min-width: 0; padding-top: 1px; }

.td-toast__title {
    margin: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-600);
    line-height: 1.3;
    color: hsl(var(--black));
}

.td-toast__msg {
    margin: 3px 0 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-400);
    line-height: 1.45;
    color: hsl(var(--gray-600));
    overflow-wrap: anywhere;
}

.td-toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: -2px -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: hsl(var(--gray-400));
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.td-toast__close:hover { background: hsl(var(--gray-100)); color: hsl(var(--gray-700)); }

.td-toast__close svg { width: 14px; height: 14px; }

.td-toast__bar {
    position: absolute;
    /* left clears the accent rail */
    left: 4px;
    bottom: 0;
    height: 2px;
    width: calc(100% - 4px);
    background: var(--td-accent);
    opacity: 0.35;
    transform-origin: left;
    animation: td-toast-bar linear forwards;
}

.td-toast:hover .td-toast__bar { animation-play-state: paused; }

@media (max-width: 575px) {
    .td-toasts { top: 12px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .td-toast { transform: none; transition: opacity var(--dur-fast) ease; }
}

@media (prefers-reduced-motion: reduce) {
    .td-toast.is-out { transform: none; transition: opacity var(--dur-fast) ease; }
}

@keyframes td-toast-bar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.timo-modal .modal-content { background-color: hsl(var(--white)); border-radius: var(--radius-lg); border: 0; }

.timo-modal .modal-body { padding: 24px; }

.timo-modal__dialog--md { max-width: 560px; }

.timo-modal__content { display: flex; flex-direction: column; gap: 20px; }

.timo-modal__head {
    display: flex;
    align-items: center;
    gap: 14px;
    /* same 24px above and below the head as the actions get, so top and bottom match */
    margin: 0 -8px 4px 0;

    & > .panel-close { margin-left: auto; }
}

/* a modal that already offers a Cancel/Close button does not show the X as well */
.modal:has(.btn[data-bs-dismiss="modal"]) {
    & :is(.panel-close, .btn-close)[data-bs-dismiss="modal"] { display: none; }

    /* the head's negative right margin only made room for the X */
    & .timo-modal__head { margin-right: 0; }
}

.timo-modal__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: var(--fs-20);
    color: hsl(var(--base));
    background-color: hsl(var(--base) / 0.1);
    border-radius: var(--radius);
}

.timo-modal__heading { flex: 1; min-width: 0; }

.timo-modal__title { font-size: var(--fs-16); }

.timo-modal__subtitle { margin-top: 2px; font-size: var(--fs-14); color: hsl(var(--gray-500)); }

.timo-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid hsl(var(--border-subtle));
}

.timo-modal__content > .timo-modal__actions { margin-top: 0; }

.timo-modal :has(+ .timo-modal__actions),
.timo-modal .row:has(+ .timo-modal__actions) > :last-child .form-group { margin-bottom: 0; }

.modal .modal-dialog {
    transition: -webkit-transform var(--dur-slow) ease-out !important;
    transition: transform var(--dur-slow) ease-out !important;
    transition: transform var(--dur-slow) ease-out, -webkit-transform var(--dur-slow) ease-out !important;
    transform: scale(0.9) !important;
}

.modal.show .modal-dialog { transform: scale(1) !important; }

.modal-backdrop {
    background-color: hsl(var(--black) / 0.6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 1 !important;
}

.panel-close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    font-size: var(--fs-20);
    color: hsl(var(--heading-color) / 0.5);
    border-radius: var(--radius);
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, opacity var(--dur-fast) ease;

    &:hover { color: hsl(var(--heading-color)); background-color: hsl(var(--gray-100)); }
}

.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    flex-shrink: 0;
    overflow: visible;
}

body.is-drag-scrolling,
body.is-drag-scrolling * {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.flex-wrap { display: flex; flex-wrap: wrap; }

/* "backwards" holds only the start state, so hovers work as usual once the entrance has played */

/* -- Shared with the dashboard: end ------------------------------------------- */

.auth {
    --auth-card-w: 400px;
    --auth-card-wide-w: 460px;
    /* one radius for everything on these pages: the fields' and buttons' own */
    --auth-radius: var(--radius);
    --auth-gap: 18px;
    /* a touch taller than the dashboard's fields: these forms are the whole page */
    --control-h: 44px;

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 24px 20px;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--body-font);
    background-color: hsl(var(--gray-50));

    @media (max-width: 575px) {
        padding: 20px 16px 16px;
    }
}

/* -- Frame ------------------------------------------------------------------- */

/* the column itself fills the page, so the body can centre between the logo and the footer */
.auth__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.auth__head {
    display: flex;
    justify-content: center;
}

.auth__logo img {
    height: 34px;
    width: auto;

    @media (max-width: 575px) {
        height: 30px;
    }
}

.auth__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-block: 32px;

    @media (max-width: 575px) {
        justify-content: flex-start;
        padding-block: 24px;
    }
}

.auth__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 20px;
    font-size: var(--fs-12);
    color: hsl(var(--gray-400));

    & a {
        color: hsl(var(--gray-500));
        transition: color var(--dur-fast) ease;

        &:hover {
            color: hsl(var(--base));
        }
    }
}

/* the "New here? / Already have an account?" line under the card */
.auth-switch {
    margin: 0;
    font-size: var(--fs-14);
    text-align: center;
    color: hsl(var(--gray-500));

    & a {
        font-weight: var(--fw-600);
        color: hsl(var(--base));

        &:hover {
            color: hsl(var(--base));
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }
}

/* -- The card ---------------------------------------------------------------- */

.auth-card {
    display: flex;
    flex-direction: column;
    gap: 26px;
    width: min(100%, var(--auth-card-w));
    padding: 36px 32px 32px;
    background-color: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--auth-radius);
    /* the border defines the card; the shadow only lifts it off the page */
    box-shadow: 0 1px 2px hsl(var(--black) / 0.04);
    animation: auth-card-in 0.5s var(--ease-out) both;

    @media (max-width: 575px) {
        padding: 28px 20px 24px;
    }
}

.auth-card--wide {
    width: min(100%, var(--auth-card-wide-w));
}

/* a long address wraps instead of pushing the line wider than the form */
.auth-switch strong { overflow-wrap: anywhere; }

/* a short line above a heading: where the page sits in its flow */
.auth-heading__eyebrow {
    padding: 3px 10px;
    font-size: var(--fs-12);
    font-weight: var(--fw-600);
    color: hsl(var(--base));
    background-color: hsl(var(--base) / 0.1);
    border-radius: var(--radius-pill);
}

.org-country-dropdown {
    right: auto;
    /* the select sits inside the field's 1px border */
    left: -1px;
    width: min(var(--auth-card-w), calc(100vw - 32px));

    & .timo-select-option {
        padding: 6px 10px;
        color: hsl(var(--gray-500));
        font-variant-numeric: tabular-nums;
    }

    & .timo-select-label {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    & .timo-select-note {
        order: -1;
        margin: 0 auto 0 0;
        padding: 0;
        font-size: var(--fs-14);
        color: hsl(var(--heading-color));
    }

    & .timo-select-option.is-selected,
    & .timo-select-option.is-selected .timo-select-note {
        color: hsl(var(--base));
    }
}

/* the organization step's optional coupon: a link until it is asked for */
.org-coupon__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
    color: hsl(var(--base));

    & svg {
        width: 15px;
        height: 15px;
    }

    &:hover { text-decoration: underline; }
}

.org-coupon__field {
    display: none;
    margin-top: 10px;
}

.org-coupon.is-open .org-coupon__field { display: block; }

.org-coupon .applyBtn {
    padding-inline: 16px;
    font-size: var(--fs-14);
    color: hsl(var(--base));
}

.org-coupon .couponStatus {
    display: block;
    margin-top: 6px;
    font-size: var(--fs-12);
}

.org-coupon .couponStatus:empty { display: none; }

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }
}

.auth-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.auth-heading__icon {
    --tone: var(--base);
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    color: hsl(var(--tone));
    background-color: hsl(var(--tone) / 0.1);
    border-radius: 50%;

    & svg {
        width: 24px;
        height: 24px;
    }
}

.auth-heading__icon--success {
    --tone: var(--success);
}

/* a finished step (email verified, join request sent): a tick that draws itself inside a soft disc */
.auth-done {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
    color: hsl(var(--success));
    background-color: hsl(var(--success) / 0.1);
    border-radius: 50%;

    /* one halo leaves the disc as the tick lands */
    &::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 1px solid hsl(var(--success) / 0.4);
        border-radius: inherit;
        opacity: 0;
        animation: auth-done-halo 0.9s 0.55s var(--ease-out) both;
    }

    & svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

.auth-done__ring {
    stroke-width: 2;
    stroke-dasharray: 208;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: auth-done-draw 0.6s 0.15s var(--ease-out) both;
}

.auth-done__check {
    stroke-width: 4;
    stroke-dasharray: 36;
    animation: auth-done-draw 0.35s 0.6s var(--ease-out) both;
}

@keyframes auth-done-draw { from { stroke-dashoffset: var(--len, 208); } }
@keyframes auth-done-halo { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }

.auth-heading__icon--danger {
    --tone: var(--danger);
}

/* amber is too bright to read as a line icon, so it darkens the way warning text does */
.auth-heading__icon--warning {
    --tone: var(--warning);
    color: hsl(from hsl(var(--tone)) h s calc(l * var(--text-shade)));
}

/* an inviting organization's logo on the join page */
.auth-heading__org {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid hsl(var(--border-color));
    border-radius: 50%;
    box-shadow: var(--shadow-md);

    & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.auth-heading__title {
    margin: 0;
    font-family: var(--heading-font);
    font-size: var(--fs-28);
    font-weight: var(--fw-700);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: hsl(var(--heading-color));

    @media (max-width: 575px) {
        font-size: var(--fs-24);
    }
}

.auth-heading__text {
    max-width: 34ch;
    margin: 0;
    font-size: var(--fs-14);
    line-height: 1.6;
    color: hsl(var(--gray-500));

    & strong {
        font-weight: var(--fw-600);
        color: hsl(var(--gray-700));
    }
}

/* -- Form -------------------------------------------------------------------- */

.auth-form,
.auth-form__fields {
    display: flex;
    flex-direction: column;
    gap: var(--auth-gap);

    & .form-group {
        margin-bottom: 0;
    }
}

.auth-form .form--control {
    background-color: hsl(var(--white) / 0.8);
    border-color: hsl(var(--gray-200));
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;

    &:hover {
        border-color: hsl(var(--gray-400) / 0.6);
    }

    /* the dashboard's own focus: a solid brand border, no halo */
    &:focus {
        background-color: hsl(var(--white));
        border-color: hsl(var(--base));
        box-shadow: none;
    }
}

/* <x-user.auth-field>: an icon in front of the input, and a show/hide button behind a password */
.auth-field {
    position: relative;

    & .form--control {
        padding-left: 42px;
    }

    & .form--control:read-only {
        color: hsl(var(--gray-500));
        background-color: hsl(var(--gray-100) / 0.6);
    }
}

.auth-field--password .form--control {
    padding-right: 44px;
}

.auth-field__icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: hsl(var(--gray-400));
    pointer-events: none;
    transform: translateY(-50%);
    transition: color var(--dur-fast) ease;

    .auth-field:focus-within & {
        color: hsl(var(--base));
    }
}

.auth-field__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: hsl(var(--gray-400));
    background: none;
    border: 0;
    border-radius: var(--radius);
    transform: translateY(-50%);
    transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;

    &:hover {
        color: hsl(var(--gray-700));
        background-color: hsl(var(--gray-100));
    }

    &:focus-visible {
        outline: 2px solid hsl(var(--base) / 0.5);
    }

    & svg {
        width: 18px;
        height: 18px;
    }

    & .auth-field__hide,
    &.is-revealed .auth-field__show {
        display: none;
    }

    &.is-revealed .auth-field__hide {
        display: block;
    }
}

/* the primary action: the UI kit's button, flat, just sized to these fields */
.auth-form .btn--base,
.auth-card > .btn--base {
    height: var(--control-h);
    font-weight: var(--fw-600);
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    font-size: var(--fs-14);

    & .form-check-label {
        color: hsl(var(--gray-600));
    }
}

.auth-link {
    font-weight: var(--fw-600);
    color: hsl(var(--base));

    &:hover {
        color: hsl(var(--base));
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}

/* the links at the right end of the footer, to the two portals that sign in elsewhere */
.auth-portals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-left: auto;
    font-size: var(--fs-14);
    color: hsl(var(--gray-500));

    /* on a phone they shrink to the footer's own size, so the whole footer stays on one line */
    @media (max-width: 575px) {
        flex-wrap: nowrap;
        font-size: inherit;
    }

    /* a grey lead-in, then the two links in dark text with a pipe between them */
    & a {
        font-weight: var(--fw-600);
        color: hsl(var(--gray-700));

        &:hover {
            color: hsl(var(--black));
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        & + a::before {
            content: "|";
            display: inline-block;
            margin-right: 8px;
            font-weight: 400;
            color: hsl(var(--gray-400));
        }
    }
}

/* with those links the footer leaves the form's width: copyright at the column's left edge, portals at its right */
.auth--split .auth__foot:has(.auth-portals) {
    width: 100%;
}

/* a phone has just enough room for all of it on one line once the text and the gaps shrink with the screen */
@media (max-width: 575px) {
    .auth__foot:has(.auth-portals) {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.7em;
        font-size: clamp(9px, 2.8vw, 12px);
        white-space: nowrap;

        & .auth-portals { gap: 0.5em; }

        & .auth-portals a + a::before { margin-right: 0.5em; }
    }
}

.auth-agree {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;

    & .form-check-input {
        flex-shrink: 0;
        margin-top: 2px;
    }

    & .form-check-label {
        font-size: var(--fs-14);
        line-height: 1.5;
        color: hsl(var(--gray-600));
    }

    & a {
        font-weight: var(--fw-600);
        color: hsl(var(--base));
    }
}

.auth-note {
    margin: -6px 0 0;
    font-size: var(--fs-14);
    line-height: 1.6;
    text-align: center;
    color: hsl(var(--gray-500));
}

/* who to turn to on a message page (suspended workspace, deactivated account): label left, value right */
.auth-facts {
    margin: 0;
    padding: 2px 16px;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius);
    font-size: var(--fs-14);
    text-align: left;

    & > div {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 0;

        & + div {
            border-top: 1px solid hsl(var(--gray-100));
        }
    }

    & dt {
        flex-shrink: 0;
        font-weight: var(--fw-400);
        color: hsl(var(--gray-500));
    }

    & dd {
        min-width: 0;
        margin: 0;
        font-weight: var(--fw-600);
        text-align: right;
        overflow-wrap: anywhere;
        color: hsl(var(--heading-color));
    }

    & a {
        color: hsl(var(--base));

        &:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }
    }
}

/* the organization step's country code and type pickers match the fields around them */
.auth-form .timo-select-box {
    --select-width: 100%;
    --s-height: var(--control-h);
    --border-radius: var(--radius);
    --select-bg: hsl(var(--white) / 0.8);
    --select-tone: var(--gray-200);
}

/* the six boxes of a verification code (user.partials.frontend_verification_code) */
.auth .verification-code {
    & .d-flex {
        justify-content: space-between;
        gap: 8px !important;
    }

    & .code-input {
        flex: 1 1 0;
        min-width: 0;
        height: 54px;
        font-family: var(--heading-font);
        font-size: var(--fs-24);
        font-weight: var(--fw-700);
        -moz-appearance: textfield;

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
    }
}

.auth .auth-form > .mb-0.mt-5 {
    margin-top: 0 !important;
}

/* -- Split layout: a page that fills @section('aside') ----------------------- */

.auth--split {
    flex-direction: row;
    padding: 0;
    background-color: hsl(var(--white));

    & .auth__main {
        display: flex;
        flex: 1 1 50%;
        flex-direction: column;
        min-width: 0;
        padding: 40px 40px 24px;

        @media (max-width: 991px) {
            flex-basis: 100%;
        }

        @media (max-width: 575px) {
            padding: 20px 16px 16px;
        }
    }

    & .auth__head,
    & .auth__body > *,
    & .auth__foot {
        width: min(100%, var(--auth-card-w));
        margin-inline: auto;
    }

    & .auth__head,
    & .auth__foot {
        justify-content: flex-start;
    }

    /* the logo rides with the form, so the pair centres as one block */
    & .auth__head {
        margin-top: auto;
        margin-bottom: 48px;
    }

    & .auth__body {
        flex: 0 0 auto;
        align-items: stretch;
        padding-block: 0;
    }

    & .auth__foot {
        margin-top: auto;
        padding-top: 40px;
    }

    & .auth__logo img {
        height: 30px;
    }

    & .auth-agree .form-check-label {
        padding-left: 0;
    }

    & .auth-card {
        gap: 28px;
        padding: 0;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }

    & .auth-heading {
        align-items: flex-start;
        gap: 6px;
        text-align: left;
    }

    & .auth-heading__title {
        font-size: var(--fs-24);
        font-weight: var(--fw-600);
    }

    & .auth-heading__text {
        max-width: none;
    }

    & .auth-switch, & .auth-note {
        text-align: left;
    }
}

.auth--split:has(.auth-card--center) {
    & .auth__head,
    & .auth__foot {
        justify-content: center;
    }

    & .auth-heading {
        align-items: center;
        gap: 8px;
        text-align: center;
    }

    & .auth-heading__text {
        max-width: 36ch;
        text-wrap: balance;
    }

    & .auth-switch,
    & .auth-note {
        text-align: center;
        text-wrap: balance;
    }
}

.auth__aside {
    position: sticky;
    top: 0;
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    padding: 40px clamp(32px, 4vw, 64px);
    overflow-y: auto;
    background-color: hsl(var(--gray-50));
    border-left: 1px solid hsl(var(--border-color));

    @media (max-width: 991px) {
        display: none;
    }
}

.auth-aside {
    width: 100%;
    max-width: 600px;
}

.auth-aside__eyebrow {
    margin: 0 0 12px;
    font-size: var(--fs-14);
    font-weight: var(--fw-500);
    color: hsl(var(--base));
}

.auth-aside__title {
    margin: 0 0 20px;
    font-family: var(--heading-font);
    font-size: var(--fs-32);
    font-weight: var(--fw-600);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: hsl(var(--heading-color));
}

.auth-aside__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;

    & li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: var(--fs-14);
        font-weight: var(--fw-500);
        color: hsl(var(--gray-700));
    }

    & svg {
        width: 18px;
        height: 18px;
        padding: 3px;
        color: hsl(var(--white));
        background-color: hsl(var(--base));
        border-radius: 50%;
    }
}

/* Feature slider: slides share one grid cell, so the panel is as tall as the tallest one and never jumps */

.auth-slider {
    --slide-interval: 5500ms;
}

/* sign in has no perks row: keep the same gap above the slider */
.auth-aside__title + .auth-slider { margin-top: 28px; }

.auth-slider__viewport {
    display: grid;
    touch-action: pan-y;
    user-select: none;
}

.auth-slide {
    grid-area: 1 / 1;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(16px);
    transition: opacity var(--dur-slow) ease, transform 0.5s var(--ease-out), visibility 0s linear var(--dur-slow);

    &.is-active {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.4s ease 0.05s, transform 0.5s var(--ease-out) 0.05s, visibility 0s;
    }
}

.auth-slide__art {
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, hsl(var(--base) / 0.1), transparent 60%),
        linear-gradient(160deg, hsl(var(--white)), hsl(var(--gray-100)));
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--radius-lg);

    & svg {
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
    }
}

.auth-slide__title {
    margin: 20px 0 6px;
    font-family: var(--heading-font);
    font-size: var(--fs-20);
    font-weight: var(--fw-600);
    letter-spacing: -0.01em;
    color: hsl(var(--heading-color));
}

.auth-slide__text {
    max-width: 460px;
    margin: 0;
    font-size: var(--fs-14);
    line-height: 1.6;
    color: hsl(var(--gray-500));
}

/* the drawings' palette */
.auth-art {
    & .a-surface { fill: hsl(var(--white)); stroke: hsl(var(--border-color)); stroke-width: 1; }
    & .a-surface.is-picked, & .a-thumb.is-picked { stroke: hsl(var(--base)); stroke-width: 1.5; }
    & .a-lane { fill: hsl(var(--gray-100)); }
    & .a-line { fill: hsl(var(--gray-200)); }
    & .a-line-soft, & .a-track, & .a-thumb-bar { fill: hsl(var(--gray-100)); }
    & .a-thumb { fill: hsl(var(--gray-50)); stroke: hsl(var(--border-color)); stroke-width: 1; }
    & .a-avatar { fill: hsl(var(--gray-200)); }
    & .a-grid { stroke: hsl(var(--gray-200)); stroke-dasharray: 3 5; }
    & .a-white { fill: hsl(var(--white)); }
    & .a-white-stroke { fill: none; stroke: hsl(var(--white)); stroke-width: 1.6; stroke-linejoin: round; }
    & .a-base { fill: hsl(var(--base)); }
    & .a-base-soft { fill: hsl(var(--base) / 0.16); }
    & .a-info { fill: hsl(var(--info)); }
    & .a-info-soft { fill: hsl(var(--info) / 0.16); }
    & .a-success { fill: hsl(var(--success)); }
    & .a-success-soft { fill: hsl(var(--success) / 0.16); }
    & .a-success-stroke { fill: none; stroke: hsl(var(--success)); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    & .a-warning { fill: hsl(var(--warning)); }
    & .a-ring-track { fill: none; stroke: hsl(var(--gray-100)); stroke-width: 10; }
    & .a-ring { fill: none; stroke: hsl(var(--base)); stroke-width: 10; stroke-linecap: round; }
    & .a-lift { filter: drop-shadow(0 6px 10px hsl(var(--black) / 0.1)); }

    & text { font-family: var(--body-font); }
    & .a-display { font-family: var(--heading-font); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; fill: hsl(var(--heading-color)); }
    & .a-stat { font-family: var(--heading-font); font-size: 22px; font-weight: 700; fill: hsl(var(--heading-color)); }
    & .a-label { font-size: 12px; font-weight: 600; fill: hsl(var(--heading-color)); }
    & .a-label--success { fill: hsl(var(--success)); }
    & .a-small { font-size: 11px; font-weight: 500; fill: hsl(var(--gray-500)); font-variant-numeric: tabular-nums; }

    & .a-grow, & .a-bar, & .a-shot, & .a-float, & .a-pulse { transform-box: fill-box; }
    & .a-grow { transform-origin: left center; }
    & .a-bar { transform-origin: center bottom; }
}

/* motion on the slide that is showing */
.auth-slide.is-active .auth-art {
    & .a-grow { animation: auth-grow-x 0.9s var(--ease-out) 0.2s both; }
    & .a-bar { animation: auth-grow-y 0.7s var(--ease-out) calc(0.15s + var(--i) * 0.06s) both; }
    & .a-shot { animation: auth-rise 0.5s var(--ease-out) calc(0.1s + var(--i) * 0.07s) both; }
    & .a-ring { animation: auth-ring 1.1s var(--ease-out) 0.2s both; }
    & .a-float { animation: auth-float 4s ease-in-out 0.6s infinite; }
    & .a-drag { animation: auth-drag 0.8s var(--ease-out) 0.25s both, auth-float 4s ease-in-out 1.1s infinite; }
    & .a-pulse { animation: auth-pulse 1.6s ease-in-out infinite; }
}

@keyframes auth-grow-x { from { transform: scaleX(0); } }
@keyframes auth-grow-y { from { transform: scaleY(0); } }
@keyframes auth-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes auth-ring { from { stroke-dashoffset: 86; } }
@keyframes auth-float { 50% { transform: translateY(-4px); } }
@keyframes auth-drag { from { opacity: 0; transform: translate(-96px, -10px); } }
@keyframes auth-pulse { 50% { opacity: 0.35; } }

/* dots (the active one fills up until the next slide) and arrows */
.auth-slider__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.auth-slider__dots {
    display: flex;
    align-items: center;
    gap: 2px;
}

.auth-slider__dot {
    display: grid;
    place-items: center;
    height: 24px;
    padding: 0 4px;
    background: none;
    border: 0;
    border-radius: var(--radius-pill);

    & span {
        position: relative;
        display: block;
        width: 8px;
        height: 8px;
        overflow: hidden;
        background-color: hsl(var(--gray-200));
        border-radius: var(--radius-pill);
        transition: width var(--dur-slow) var(--ease-out), background-color var(--dur-fast) ease;
    }

    &:hover span { background-color: hsl(var(--gray-400)); }

    &.is-active span {
        width: 32px;
        background-color: hsl(var(--base) / 0.2);
    }

    &.is-active span::after {
        content: "";
        position: absolute;
        inset: 0;
        background-color: hsl(var(--base));
        border-radius: inherit;
        transform-origin: left center;
    }

    &:focus-visible { outline: 2px solid hsl(var(--base) / 0.5); outline-offset: 1px; }
}

.auth-slider.is-playing .auth-slider__dot.is-active span::after {
    animation: auth-grow-x var(--slide-interval) linear both;
}

.auth-slider__arrows {
    display: flex;
    gap: 8px;
}

.auth-slider__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: hsl(var(--gray-600));
    background-color: hsl(var(--white));
    border: 1px solid hsl(var(--border-color));
    border-radius: 50%;
    transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;

    & svg {
        width: 16px;
        height: 16px;
    }

    &:hover {
        color: hsl(var(--base));
        border-color: hsl(var(--base) / 0.4);
        background-color: hsl(var(--base) / 0.05);
    }

    &:focus-visible { outline: 2px solid hsl(var(--base) / 0.5); outline-offset: 1px; }
}

.auth-aside__platforms {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    font-size: var(--fs-14);
    color: hsl(var(--gray-500));

    & svg {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }

    .auth-done::after, .auth-done__ring, .auth-done__check { animation: none; }

    .auth-slide, .auth-slide.is-active { transform: none; transition: opacity var(--dur-fast) ease, visibility 0s; }
    .auth-slide.is-active .auth-art * { animation: none !important; }
}

/* GUEST PAGES - END */
