/*
 * The new sign-in pages (UiSettings:Design "New"): Areas/Identity/Pages/_AuthLayoutNew.cshtml draws the frame (navy
 * bands with flowing waves, the paper-cut city, the CUBES logo), Login.cshtml and WebAdminOtp.cshtml put their card in
 * it. From the owner's Claude Design result (2026-10-24, mockup cubes-analyst/login-redesign/claude-design/result).
 * Theme: data-theme="dark" on <html>, set before paint from this browser's CUBES mode (cion_mode), else the device.
 * Frosted hand-over on Sign in: the sign-in loader's own card (css/sign-in-loader.css). Animations at full speed for
 * everyone (owner's rule): no reduced-motion block.
 */
html, body { margin: 0; padding: 0; }
body { background: #F4F7FB; }
[data-theme="dark"] body { background: #0B1626; }
.cubes {
  --bg: #F4F7FB; --card: #FFFFFF; --card-line: rgba(14, 34, 64, .06);
  --text: #14202E; --label: #26364A; --muted: #586579;
  --field: #F8FAFD; --field-line: #CFD9E6; --field-hover: #AFC0D4;
  --brand: #1D5FB5; --brand-2: #1A6FCB; --sky: #0AA2DE; --link: #1D5FB5;
  --ring: rgba(29, 95, 181, .20); --error: #C0262D; --error-ring: rgba(192, 38, 45, .16);
  --hint: #EAF3FC; --hint-line: #CFE2F6; --hint-text: #1B4F93;
  --band: #0E2240; --wave-1: #0AA2DE; --wave-2: #7FD3F3; --wave-o: 1;
  --sky-top: #86ACD5; --sky-bot: #C8DAEE; --paper-far: #93B3D6; --paper-mid: #F5F8FC; --paper-near: #FFFFFF; --paper-near-2: #EEF4FA;
  --ground-1: #F4F8FC; --ground-2: #FFFFFF; --win: rgba(29, 95, 181, .17); --cut: #C9DAEC; --edge: rgba(29, 95, 181, .26); --door: rgba(29, 95, 181, .2);
  --cloud: #FFFFFF; --moon: #FFFFFF; --crater: #A8C3E1; --paper-shadow: rgba(14, 34, 64, .16); --veil: rgba(244, 247, 251, .18); --halo: rgba(236, 243, 250, .62); --moon-o: 0; --deco-o: 1; --lights-o: 0; --cab: var(--paper-mid); --cab-glow: transparent;
  --shadow: 0 24px 56px -22px rgba(14, 34, 64, .34);
  --cube-shadow: rgba(14, 34, 64, .20); --word-filter: none; --tag: #3F4D60;
  --frost: rgba(244, 247, 251, .30); --modal-veil: rgba(14, 34, 64, .38);
  --switch-bg: rgba(255, 255, 255, .10); --switch-line: rgba(255, 255, 255, .20); --switch-on: #FFFFFF; --switch-on-ink: #0E2240; --switch-ink: #BFD3EA;
  --key: #F1F5FA; --key-line: #D5DFEA; --key-hover: #E6EDF6;
  --sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", "Nunito Sans", sans-serif;
  --band-h: 150px; --shine-x: 260px;
  position: relative; container: cubes / inline-size;
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; color-scheme: light; overflow-x: hidden;
}
[data-theme="dark"] .cubes, .cubes[data-theme="dark"] {
  --bg: #0B1626; --card: #13202F; --card-line: rgba(255, 255, 255, .07);
  --text: #E7EEF6; --label: #C9D6E4; --muted: #9AAABD;
  --field: #0E1A28; --field-line: #2B3E54; --field-hover: #3B5470;
  --brand: #2367C2; --brand-2: #1C78D2; --sky: #3DB8EA; --link: #6CC4F0;
  --ring: rgba(61, 184, 234, .22); --error: #FF8B85; --error-ring: rgba(255, 139, 133, .18);
  --hint: #142C46; --hint-line: #21405F; --hint-text: #A9D4F5;
  --band: #060F1E; --wave-o: .55;
  --sky-top: #12304F; --sky-bot: #0D1D31; --paper-far: #10253D; --paper-mid: #132C49; --paper-near: #173553; --paper-near-2: #1A3A5B;
  --ground-1: #1B3D60; --ground-2: #1F4469; --win: rgba(127, 211, 243, .10); --cut: #0E2036; --edge: rgba(127, 211, 243, .16); --door: #FFD27A;
  --cloud: #1A3554; --moon: #D3E6F8; --crater: #B5CDE5; --paper-shadow: rgba(0, 0, 0, .42); --veil: rgba(11, 22, 38, .14); --halo: rgba(11, 22, 38, .66); --moon-o: 1; --deco-o: 0; --lights-o: 1; --cab: #FFD27A; --cab-glow: rgba(255, 206, 120, .55);
  --shadow: 0 28px 60px -24px rgba(0, 0, 0, .65);
  --cube-shadow: rgba(10, 162, 222, .22); --tag: #A7B8CB;
  --word-filter: brightness(1.45) saturate(1.1) drop-shadow(0 0 10px rgba(10, 162, 222, .45)) drop-shadow(0 0 2px rgba(127, 211, 243, .35));
  --frost: rgba(11, 22, 38, .34); --modal-veil: rgba(2, 8, 18, .55);
  --switch-bg: rgba(255, 255, 255, .06); --switch-line: rgba(255, 255, 255, .12); --switch-on: #17304F; --switch-on-ink: #7FD3F3; --switch-ink: #8FA6C0;
  --key: #182838; --key-line: #2A3D52; --key-hover: #1E3246;
  color-scheme: dark;
}
.cubes *, .cubes *::before, .cubes *::after { box-sizing: border-box; }
.cubes [hidden] { display: none !important; }

/* page frame: band / middle / band */
.cb-page { position: relative; min-height: inherit; height: inherit; display: grid; grid-template-rows: var(--band-h) minmax(0, 1fr) var(--band-h); }

/* the background between the bands: a paper-cut city, crisp layers lit from above */
.cb-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 62%, var(--bg) 100%); }
.cb-city { position: absolute; left: 0; right: 0; top: calc(var(--band-h) + 20px); bottom: calc(var(--band-h) - 30px); }
.cb-l { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.cb-l-sky { filter: drop-shadow(0 4px 6px var(--paper-shadow)); }
.cb-l-far { fill: var(--paper-far); filter: drop-shadow(0 2px 4px var(--paper-shadow)); }
.cb-l-mid { fill: var(--paper-mid); filter: drop-shadow(0 4px 8px var(--paper-shadow)); }
.cb-l-near { fill: var(--paper-near); filter: drop-shadow(0 -2px 10px var(--paper-shadow)); }
.cb-l .win { fill: var(--win); }
.cb-l .cut { fill: var(--cut); }
.cb-l .line { fill: none; stroke: var(--edge); stroke-width: 1.5; }
.cb-l .leg { fill: none; stroke: var(--paper-mid); stroke-width: 7; stroke-linecap: round; }
.cb-l .palm { fill: var(--paper-near-2); }
.cb-l .g1 { fill: var(--ground-1); }
.cb-l .g2 { fill: var(--ground-2); }
.cb-l .door { fill: var(--door); }
/* night lights: windows switch on group by group when it turns dark, a few twinkle, beacons blink on the tall towers */
.cb-l-lights { filter: drop-shadow(0 0 3px rgba(255, 206, 120, .55)); }
.cb-l-farlights { filter: drop-shadow(0 0 1px rgba(255, 206, 120, .25)); opacity: .28; }
.cb-lit { opacity: var(--lights-o); transition: opacity .5s ease; }
.cb-lit.la { transition-delay: .25s; }
.cb-lit.lb { transition-delay: .7s; }
.cb-lit.lc { transition-delay: 1.15s; }
.cb-lit.ld1 { transition-delay: 1.5s; }
.cb-lit.ld2 { transition-delay: 1.8s; }
.lp-la, .lp-ld1 { fill: #FFD27A; } .lp-lb, .lp-ld2 { fill: #FFE7B0; } .lp-lc { fill: #A9DDFB; }
@starting-style { .cb-lit { opacity: 0; } }
/* landmarks: the sail hotel glows and slowly shifts from cool blue to gold; the spire has light strips and a shimmer rising up it */
.cb-lm-sail { transition-delay: .1s; }
.cb-lm-spire { transition-delay: .4s; }
.cb-sail-b { animation: cb-sail 18s ease-in-out infinite; }
.cb-lm-line { fill: none; stroke: #FFF4D6; stroke-width: 1.4; opacity: .85; }
.cb-lm-edge { fill: none; stroke: #DDF4FF; stroke-width: 2; }
.cb-lm-mast { fill: #FFF1CC; }
.lp-strip { fill: #FFE7B0; opacity: .7; }
.cb-sweep { animation: cb-sweep-up 9s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes cb-sail { 0%, 30% { opacity: 0; } 50%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cb-sweep-up { 0% { transform: translateY(140px); } 60%, 100% { transform: translateY(-640px); } }
/* wheel: the cabins and rim light up at night */
.cb-wheel .cab, .cb-wheel .hub { fill: var(--cab); transition: fill .6s .9s; }
.cb-wheel .rimlights { fill: none; stroke: #FFE7B0; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 13.6; opacity: var(--lights-o); transition: opacity .6s 1.2s; }
.cb-l-wheel { filter: drop-shadow(0 3px 5px var(--paper-shadow)) drop-shadow(0 0 3px var(--cab-glow)); }
.cb-twinkle { animation: cb-twinkle 13s steps(1) infinite; }
.ld2 .cb-twinkle { animation-duration: 17s; animation-delay: -6s; }
.cb-beacon { fill: #FF8A80; opacity: 0; animation: cb-beacon 2.4s ease-in-out infinite; }
[data-theme="light"] .cb-beacon, .cubes[data-theme="light"] .cb-beacon { animation: none; opacity: 0; }
@keyframes cb-twinkle { 0% { opacity: 1; } 38% { opacity: 0; } 61% { opacity: 1; } 79% { opacity: 0; } 86% { opacity: 1; } }
@keyframes cb-beacon { 0%, 100% { opacity: 0; } 12%, 30% { opacity: var(--lights-o); } 45% { opacity: 0; } }
.cb-l .bird { fill: none; stroke: var(--cloud); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cb-balloon .stripe { fill: none; stroke: var(--edge); stroke-width: 1.4; }
.cb-birds { animation: cb-cloud 40s ease-in-out infinite alternate-reverse; opacity: var(--deco-o); transition: opacity .4s; }
.cb-moonbox { position: absolute; top: 2px; right: max(24px, calc(50% - 680px)); width: 100px; height: 100px; overflow: visible; filter: drop-shadow(0 4px 6px var(--paper-shadow)); opacity: var(--moon-o); transition: opacity .4s; }
.cb-moon { fill: var(--moon); }
.cb-moon .crater { fill: var(--crater); }
.cb-clouds, .cb-balloon { fill: var(--cloud); opacity: var(--deco-o); transition: opacity .4s; }
.cb-wheel { fill: var(--paper-mid); transform-box: fill-box; transform-origin: center; animation: cb-turn 160s linear infinite; }
.cb-wheel .rim { fill: none; stroke: var(--paper-mid); stroke-width: 6; }
.cb-wheel .rim.thin { stroke-width: 2.5; }
.cb-wheel .rim.spoke { stroke-width: 1.4; }
.cb-balloon.b2 { animation-duration: 14s; animation-delay: -5s; }
.cb-cloud { animation: cb-cloud-cross 120s linear infinite; }
.cb-cloud.c1 { --from: -260px; --to: 1480px; animation-duration: 100s; animation-delay: -14.9s; }
.cb-cloud.c2 { --from: -620px; --to: 1120px; animation-duration: 120s; animation-delay: -42.8s; }
.cb-cloud.c3 { --from: -1210px; --to: 530px; animation-duration: 130s; animation-delay: -90.4s; }
.cb-cloud.c4 { --from: -1340px; --to: 400px; animation-duration: 150s; animation-delay: -115.5s; }
.cb-cloud.c5 { --from: -450px; --to: 1290px; animation-duration: 170s; animation-delay: -44.0s; }
.cb-balloon { animation: cb-balloon 11s ease-in-out infinite; }
.cb-veil { position: absolute; inset: 0; background: var(--veil); }
@keyframes cb-cloud-cross { from { transform: translateX(var(--from)); } to { transform: translateX(var(--to)); } }
@keyframes cb-turn { to { transform: rotate(360deg); } }
@keyframes cb-cloud { from { transform: translateX(-28px); } to { transform: translateX(28px); } }
@keyframes cb-balloon { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -10px); } }

/* navy bands with flowing waves */
.cb-band { position: relative; z-index: 2; overflow: hidden; }
.cb-band-shape { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cb-band-shape .fill { fill: var(--band); }
.cb-band-shape .sw1 { fill: var(--wave-2); opacity: calc(.55 * var(--wave-o)); }
.cb-band-shape .sw2 { fill: none; stroke: var(--wave-1); stroke-width: 2; opacity: calc(.9 * var(--wave-o)); vector-effect: non-scaling-stroke; }
.cb-band-shape .top { fill: none; stroke: var(--wave-1); stroke-width: 3; opacity: calc(.85 * var(--wave-o)); vector-effect: non-scaling-stroke; }
.cb-waves { position: absolute; left: 0; right: 0; top: 14%; height: 58%; overflow: hidden; }
.cb-wave { position: absolute; left: 0; top: 0; width: 200%; height: 100%; animation: cb-flow 14s linear infinite; }
.cb-wave path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.cb-wave.w1 path { stroke: var(--wave-1); stroke-width: 2; opacity: calc(.75 * var(--wave-o)); }
.cb-wave.w2 { animation-duration: 16s; animation-delay: -5s; }
.cb-wave.w2 path { stroke: var(--wave-2); stroke-width: 1.5; opacity: calc(.55 * var(--wave-o)); }
.cb-wave.w3 { animation-duration: 12s; animation-delay: -8s; animation-direction: reverse; }
.cb-wave.w3 path { stroke: var(--wave-1); stroke-width: 1; opacity: calc(.45 * var(--wave-o)); }
.cb-band-bottom .cb-band-shape { transform: scaleY(-1); }
.cb-band-bottom .cb-waves { top: 28%; }
.cb-band-bottom .cb-wave { animation-direction: reverse; }
.cb-band-bottom .cb-wave.w3 { animation-direction: normal; }
@keyframes cb-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sun / moon switch */
.cb-theme { position: absolute; top: 22px; right: 24px; z-index: 3; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--switch-bg); border: 1px solid var(--switch-line); }
.cb-theme button { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--switch-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .25s, color .25s; }
.cb-theme button[aria-pressed="true"] { background: var(--switch-on); color: var(--switch-on-ink); }
.cb-theme button:hover:not([aria-pressed="true"]) { color: #fff; }
.cb-theme svg { width: 19px; height: 19px; }

/* centred group */
.cb-main { position: relative; z-index: 1; display: grid; place-items: center; padding: 16px 24px; min-height: 0; }
.cb-group { width: min(960px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cb-brand { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.cb-brand::before { content: ""; position: absolute; inset: -14% -12%; z-index: -1; background: radial-gradient(closest-side, var(--halo), transparent); pointer-events: none; }
.cb-mark { position: relative; width: 300px; aspect-ratio: 280 / 250; }
.cb-mark::after { content: ""; position: absolute; left: 4%; width: 54%; bottom: -1%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, var(--cube-shadow), transparent); animation: cb-shadow 6s ease-in-out infinite; }
.cb-mark > svg, .cb-mark > .cb-parts { position: relative; z-index: 1; }
.cb-cluster { display: block; width: 100%; height: auto; overflow: visible; }
.cb-word-wrap { margin-top: 20px; width: 292px; }
.cb-word { display: block; width: 100%; height: auto; filter: var(--word-filter); transition: filter .3s; }
.cb-tag { margin: 16px 0 0; font: 600 15px/1 var(--cond); letter-spacing: .26em; color: var(--tag); text-transform: uppercase; }

/* logo motion: on load the small cubes stream out of the big cube's corner (as L1), then drift forever */
.cb-pop, .cb-drift, .cb-big, .cb-bob { transform-box: fill-box; transform-origin: center; }
.cb-enter .cb-brand .cb-pop { animation: cb-stream 1.7s cubic-bezier(.22, .7, .25, 1) both; animation-delay: calc(.5s + var(--i) * .16s); }
.cb-enter .cb-brand .cb-big { animation: cb-bigin .8s cubic-bezier(.2, .8, .2, 1) both; }
.cb-enter .cb-word-wrap { animation: cb-fadeup .7s .25s cubic-bezier(.2, .8, .2, 1) both; }
.cb-enter .cb-tag { animation: cb-fade .8s .7s both; }
.cb-drift { animation: cb-drift-a var(--dd, 7s) ease-in-out var(--dl, 0s) infinite; }
.cb-drift-b { animation-name: cb-drift-b; } .cb-drift-c { animation-name: cb-drift-c; }
.cb-bob { animation: cb-bob 6s ease-in-out infinite; }
.cb-shine { animation: cb-shine 7s ease-in-out 3.2s infinite; transform: skewX(-18deg); }
@keyframes cb-stream { 0% { transform: translate(var(--bx), var(--by)) scale(.3); opacity: 0; } 18% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes cb-bigin { from { transform: translateY(10px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cb-drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -3px); } }
@keyframes cb-drift-b { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-2px, -2px); } 66% { transform: translate(1.5px, 2px); } }
@keyframes cb-drift-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2px, 3px); } }
@keyframes cb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cb-shadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .75; } }
@keyframes cb-shine { 0% { transform: translateX(0) skewX(-18deg); } 20%, 100% { transform: translateX(var(--shine-x)) skewX(-18deg); } }

/* the card */
.cb-card { width: 400px; flex: none; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; box-shadow: var(--shadow); padding: 34px 32px 26px; transition: background-color .3s; }
.cb-enter .cb-card { animation: cb-rise .8s 1s cubic-bezier(.2, .8, .2, 1) both; }
.cb-enter .cb-f { animation: cb-fadeup .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.25s + var(--n, 0) * .08s); }
.cb-card.cb-shake { animation: cb-shake .45s cubic-bezier(.36, .07, .19, .97) both; }
.cb-card h1 { margin: 0; text-wrap: balance; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.cb-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cb-form { margin-top: 24px; display: flex; flex-direction: column; }
.cb-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.cb-field label, .cb-label { font-size: 14px; font-weight: 700; color: var(--label); }
.cb-control { position: relative; }
.cb-input { width: 100%; height: 48px; padding: 0 14px; font: 600 16px var(--sans); color: var(--text); background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; outline: none; transition: border-color .2s, box-shadow .25s, background-color .2s; }
.cb-input:hover { border-color: var(--field-hover); }
.cb-input:focus { border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px var(--ring), 0 0 18px -4px var(--ring); }
[data-theme="dark"] .cb-input:focus, .cubes[data-theme="dark"] .cb-input:focus { border-color: var(--sky); }
.cb-input[aria-invalid="true"] { border-color: var(--error); }
.cb-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--error-ring); }
.cb-input.has-eye { padding-right: 52px; }
.cb-input.pw { letter-spacing: .12em; }
.cb-eye { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cb-eye:hover { color: var(--text); }
.cb-eye svg { width: 20px; height: 20px; }
.cb-hint { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--hint); border: 1px solid var(--hint-line); color: var(--hint-text); font-size: 14px; font-weight: 600; line-height: 1.4; animation: cb-fadeup .35s ease both; }
.cb-hint svg { width: 20px; height: 20px; flex: none; margin-top: 0; }
.cb-error { min-height: 20px; margin: -8px 0 6px; font-size: 14px; font-weight: 700; color: var(--error); opacity: 0; transform: translateY(-3px); transition: opacity .35s, transform .35s; }
.cb-error.on { opacity: 1; transform: none; }
.cb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; white-space: nowrap; font-size: 14px; }
.cb-check { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--label); font-weight: 600; cursor: pointer; }
.cb-check input { appearance: none; -webkit-appearance: none; margin: 0; width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.5px solid var(--field-line); background: var(--field); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.cb-check input::before { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s; }
.cb-check input:checked { background: var(--brand); border-color: var(--brand); }
.cb-check input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.cb-check input:focus-visible { box-shadow: 0 0 0 4px var(--ring); }
.cb-link { color: var(--link); font-weight: 700; text-decoration: none; border-radius: 4px; }
.cb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cb-row .cb-link { display: inline-flex; align-items: center; min-height: 44px; }
.cb-btn { position: relative; overflow: hidden; width: 100%; height: 50px; border: 0; border-radius: 10px; font: 800 16px var(--sans); letter-spacing: .01em; color: #fff; background: linear-gradient(180deg, var(--brand-2), var(--brand)); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset; cursor: pointer; transition: filter .2s, transform .1s; }
.cb-btn:hover { filter: brightness(1.07); }
.cb-btn:active { transform: translateY(1px); }
.cb-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: translateX(0) skewX(-20deg); animation: cb-sweep 5.5s ease-in-out 2.6s infinite; pointer-events: none; }
.cb-btn.ghost { color: var(--link); background: transparent; border: 1px solid var(--field-line); box-shadow: none; }
.cb-btn.ghost::after { display: none; }
.cb-btn.ghost:hover { filter: none; border-color: var(--field-hover); background: var(--field); }
.cb-alt { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.cb-alt .cb-link { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.cb-note { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.cubes :focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.cubes .cb-input:focus-visible, .cubes .cb-check input:focus-visible { outline: none; }

/* emailed code */
.cb-code { height: 60px; text-align: center; font: 800 28px var(--sans); letter-spacing: .6em; padding: 0 0 0 .6em; }
.cb-stack { display: flex; flex-direction: column; gap: 10px; }

/* till PIN pad */
.cb-pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 2px 0 18px; }
.cb-key { height: 56px; border-radius: 10px; border: 1px solid var(--key-line); background: var(--key); color: var(--text); font: 700 22px var(--sans); cursor: pointer; transition: background-color .15s, transform .08s; }
.cb-key:hover { background: var(--key-hover); }
.cb-key:active { transform: scale(.97); }
.cb-key.clear { font-size: 18px; color: var(--link); }

/* calmer page for the till */
.cb-calm .cb-wave { animation-duration: 32s; }
.cb-calm .cb-wave.w2 { animation-duration: 38s; }
.cb-calm .cb-wave.w3 { animation-duration: 28s; }
.cb-calm .cb-wheel { animation-duration: 360s; }
.cb-calm .cb-balloon { animation-duration: 20s; }
.cb-calm .cb-drift { animation-duration: calc(var(--dd, 7s) * 1.8); }
.cb-calm .cb-bob, .cb-calm .cb-mark::after { animation-duration: 10s; }
.cb-calm .cb-shine { animation-duration: 14s; }
.cb-calm .cb-btn::after { animation-duration: 9s; }

/* warning pop-up */
.cb-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: var(--modal-veil); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: cb-fade .25s ease both; }
.cb-dialog { width: min(380px, 100%); background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px 26px 22px; text-align: center; animation: cb-pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
.cb-dialog .cb-icon { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--hint); color: var(--hint-text); }
.cb-dialog .cb-icon svg { width: 24px; height: 24px; }
.cb-dialog h2 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.cb-dialog p { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.cb-dialog .cb-btn { height: 46px; }
.cb-dialog .cb-btn::after { display: none; }

@keyframes cb-rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cb-fadeup { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cb-pop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cb-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }
@keyframes cb-sweep { 0% { transform: translateX(0) skewX(-20deg); } 26%, 100% { transform: translateX(560%) skewX(-20deg); } }

/* The plain city (owner's cubes-sign-in-plain, 2026-10-26): ordinary towers stand in for the two landmarks. */
.lm-alt { display: none; }
.cb-plain .lm-alt { display: inline; }
.cb-plain .lm-x { display: none; }

@media (max-height: 820px) { .cb-page { --band-h: 118px; } }
@media (max-height: 720px) { .cb-page { --band-h: 84px; } .cb-mark { width: 240px; } .cb-word-wrap { width: 240px; margin-top: 12px; } }

/* phone */
@container cubes (max-width: 640px) {
  .cb-page { --band-h: 96px; }
  .cb-theme { top: 12px; right: 12px; }
  .cb-theme button { width: 36px; height: 36px; }
  .cb-main { padding: 10px 16px; align-items: start; }
  .cb-group { flex-direction: column; gap: 14px; }
  .cb-brand { flex: none; }
  .cb-mark { width: 104px; }
  .cb-word-wrap { width: 118px; margin-top: 8px; }
  .cb-tag { display: none; }
  .cb-moonbox { width: 56px; height: 56px; right: 20px; }
  .cb-card { width: 100%; padding: 24px 20px 18px; }
  .cb-card h1 { font-size: 23px; }
  .cb-sub { font-size: 14.5px; }
  .cb-form { margin-top: 18px; }
  .cb-field { margin-bottom: 13px; }
  .cb-row { margin-bottom: 14px; }
  .cb-alt { margin-top: 10px; }
  .cb-key { height: 50px; }
  .cb-pad { gap: 8px; margin-bottom: 14px; }
}

/* Server messages: the field checks (jQuery validation) and the page's own message sit in the card's error line style. */
.cb-card .field-validation-error, .cb-card .validation-summary-errors, .cb-card .cb-server-error { display: block; font-size: 14px; font-weight: 700; color: var(--error); }
.cb-card .field-validation-valid, .cb-card .validation-summary-valid { display: none; }
.cb-card .validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }
.cb-card .cb-server-error:empty { display: none; }
.cb-messages { display: flex; flex-direction: column; gap: 4px; margin: -6px 0 12px; }
.cb-messages:empty { display: none; }
.cb-status { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cb-status.is-error { color: var(--error); font-weight: 700; }
.cb-inline-form { margin: 10px 0 0; }
/* The page's sign-in frost and the warning pop-up cover the whole window. */
.cubes .cb-modal { position: fixed; }

/* Account activation and password reset pages (ResetPassword, ForgotPassword and their confirmations). */
.cubes .d-none { display: none !important; }
.cb-steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cb-steps li { display: flex; align-items: center; gap: 8px; }
.cb-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 1.5px solid var(--field-line); }
.cb-steps .is-now { color: var(--text); }
.cb-steps .is-now span, .cb-steps .is-done span { background: var(--brand); border-color: var(--brand); color: #fff; }
.cb-steps .is-done { color: var(--label); }
.cb-input:disabled, .cb-input[readonly] { opacity: .75; cursor: default; }
.cb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cb-hint.ok { background: var(--hint); }
.cb-reqs { list-style: none; margin: 2px 0 18px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--field); display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cb-reqs li { display: flex; gap: 9px; align-items: center; }
.cb-reqs li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--field-line); }
.cb-reqs li.ok { color: var(--text); }
.cb-reqs li.ok::before { background: var(--brand) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); border-color: var(--brand); }
.cb-btn:disabled { filter: grayscale(.6) opacity(.55); cursor: not-allowed; }
.cb-btn-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.cb-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.cb-tick svg { width: 30px; height: 30px; }
.cb-status:empty { display: none; }
.cb-status { margin-bottom: 12px; }

/* The release line at the bottom of the sign-in card (Models/Common/ReleaseInfo.cs): small and muted, light and dark. */
.cb-release-btn { border: 0; background: none; padding: 2px 4px; border-radius: 6px; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.cb-release-btn:hover { color: var(--text); }
.cb-release-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cb-notes { width: min(520px, 100%); text-align: left; padding: 22px 22px 18px; }
.cb-notes-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cb-notes-top h2 { margin: 0; font-size: 18px; }
.cb-notes-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cb-notes-x:hover { color: var(--text); background: var(--card-line); }
.cb-notes .cubes-notes { display: grid; gap: 10px; max-height: 60vh; overflow: auto; font-size: 14.5px; }
.cb-notes .cubes-notes-rel + .cubes-notes-rel { border-top: 1px solid var(--card-line); padding-top: 8px; }
.cb-notes summary { cursor: pointer; font-weight: 700; color: var(--label); }
.cb-notes .cubes-notes-num { font-family: ui-monospace, Consolas, monospace; }
.cb-notes .cubes-notes-day { font-weight: 400; color: var(--muted); }
.cb-notes .cubes-notes-group { display: grid; gap: 2px; margin-top: 6px; }
.cb-notes .cubes-notes-k { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cb-notes .cubes-notes-group.new .cubes-notes-k { color: #2F8FD8; }
.cb-notes .cubes-notes-group.improved .cubes-notes-k { color: #27A06A; }
.cb-notes .cubes-notes-group.fixed .cubes-notes-k { color: #C9811A; }
.cb-notes ul { margin: 0; padding-left: 18px; color: var(--text); }
.cb-release { margin: 18px 0 0; text-align: center; font-size: 12px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
@container cubes (max-width: 640px) { .cb-release { margin-top: 12px; } }
