/* Lavender sampled from the artwork; brand Electric Violet and Dark Navy from the logo. */
:root {
  --bg: #D3C9FC; --violet: #5C00E8; --navy: #001844; --white: #fff;
  --halo-fade: rgba(255, 255, 255, 0.55); --violet-glow: rgba(92, 0, 232, 0.55);
  color-scheme: light; padding: 0 !important;
}
/* Size to the visible screen itself (dvh), so the page is never taller or wider than one screen. */
html, body { margin: 0; padding: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--navy); }
/* On every screen the picture is exactly as tall as the screen and centred; whatever is wider than the screen
   is cut off at the sides (on phones and tablets only the middle of the crowd shows). */
main { position: relative; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; }
main .bg {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  display: block; height: 100vh; height: 100dvh; width: auto; max-width: none;
}

/* Logo centre sits 25% down the screen; the sign-in sits centred below it.
   --w is the logo image width; the logo image is 0.5975 as tall as it is wide, so lifting by half that keeps its centre at 25%. */
.hero {
  /* Sized by screen height like the picture (405px on a 945px-tall laptop screen), so it keeps its place on the crowd;
     never wider than the screen. */
  --w: min(42.86vh, 92vw); --w: min(42.86dvh, 92vw);
  position: absolute; left: 50%; top: 25%; transform: translate(-50%, calc(var(--w) * -0.2987));
  width: var(--w); display: flex; flex-direction: column; align-items: center;
  /* Same halo as the logo: solid white band (70/2099 of the logo image), then a see-through fade half as wide. */
  --solid: calc(var(--w) * 0.0333); --fade: calc(var(--w) * 0.0167);
}
.logo { margin: 0; width: 100%; }
.logo img { display: block; width: 100%; height: auto; }

/* Sign-in in the underline style: animated hints on a line with a glowing end dot, then the fingerprint Log in.
   It sits on one white halo (solid band, then a see-through fade half as wide), like the logo. */
.signin {
  width: 86%; margin-top: calc(var(--solid) * 0.6); padding: calc(var(--w) * 0.05) calc(var(--w) * 0.06) 5px;
  box-sizing: border-box; display: flex; flex-direction: column; gap: calc(var(--w) * 0.045);
  background: var(--white); border-radius: calc(var(--w) * 0.06);
  box-shadow: 0 0 calc(var(--fade) * 2) calc(var(--fade) * 0.5) var(--halo-fade);
  font-size: max(14px, calc(var(--w) * 0.038));
}
.field { position: relative; display: flex; flex-direction: column; gap: 0.04em; font-size: calc(1em + 1px); font-weight: 500; }
/* The hint is the word itself, drawn in the app's typing animation (chat #451): its letters in soft lavender, one
   Electric Violet highlight stepping left to right every 170 ms. It sits on the line and vanishes at the first character typed. */
:root { --type-soft: #7A62CC; }   /* resting hint letters: 4.7:1 on white, readable outdoors; the bold violet highlight still stands out */
.field label {
  position: absolute; left: 0; bottom: calc(0.15em + 2px); pointer-events: none; transition: opacity .15s ease;
}
.field input:not(:placeholder-shown) ~ label { opacity: 0; }
.field label .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field label .word { display: flex; }
.field label .word span { width: 0.95em; text-align: center; color: var(--type-soft); font-weight: 500; }
.field label .word span.hi { color: var(--violet); font-weight: 700; }
.field input {
  border: 0; background: transparent; font: inherit; letter-spacing: 0.3em; color: var(--violet); caret-color: var(--violet);
  padding: 0.35em 1.2em 0.11em 0.2em; outline: none;   /* same size, face, weight and slot spacing as the animated word */
}
/* Password: instead of dots or stars, each hidden character is the wordmark's own dotted A - a violet arch with a
   navy dot - popping in as you type. The real field stays underneath (its text made invisible), so the caret,
   selection and password managers all keep working. */
#password { color: transparent; font-family: Consolas, "Cascadia Mono", "Courier New", monospace; padding-right: 2.5em; }
#password::selection { color: transparent; background: rgba(92, 0, 232, 0.16); }
/* Browser and password-manager fills keep our look: no blue/yellow strip, violet username, dotted-A password. */
.field input:-webkit-autofill { -webkit-text-fill-color: var(--violet); box-shadow: 0 0 0 100px var(--white) inset; filter: none; }
#password:-webkit-autofill { -webkit-text-fill-color: transparent; }
.mask { position: absolute; left: 0.2em; right: 2.5em; bottom: calc(0.15em + 2px); height: 1.1em; overflow: hidden; pointer-events: none; }
/* Show/hide eye (owner, 26 Oct 2026): shows the real password in violet instead of the dotted As. Edge's own eye is
   hidden - it can't show through the dotted As. */
#password::-ms-reveal { display: none; }
.eye {
  position: absolute; right: 1.1em; bottom: calc(0.1em + 2px); width: 1.3em; height: 1.2em; padding: 0; border: 0;
  background: none; color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.eye svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eye .slash { display: none; }
.eye:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.field.shown .eye { color: var(--violet); }
.field.shown .eye .slash { display: inline; }
.field.shown #password { color: var(--violet); font-family: inherit; }
.field.shown #password:-webkit-autofill { -webkit-text-fill-color: var(--violet); }
.field.shown .mask { display: none; }
.mask .track { position: absolute; left: 0; bottom: 0.12em; display: flex; align-items: flex-end; }
.mask svg { flex: none; height: 0.82em; animation: pop .18s ease-out; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* The line: navy fading into violet, with a glowing violet dot at the end. */
.field::after {
  content: ""; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--navy), var(--violet));
  transition: box-shadow .2s ease;
}
.field::before {
  content: ""; position: absolute; right: -2px; bottom: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 2px var(--violet), 0 0 10px 3px var(--violet-glow);
}
.field:focus-within::after { box-shadow: 0 0 8px var(--violet-glow); }
.fields { position: relative; display: flex; flex-direction: column; gap: calc(var(--w) * 0.045); }
/* Refusal: the whole sign-in panel turns into a clean white card with only the message, in big letters drawn in the
   same typing animation as the hints. The fields and button are hidden underneath (they keep their space so the
   panel doesn't change size) and can't be clicked or typed into until the message goes. */
.signin { position: relative; }
.denied {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2em;
  /* Never wider than the card: on short screens (phone held sideways) the letters shrink with the card. */
  font-size: min(calc(1.45em + 2px), calc(var(--w) * 0.076)); font-weight: 500; line-height: 1;
}
.signin.is-denied .fields, .signin.is-denied button { visibility: hidden; }
.denied[hidden] { display: none; }
.denied .word { display: flex; }
.denied .word span { width: 0.95em; text-align: center; color: var(--type-soft); }
.denied .word span.hi { color: var(--violet); font-weight: 700; }
/* The words are for sight; screen readers hear the status line instead. */
.signin .status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }@media (prefers-reduced-motion: reduce) { .mask svg { animation: none; } .field::after, .field label { transition: none; } }

/* Fingerprint Log in: the print rests in Dark Navy with two ridges at a time lit in Electric Violet; a steady
   Dark Navy "LOG IN" sits under it. Rock-steady: nothing moves or resizes on hover or press, only the run speeds up. */
.signin button.fp {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; align-self: center;
  min-height: 42px; padding: 0; border: 0; border-radius: 12px; background: none;
  margin-top: calc(var(--w) * -0.028);   /* sits a little closer to the PASSWORD line */
  font: inherit; font-size: 1.12em; color: var(--navy); cursor: pointer;   /* the label and print are sized from this */
}
.signin button.fp:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.fp .print { height: calc(max(42px, var(--w) * 0.13) * 0.66 * 1.25); aspect-ratio: 853 / 979; display: block; overflow: visible; }
/* Every ridge is its own line and never moves; the print rests in Dark Navy. Only two ridges are lit at a time:
   an Electric Violet stretch runs along each of them from one end to the other, then the next two ridges take over,
   working from the centre of the print outwards. */
.fp .print path { fill: none; stroke-width: 38.6; stroke-linecap: round; }
.fp .print .base path { stroke: var(--navy); }
.fp .print .run path { stroke: var(--violet); stroke-dasharray: 40 100; stroke-dashoffset: 40; opacity: 0; }
.fp .print .run path.on { opacity: 1; animation: run var(--run, 1.2s) linear forwards; }
.signin button.fp:hover .print { --run: 0.6s; }
@keyframes run { from { stroke-dashoffset: 40; } to { stroke-dashoffset: -100; } }
.fp .label { font-size: calc(0.68em * 1.3); font-weight: 700; letter-spacing: 0.3em; margin-right: -0.3em; line-height: 1; color: var(--navy); }   /* steady, Dark Navy */
@media (prefers-reduced-motion: reduce) { .fp .print .run path.on { animation: none; opacity: 0; } }
