/* THE SIGN-IN LOOK (2026-11-04; the card re-cut to Alec's pick, preview 34 "Front on", 2026-11-11). One stylesheet for three things that must
   look the same pixel for pixel: the static first-load shell in index.html (drawn before the app has downloaded), Pages/Login.razor and
   Pages/Register.razor (both in Components/AuthFrame), and the signed-in loader (index.html and App.razor's Authorizing block). When the app
   boots, the real page lands exactly where the shell was, so nothing jumps. Change a size here and both move together.
   The page around the card (the wall of rooms, the blue, the words) is css/login-wall.css. Only .dpa- and .dpl- classes: nothing reaches
   another page. Colours are written out (the shell can't see MudBlazor's variables). 17px text, 52px fields, a 56px main button. */

.dpa-page {
    position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; z-index: 1;
    font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif; color: #0F172A; -webkit-font-smoothing: antialiased;
    /* set here, not inherited: MudBlazor's body line-height and letter-spacing only exist once the app runs, and the shell must match */
    font-size: 16px; line-height: 1.4; letter-spacing: normal; font-weight: 400;
}
.dpa-page *, .dpa-page *::before, .dpa-page *::after { box-sizing: border-box; letter-spacing: inherit; }
.dpa-page input, .dpa-page button { line-height: 1.4; }
.dpa-page h1, .dpa-page h2, .dpa-page p, .dpa-page ul { margin: 0; padding: 0; }

/* the card */
.dpa-card { position: relative; flex: 0 0 auto; width: 452px; max-width: 100%; padding: 40px 42px 32px; background: #fff; border-radius: 24px; color: #0F172A;
    box-shadow: 0 80px 120px -40px rgba(3, 10, 40, .85), 0 30px 60px -30px rgba(3, 10, 40, .6), 0 0 0 1px rgba(15, 35, 100, .05); }
.dpa-title { font-family: "Plus Jakarta Sans", Inter, Roboto, sans-serif; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: #0F172A; }
.dpa-sub { margin-top: 6px !important; font-size: 17px; line-height: 1.45; color: #475569; }
.dpa-sub b { color: #0F172A; font-weight: 700; overflow-wrap: anywhere; }
.dpa-head { margin-bottom: 22px; }

/* Sign in with Google: our own button (same tab), or Google's own drawn over a copy (.dpa-gsi-look) when the popup is back; 52px like the fields */
.dpa-gsi { position: relative; height: 52px; }
.dpa-gsi-look { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid #DADCE0; border-radius: 10px; background: #fff; color: #3C4043;
    font-family: Roboto, "Google Sans", Arial, sans-serif; font-size: 17.5px; font-weight: 500; letter-spacing: .2px; }
.dpa-gsi-look svg { width: 22px; height: 22px; flex: 0 0 22px; }
.dpa-gsi.is-drawn .dpa-gsi-look { visibility: hidden; }
.dpa-gsi-host { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; justify-content: center;
    transform: scale(1.3); transform-origin: 50% 0; }
.dpa-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #64748B; font-size: 15px; }
.dpa-or::before, .dpa-or::after { content: ""; flex: 1; border-top: 1px solid #E2E8F0; }

/* fields */
.dpa-form { display: flex; flex-direction: column; }
.dpa-field { display: flex; flex-direction: column; margin-bottom: 16px; }
.dpa-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.dpa-label { font-size: 16px; font-weight: 600; color: #1E293B; }
.dpa-field > .dpa-label { margin-bottom: 7px; }
/* a link in the label row ("Forgot password?", 2026-11-22): it comes AFTER the input in the page so Tab goes from the username straight to the
   password box; the grid draws it back up at the right of the label, as the old .dpa-label-row did */
.dpa-field.has-forgot { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.dpa-field.has-forgot > * { grid-column: 1 / -1; }
.dpa-field.has-forgot > .dpa-label { grid-row: 1; grid-column: 1; justify-self: start; }
.dpa-field.has-forgot > .dpa-forgot { grid-row: 1; grid-column: 2; margin-bottom: 7px; }
.dpa-input { width: 100%; height: 52px; padding: 0 16px; font: inherit; font-size: 17px; color: #0F172A; background: #fff;
    border: 1.5px solid #C3D0E6; border-radius: 12px; outline: none; transition: border-color .12s, box-shadow .12s; }
.dpa-input::placeholder { color: #94A3B8; }
.dpa-input:hover { border-color: #93AEDB; }
.dpa-input:focus { border-color: #1D4ED8; box-shadow: 0 0 0 4px #DBE7FF; }
.dpa-input.is-bad { border-color: #DC2626; }
.dpa-input.is-bad:focus { box-shadow: 0 0 0 4px #FEE2E2; }
.dpa-input:disabled { background: #F8FAFC; color: #94A3B8; cursor: default; }
/* CHROME AUTOFILL (Alec, 2026-11-11: the username grew on the first click). Until the visitor touches the page, Chrome draws a filled-in
   value in its own font and size (and pale blue), then swaps to ours on the first click. Keep our font, size, colour and white field in both
   states. A white inset shadow covers Chrome's background (it can't be overridden); the focus ring is added back on top of it.
   :autofill is kept in its own rules: a browser that doesn't know one of the two names drops the whole rule. */
.dpa-input:-webkit-autofill, .dpa-input:-webkit-autofill:hover {
    -webkit-text-fill-color: #0F172A; caret-color: #0F172A; -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset;
    font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; font-weight: 400; }
.dpa-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px #DBE7FF; box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px #DBE7FF; }
.dpa-input:-webkit-autofill::first-line { font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 17px; font-weight: 400; color: #0F172A; }
.dpa-input:autofill { box-shadow: 0 0 0 1000px #fff inset; font-size: 17px; }
.dpa-input:autofill:focus { box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px #DBE7FF; }
.dpa-code:-webkit-autofill, .dpa-code:-webkit-autofill::first-line { font-family: Consolas, "Courier New", monospace; font-size: 34px; font-weight: 700; }
.dpa-pass { position: relative; }
.dpa-pass .dpa-input { padding-right: 84px; }
.dpa-eye { position: absolute; top: 6px; right: 6px; height: 40px; min-width: 66px; padding: 0 12px; border: 0; border-radius: 9px;
    background: #EEF4FF; color: #1D4ED8; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.dpa-eye:hover { background: #E0EAFF; }
.dpa-help { margin-top: 7px; font-size: 15px; color: #64748B; }
.dpa-err { margin-top: 7px; font-size: 15px; font-weight: 500; color: #B91C1C; }

.dpa-link { color: #1D4ED8; font-weight: 600; text-decoration: none; font-size: 15.5px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.dpa-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the main button */
.dpa-btn { position: relative; width: 100%; height: 56px; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 12px; background: #1D4ED8; color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
    box-shadow: 0 12px 24px -14px rgba(29, 78, 216, .9); transition: background .12s, box-shadow .12s; }
.dpa-btn:hover { background: #1E40AF; }
.dpa-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px #BFD3FF; }
.dpa-btn:disabled { background: #93B0EC; box-shadow: none; cursor: default; }
.dpa-btn img { width: 92px; height: 40px; object-fit: contain; }

/* notices inside the card */
.dpa-alert { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; padding: 13px 15px; border-radius: 12px; font-size: 16px; line-height: 1.45; }
.dpa-alert svg { flex: 0 0 22px; margin-top: 1px; }
.dpa-alert.is-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.dpa-alert.is-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.dpa-alert.is-ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }

/* the card's footer */
.dpa-foot { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15.5px; color: #475569; text-align: center; }
.dpa-foot .dpa-link { font-size: 15.5px; }
/* the size again on the p: App.razor has a bare p rule (16.8px) that the shell never sees, and the card grew 3px on takeover */
.dpa-foot p { font-size: 15.5px; line-height: 1.4; min-height: 22px; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; column-gap: 5px; white-space: nowrap; }
/* phones may wrap the footer lines; everywhere else each is ONE line (Alec, 2026-11-17) */
@media (max-width: 560px) { .dpa-foot p { flex-wrap: wrap; white-space: normal; } }

/* the new-device code step */
.dpa-code { height: 72px; text-align: center; font-size: 34px; font-weight: 700; letter-spacing: .5em; text-indent: .5em;
    font-family: Consolas, "Courier New", monospace; }
.dpa-code::placeholder { color: #CBD5E1; letter-spacing: .5em; }
.dpa-step-links { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 15.5px; color: #64748B; text-align: center; }
.dpa-back { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-weight: 600; }

/* the shell only: fields that wait for the app, with a soft sheen */
.dpa-wait { position: relative; overflow: hidden; }
.dpa-wait::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(219,231,255,.55) 50%, rgba(255,255,255,0) 70%); background-size: 220% 100%;
    animation: dpa-sheen 1.8s ease-in-out infinite; }
@keyframes dpa-sheen { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .dpa-wait::after { animation: none; } }

/* a short window (1366x768 laptops and shorter): the same card, a little less air, so it fits without scrolling */
@media (max-height: 820px) {
    .dpa-card { padding: 28px 40px 22px; }
    .dpa-head { margin-bottom: 18px; }
    .dpa-or { margin: 14px 0; }
    .dpa-field { margin-bottom: 12px; }
    .dpa-foot { margin-top: 16px; }
}
@media (max-height: 680px) {
    .dpa-card { padding: 22px 36px 18px; border-radius: 20px; }
    .dpa-title { font-size: 29px; }
    .dpa-sub { font-size: 16px; margin-top: 3px !important; }
    .dpa-head { margin-bottom: 14px; }
    .dpa-gsi { height: 46px; }
    .dpa-input:not(.dpa-code) { height: 46px; }
    .dpa-eye { top: 5px; height: 36px; }
    .dpa-btn { height: 50px; }
    .dpa-or { margin: 10px 0; }
    .dpa-field { margin-bottom: 10px; }
    .dpa-label-row, .dpa-field > .dpa-label, .dpa-field.has-forgot > .dpa-forgot { margin-bottom: 5px; }
    .dpa-foot { margin-top: 12px; gap: 3px; font-size: 15px; }
}
/* a big screen: the card grows with it */
@media (min-width: 1700px) and (min-height: 900px) { .dpa-card { zoom: 1.16; } }
@media (max-width: 560px) {
    .dpa-card { padding: 28px 20px 24px; border-radius: 20px; }
    .dpa-title { font-size: 29px; }
    .dpa-sub { font-size: 16.5px; }
    .dpa-gsi-look { font-size: 17px; }
}

/* ---- the signed-in loader (index.html while the app downloads, then App.razor while it checks who you are) ---- */
.dpl { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
    font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; letter-spacing: normal;
    background: radial-gradient(900px 520px at 88% -8%, rgba(147, 197, 253, .45) 0%, rgba(147, 197, 253, 0) 62%), linear-gradient(180deg, #F7FAFF 0%, #EEF4FF 100%); }
.dpl-card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 360px; max-width: 100%; padding: 34px 28px 30px;
    background: #fff; border: 1px solid #DCE6F7; border-radius: 24px; box-shadow: 0 30px 60px -34px rgba(29, 78, 216, .45), 0 0 0 6px rgba(255, 255, 255, .55); }
.dpl-gif { width: 180px; height: 101px; object-fit: contain; }
.dpl-text { font-size: 21px; font-weight: 700; color: #0F2A6B; text-align: center; }
.dpl-sub { font-size: 16px; color: #64748B; text-align: center; }

/* ---- the sign-in pages' own pop-up (Components/AuthModal, 2026-11-15): Join Downpour, Welcome back, the ended plan. Not a MudBlazor dialog.
   Drawn outside the card (the card zooms on big screens), so it sets its own type like .dpa-page does. ---- */
.dpa-modal { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(8, 20, 70, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: dpa-modal-in .2s ease both;
    font-family: Inter, Roboto, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4; letter-spacing: normal; color: #0F172A;
    -webkit-font-smoothing: antialiased; }
.dpa-modal *, .dpa-modal *::before, .dpa-modal *::after { box-sizing: border-box; }
.dpa-modal h2, .dpa-modal p { margin: 0; padding: 0; }
.dpa-modal-card { width: 440px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px 36px 26px; background: #fff;
    border-radius: 24px; outline: none; text-align: center; box-shadow: 0 60px 100px -40px rgba(3, 10, 40, .8), 0 0 0 1px rgba(15, 35, 100, .06);
    animation: dpa-modal-up .25s ease both; }
.dpa-modal-logo { display: block; width: 64px; height: 64px; margin: 0 auto 14px; object-fit: contain; }
.dpa-modal .dpa-title { font-size: 28px; }
.dpa-modal-line { margin-top: 12px !important; font-size: 17px; line-height: 1.5; color: #334155; }
.dpa-modal-acts { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.dpa-modal-acts .dpa-btn { margin-top: 0; }
.dpa-modal-quiet { height: 46px; border: 0; background: none; border-radius: 12px; font: inherit; font-size: 16px; font-weight: 600; color: #475569; cursor: pointer; }
.dpa-modal-quiet:hover { background: #F1F5F9; color: #0F172A; }
.dpa-modal-quiet:focus-visible { outline: none; box-shadow: 0 0 0 4px #BFD3FF; }
@keyframes dpa-modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpa-modal-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .dpa-modal-card { padding: 28px 22px 20px; border-radius: 20px; } .dpa-modal .dpa-title { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { .dpa-modal, .dpa-modal-card { animation: none; } }
