/* Sign-in, sign-up and the other pages on layouts/guest: a photo half with
   the product's story, and a form half with the page in a bordered card.
   Moved out of an inline <style> in the layout, and re-coloured: it painted
   the account-type cards indigo (#6366f1) and the slider magenta (#FF0099),
   neither of which is ours. */

/* ── Frame: the photo half and the form half, 50 / 50 ────────────────────
   The page scrolls as a page; the photo stays pinned beside a tall form. It
   used to be a 100vh box scrolling inside itself, which on a phone fought
   the address bar and the keyboard. */
.au-body { background: var(--tuqio-card, #fff); }
.au-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

.au-hero { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--tuqio-navy); color: #fff; }
.au-hero-photo {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 7s ease;
}
.au-hero-photo.is-on { opacity: 1; transform: scale(1); }
/* On a big screen the photo is meant to be seen: clear at the top, navy
   gathering only behind the words at the bottom so they stay readable.
   (Under 992px, where the card floats over it, it is dimmed to 90% below.) */
.au-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(24, 17, 60, .10) 0%, rgba(24, 17, 60, .20) 40%, rgba(20, 14, 50, .72) 68%, rgba(16, 11, 42, .92) 100%);
}
.au-hero-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 2.25rem 3rem 1.75rem; }
.au-hero-logo { align-self: flex-start; display: inline-flex; padding: .55rem .9rem; background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.au-hero-logo img { height: 34px; width: auto; display: block; }
.au-hero-copy { margin-top: auto; max-width: 560px; }
.au-hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #fff; margin: 0 0 .6rem; }
.au-hero-title span { display: block; color: var(--tuqio-red); }
.au-hero-sub { font-size: 1rem; color: rgba(255, 255, 255, .85); margin: 0 0 1.75rem; }

/* One story per slide: a small label, one bold line, one sentence. */
.au-story {
    padding: 1.25rem 1.4rem; border-radius: 14px; min-height: 142px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.au-story-item.is-in { animation: au-rise .5s ease both; }   /* on a change only, never on first paint */
.au-story-eyebrow { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin-bottom: .45rem; }
.au-story h3 { font-size: 1.12rem; font-weight: 700; color: #fff; margin: 0 0 .35rem; line-height: 1.35; }
.au-story p { font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .85); margin: 0; }
@keyframes au-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.au-hero-nav { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; }
.au-hero-arrow {
    width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff;
}
.au-hero-arrow:hover { background: rgba(255, 255, 255, .12); }
.au-hero-dots { display: flex; gap: .4rem; }
.au-hero-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .3s, background-color .3s; }
.au-hero-dots button.is-on { width: 26px; background: var(--tuqio-red); }
.au-hero-foot { margin: 1.5rem 0 0; font-size: .75rem; color: rgba(255, 255, 255, .6); }

@media (prefers-reduced-motion: reduce) {
    .au-hero-photo { transition: opacity .2s; transform: none !important; }
    .au-story-item.is-in { animation: none; }
}

/* ── The form half ───────────────────────────────────────────────────────── */
.au-side { display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; background: var(--tuqio-card, #fff); }
.au-side-inner { width: 100%; max-width: 440px; }
/* The logo in its bordered tile, as it was before the split. */
.au-mark { display: table; margin: 0 auto 1.5rem; padding: .85rem 1.4rem; background: #fff; border: 2px solid var(--tuqio-neutral); border-radius: 10px; }
.au-mark img { display: block; width: 130px; height: auto; }

.au-card { border: 1px solid var(--tuqio-border); border-radius: 14px; overflow: hidden; background: var(--tuqio-card, #fff); box-shadow: 0 10px 30px rgba(30, 21, 72, .06); }
/* The page's name is a heading inside the card — no coloured band on top. */
.au-card-head { padding: 1.4rem 1.4rem 0; }
.au-card-head h1 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; color: var(--tuqio-heading); }
.au-card-head + .au-card-body { padding-top: .45rem; }
.au-card-body { padding: 1.4rem; }
.au-lead { font-size: .85rem; color: var(--tuqio-muted); margin: 0 0 1.1rem; }
.au-hl { color: var(--tuqio-red-dark); font-weight: 700; }
.au-secure {
    display: flex; gap: .55rem; align-items: center; margin: 1.25rem 0 0; padding: .7rem .85rem;
    border-radius: 10px; background: var(--tuqio-surface); font-size: .78rem; color: var(--tuqio-text);
}
.au-secure i { color: var(--tuqio-navy); }

/* Fields: a label above, an icon inside. */
.au-input { position: relative; }
.au-input > i:first-child { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--tuqio-muted); font-size: .95rem; pointer-events: none; z-index: 1; }
.au-input .form-control { padding-left: 2.5rem; }
.au-input.has-eye .form-control { padding-right: 2.75rem; }
.au-card .form-control { padding-top: .62rem; padding-bottom: .62rem; font-size: .9rem; border-color: var(--tuqio-border); }
.au-card .form-control:focus { border-color: var(--tuqio-navy); box-shadow: 0 0 0 3px var(--tuqio-navy-soft, rgba(30, 21, 72, .15)); }
.au-card .form-control::placeholder { color: var(--tuqio-muted); opacity: .7; }
.au-card .btn-primary { padding: .78rem 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.25rem 0 1.1rem; font-size: .82rem; }
.au-row a { font-weight: 600; color: var(--tuqio-navy); }
.au-check { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--tuqio-text); margin: 0; }
.au-check input { width: 1rem; height: 1rem; accent-color: var(--tuqio-navy); }

/* ── Tablets and phones: the dark photo is the page, the card floats on it,
   and the logo alone sits centred above the card — the headline beside a
   centred card never lined up with it. */
@media (max-width: 991.98px) {
    .au-shell { display: block; min-height: 100vh; }
    .au-hero { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 0; }
    .au-hero-shade { background: rgba(16, 11, 42, .9); }
    .au-hero-inner { display: none; }
    /* Centred up and down: a short form (login) sat high with half the screen empty below it. A tall one (sign-up) still starts at the top, since the box grows with it. */
    .au-side { position: relative; z-index: 1; background: transparent; min-height: 100vh; min-height: 100dvh; padding: 2rem 1rem; align-items: center; }
    .au-mark { box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
    .au-card { border: 0; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
    .au-side .au-foot { color: rgba(255, 255, 255, .85); }
    .au-side .au-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
}
@media (max-width: 575.98px) {
    .au-side { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .au-card-body { padding: 1.15rem; }
    /* iPhone zooms into any field under 16px the moment it is tapped. */
    .au-card .form-control, .au-card .form-select { font-size: 16px; }
}

/* ── Sign-up ─────────────────────────────────────────────────────────────── */

.au-steps { display: flex; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.au-steps li { flex: 1; font-size: .72rem; font-weight: 600; color: var(--tuqio-muted); }
.au-steps li::before { content: ''; display: block; height: 4px; border-radius: 4px; background: var(--tuqio-line); margin-bottom: .4rem; }
.au-steps li.is-on { color: var(--tuqio-heading, var(--tuqio-navy)); }
.au-steps li.is-on::before { background: var(--tuqio-navy); }

.au-label { display: block; font-size: .8rem; font-weight: 600; color: var(--tuqio-text); margin-bottom: .35rem; }
.au-field { margin-bottom: 1rem; }
.au-hint { font-size: .75rem; color: var(--tuqio-muted); margin-top: .3rem; }
.au-error { font-size: .78rem; color: var(--tuqio-danger-dark, #b91c1c); margin-top: .3rem; }
.au-error:empty { display: none; }
.au-field.has-error .form-control { border-color: var(--tuqio-danger); }

/* The two account types: a pair of cards, the chosen one filled navy. */
.au-types { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.1rem; }
.au-type { position: relative; margin: 0; cursor: pointer; }
.au-type input { position: absolute; opacity: 0; pointer-events: none; }
.au-type-body {
    display: flex; align-items: center; gap: .65rem; height: 100%;
    padding: .75rem .8rem; border: 1.5px solid var(--tuqio-border); border-radius: 12px;
    background: var(--tuqio-card, #fff); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.au-type-icon {
    flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; font-size: 1rem;
    background: var(--tuqio-surface); color: var(--tuqio-navy);
}
.au-type-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.au-type-text b { font-size: .88rem; color: var(--tuqio-heading, var(--tuqio-navy)); }
.au-type-text small { font-size: .72rem; color: var(--tuqio-muted); }
.au-type:hover .au-type-body { border-color: var(--tuqio-navy); }
.au-type input:focus-visible + .au-type-body { box-shadow: 0 0 0 3px var(--tuqio-navy-soft, rgba(30, 21, 72, .15)); }
.au-type input:checked + .au-type-body { border-color: var(--tuqio-navy); background: var(--tuqio-navy); }
.au-type input:checked + .au-type-body .au-type-icon { background: var(--tuqio-red); color: #fff; }
.au-type input:checked + .au-type-body b,
.au-type input:checked + .au-type-body small { color: #fff; }
.au-type input:checked + .au-type-body small { opacity: .85; }

.au-pass { position: relative; }
.au-pass .form-control { padding-right: 2.75rem; }
.au-eye {
    position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
    width: 2.25rem; height: 2.25rem; border: 0; background: none; border-radius: 8px;
    color: var(--tuqio-muted); display: grid; place-items: center;
}
.au-eye:hover { color: var(--tuqio-navy); background: var(--tuqio-surface); }

/* Rules tick off as you type — nothing is red before you have started. */
.au-rules { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.au-rules li {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; font-weight: 500; padding: .2rem .55rem; border-radius: 999px;
    background: var(--tuqio-surface); color: var(--tuqio-muted);
}
.au-rules li.is-met { background: var(--tuqio-success-dark); color: #fff; }

.au-panel-title { font-size: 1rem; font-weight: 700; color: var(--tuqio-heading, var(--tuqio-navy)); margin: 0 0 .25rem; }
.au-panel-sub { font-size: .8rem; color: var(--tuqio-muted); margin: 0 0 1rem; }

.au-terms { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--tuqio-text); margin: .25rem 0 1rem; cursor: pointer; }
.au-terms input { margin-top: .15rem; width: 1rem; height: 1rem; accent-color: var(--tuqio-navy); flex: 0 0 auto; }

.au-actions { display: flex; gap: .6rem; }
.au-actions .btn { flex: 1; padding: .7rem 1rem; font-weight: 600; }
.au-actions .au-back { flex: 0 0 auto; }
.au-skip { display: block; width: 100%; margin-top: .75rem; background: none; border: 0; font-size: .8rem; color: var(--tuqio-muted); text-decoration: underline; text-underline-offset: 3px; }
.au-skip:hover { color: var(--tuqio-navy); }
.au-foot { text-align: center; font-size: .82rem; color: var(--tuqio-muted); margin-top: 1.5rem; }
.au-foot a { font-weight: 700; color: var(--tuqio-red-dark); }

.au-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 10px; background: var(--tuqio-danger-dark, #b91c1c); color: #fff; font-size: .82rem; margin-bottom: 1rem; }
.au-alert a { color: #fff; font-weight: 700; text-decoration: underline; }

.au-step[hidden] { display: none !important; }

/* ── After sign-up: check your email ─────────────────────────────────────── */
.au-done-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 16px;
    display: grid; place-items: center; font-size: 1.5rem;
    background: var(--tuqio-navy); color: #fff;
}
.au-sent { display: flex; gap: .55rem; align-items: center; padding: .65rem .8rem; border-radius: 10px; background: var(--tuqio-success-dark); color: #fff; font-size: .82rem; margin-bottom: 1rem; }

/* The ways out of "check your email": resend (with its countdown) and change. */
.ve-help { border-top: 1px solid var(--tuqio-line); padding-top: 1rem; }
.ve-row { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .84rem; color: var(--tuqio-muted); margin: 0 0 .5rem; }
.ve-link { background: none; border: 0; padding: 0; font-weight: 700; color: var(--tuqio-red-dark); text-decoration: underline; text-underline-offset: 3px; }
.ve-link:disabled { color: var(--tuqio-muted); text-decoration: none; cursor: default; font-weight: 600; }
.ve-link [data-ve-timer] { font-variant-numeric: tabular-nums; }
.ve-change { margin-top: 1rem; text-align: left; }
.ve-change .au-back { flex: 0 0 auto; }

/* An invitation's details: who, as what, at which address. */
.au-facts { margin: 0 0 1.1rem; padding: .75rem .9rem; border-radius: 10px; background: var(--tuqio-surface); font-size: .82rem; }
.au-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; }
.au-facts dt { font-weight: 500; color: var(--tuqio-muted); margin: 0; }
.au-facts dd { font-weight: 600; color: var(--tuqio-text); margin: 0; text-align: right; overflow-wrap: anywhere; }
