/* Customer portal sign-in: a calm, centred card. Used by the login pages only. */
body.auth { min-height: 100vh; min-height: 100dvh; margin: 0; display: block;
    background: radial-gradient(70rem 40rem at 85% -10%, color-mix(in srgb, var(--rose) 22%, transparent), transparent 60%),
                radial-gradient(60rem 36rem at -10% 110%, color-mix(in srgb, var(--violet) 24%, transparent), transparent 60%), var(--bg); }
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-content: center; gap: 1.4rem;
    padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); max-width: none; margin: 0; }
.auth-brand img { width: 7.5rem; height: auto; display: block; }
.auth-card { width: 100%; max-width: 27rem; align-self: center; padding: clamp(1.4rem, 5vw, 2.2rem); background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 18px 50px rgb(40 20 70 / .16); }
.auth-card h1 { margin: 0 0 .4rem; font-size: clamp(1.45rem, 5vw, 1.8rem); line-height: 1.15; }
.auth-card .lead { margin: 0 0 1.3rem; color: var(--muted); font-size: 1rem; }
.auth-card form { display: grid; gap: 1.1rem; }
.auth-card label { display: grid; gap: .35rem; font-weight: 650; }
.auth-card input[type="text"], .auth-card input:not([type]) { min-height: 3rem; font-size: 1.05rem; }
.auth-card .actions { display: grid; } .auth-card .actions button, .auth-card .actions .btn { width: 100%; min-height: 3.1rem; font-size: 1.02rem; justify-content: center; }
.auth-foot { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .82rem; text-align: center; }
.auth-foot .legal { margin-left: 0; }

/* steps */
.steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1.4rem; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: .35rem; font-size: .75rem; color: var(--muted); font-weight: 650; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.done::before, .steps li.now::before { background: var(--grad); }
.steps li.now { color: var(--fg); }
.steps li.done { color: var(--muted); }

/* channel choice */
fieldset.choice { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
fieldset.choice legend { padding: 0; margin: 0 0 .5rem; font-weight: 650; }
.auth-card label.tile-choice, .tile-choice { position: relative; display: flex; flex-direction: row; align-items: center; text-align: left; color: var(--fg); font-size: 1rem; gap: .9rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--panel); font-weight: 600; }
.tile-choice:hover { border-color: var(--line-strong); }
.tile-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile-choice .ico { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 12px; background: var(--lilac); color: var(--accent); }
.tile-choice .ico svg { width: 1.35rem; height: 1.35rem; }
.tile-choice small { display: block; font-weight: 450; color: var(--muted); font-size: .82rem; }
.tile-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tile-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* result / status cards */
.auth-icon { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--accent-weak); color: var(--accent); }
.auth-icon svg { width: 1.8rem; height: 1.8rem; }
.auth-icon.ok { background: #e4f6ec; color: #1a7f4b; } .auth-icon.warn { background: #fdf0d9; color: #a86a00; }
@media (prefers-color-scheme: dark) { .auth-icon.ok { background: #12301f; color: #6fdfa2; } .auth-icon.warn { background: #33260b; color: #f2bd5c; } }
.auth-center { text-align: center; } .auth-center .lead { margin-bottom: 1rem; }
.auth-who { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--lilac); margin: 0 0 1.2rem; }
.auth-who .avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #1f1a2e; flex: none; }
.auth-who strong { display: block; } .auth-who span { color: var(--muted); font-size: .9rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; margin-top: 1rem; font-size: .9rem; }
.auth-note { font-size: .82rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }
@media (max-width: 420px) { .auth-card { border-radius: 18px; } }
