/* Standalone public entry screens; no cabinet or Pico form overrides. */
.entry-page {
    color-scheme: dark;
    --ink: #edf4fc;
    --muted: #a6b6c9;
    --link: #c7d9ec;
    --line: #33465c;
    --focus: #94cdff;
    --setup-confirmed: #92d4b2;
    --setup-error: #ffaaaa;
    --setup-muted: var(--muted);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
    background: radial-gradient(ellipse at 43% 42%, #122238 0, transparent 55%),
                linear-gradient(125deg, #0b1321, #080f1a 58%, #070d17);
    color: var(--ink);
    font: 400 16px/1.5 "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", sans-serif;
    -webkit-text-size-adjust: 100%;
}
.entry-page *, .entry-page *::before, .entry-page *::after { box-sizing: border-box; }
.entry-mast { align-self: start; padding: clamp(16px, 3vw, 38px) clamp(16px, 4vw, 60px); }
.entry-brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.entry-brand svg { display: block; width: 155px; }
.entry-main { display: grid; justify-items: center; padding-inline: 16px; min-width: 0; }
.entry-page .auth-panel {
    width: min(440px, 100%); min-width: 0; padding: clamp(22px, 3.3vw, 36px);
    border: 1px solid var(--line); border-radius: 20px;
    background: linear-gradient(140deg, #111e2df5, #0e1825f5 61%, #101b29fa);
    box-shadow: inset 0 1px 0 #cbdef408, 0 18px 58px -28px #02060aa3;
}
.entry-step, .entry-step form { display: grid; gap: 20px; min-width: 0; }
.entry-page h1 { margin: 0; font-size: clamp(1.65rem, 2.6vw, 2rem); line-height: 1.18; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.entry-page p, .entry-page form { margin: 0; }
.auth-panel-head > p { margin-top: 10px; font-size: .94rem; color: var(--muted); }
.entry-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.entry-identity bdi { font-variant-numeric: tabular-nums; }
.entry-identity a { font-size: .84rem; }
.entry-eyebrow, .password-setup-confirmed { display: block; margin-bottom: 9px; font-size: .82rem; color: var(--muted); }
.entry-page label { display: block; font-size: .95rem; font-weight: 500; }
.entry-page .field { min-width: 0; display: grid; gap: 8px; }
.entry-page input:not([type=hidden]) {
    width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 14px;
    border: 1px solid #4e647c; border-radius: 10px;
    background: #0b1421; color: var(--ink); font: inherit; line-height: normal;
    caret-color: var(--focus); transition: border-color .14s ease;
}
.entry-page input::placeholder { color: #92a6bc; opacity: 1; }
.entry-page .entry-phone { position: relative; }
.entry-phone svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; fill: none; stroke: #a9bdd1; stroke-width: 1.5; stroke-linejoin: round; pointer-events: none; }
.entry-page .entry-phone input { padding-left: 44px; font-variant-numeric: tabular-nums; }
.entry-page a, .entry-link { color: var(--link); text-underline-offset: .21em; text-decoration-thickness: 1px; }
.entry-page :is(input,button,a):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.entry-page input:focus { border-color: #88add0; }
.entry-page h1:focus { outline: none; }
.entry-page .auth-primary {
    position: relative; display: grid; place-items: center; width: 100%; min-height: 48px;
    padding: 10px 46px; margin: 0; border: 1px solid #b5ddff9c; border-radius: 10px;
    background: linear-gradient(100deg, rgb(164 209 244 / 76%), rgb(147 197 238 / 67%));
    color: #071626; font: inherit; font-weight: 650; text-align: center; text-decoration: none;
    cursor: pointer; overflow-wrap: anywhere;
}
.entry-page .auth-primary::after {
    content: ""; position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
    background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-page .auth-primary:not(:disabled):hover { background-color: #8bbfea39; }
.entry-page .auth-primary:not(:disabled):active { background-color: #9fcef461; }
.entry-page .auth-primary:disabled { background: #243446; color: #a0b0c1; border-color: #415367; cursor: not-allowed; }
.entry-page [aria-busy=true] { cursor: progress; }
.entry-page .auth-primary[aria-busy=true]::after { mask: none; background: none; border: 2px dotted currentColor; border-radius: 50%; width: 12px; height: 12px; }
.entry-page .auth-terms-notice, .auth-code-meta { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.entry-page .entry-link { justify-self: start; font: inherit; font-size: .91rem; }
.entry-page button.entry-link {
    min-height: 44px; padding: 0 2px; margin: 0; background: transparent;
    border: 0; cursor: pointer; text-decoration: underline;
}
.entry-page .entry-link:disabled { color: #9caab8; text-decoration: none; cursor: not-allowed; }
.auth-code-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(5px, 1.3vw, 10px); }
.entry-page input.auth-code-cell { text-align: center; padding: 0; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.entry-page .alert { padding: 10px 12px; border-left: 2px solid #75a3cb; border-radius: 4px; background: #93b6e012; font-size: .9rem; overflow-wrap: anywhere; }
.entry-page .alert-error { border-color: #eaa4a8; color: #ffb9bb; background: #f5909410; }
.entry-page .alert-success { border-color: #83c2a9; }
.entry-footer { align-self: end; padding: 24px 16px; }
.auth-legal-notice { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px 12px; color: #7b91aa; font-size: .82rem; }
.auth-legal-notice a { color: var(--muted); }
.entry-page a:not(.auth-primary):hover, button.entry-link:not(:disabled):hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
    .entry-step { animation: entry-step-in 180ms ease-out both; }
    @keyframes entry-step-in { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) { .entry-page input { transition: none; } }
@media (max-width: 480px) {
    .entry-brand svg { width: 130px; }
    .entry-footer { padding: 20px 8px; }
    .auth-legal-notice { column-gap: 8px; font-size: .75rem; }
}
