/* Log in ("/" and /login), "get a login link", "choose your password" and
   "change your password" (Pau, 2026-10-22, the "mix" design): a thin
   blue-to-pink line on top, the ScaledOn elephant alone above a white card
   with a gradient top edge and a soft brand glow, and far behind, a faint,
   blurred glimpse of report cards that fades out around the card. Static:
   nothing moves. Tokens are report.css's; keep them in step.
   Used by public/login.html, public/set-password/index.html,
   public/pwd-reset/index.html and functions/_shared/login-pages.js. */
:root {
  --blue:#3F56CD; --pink:#ED4691; --grey:#F7F8F9; --white:#FFFFFF;
  --text:#1E2333; --body:#4E5463; --muted:#6B7080; --border:#E3E5EC;
  --risk:#E0483C; --ok:#1F9D6B;
  --grad-blue-pink:linear-gradient(90deg,#3F56CD,#ED4691);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body { position: relative; min-height: 100vh; display: flex; flex-direction: column; min-width: 320px; background: var(--grey); color: var(--text); font-family: "Quicksand", sans-serif; font-weight: 500; -webkit-font-smoothing: antialiased; }
/* The faint report backdrop: one static picture, blurred, masked so the
   card area stays clean. Hidden for people who ask for less transparency. */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1320 804'><rect x='0.0' y='0' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='24.0' y='22' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='24.0' y='50' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='337.0' y='0' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='361.0' y='22' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='361.0' y='50' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='674.0' y='0' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='698.0' y='22' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='698.0' y='50' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='1011.0' y='0' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='1035.0' y='22' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='1035.0' y='50' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='0' y='148' width='481.5238095238095' height='240' rx='15' fill='%23fff'/><rect x='24' y='170' width='144' height='10' rx='5' fill='%23DCE0EA'/><path d='M24 348 C96 338 169 298 241 303 S385 258 458 243' fill='none' stroke='%238B99DE' stroke-width='9'/><path d='M24 363 C120 358 217 348 289 343 S409 323 458 313' fill='none' stroke='%23F3A9C9' stroke-width='9'/><rect x='509.5238095238095' y='148' width='300.95238095238096' height='240' rx='15' fill='%23fff'/><rect x='533.5238095238095' y='170' width='120' height='10' rx='5' fill='%23DCE0EA'/><rect x='534' y='298' width='32' height='76' rx='6' fill='%23D3D9F1'/><rect x='578' y='269' width='32' height='105' rx='6' fill='%23D3D9F1'/><rect x='622' y='280' width='32' height='94' rx='6' fill='%23D3D9F1'/><rect x='666' y='241' width='32' height='133' rx='6' fill='%23D3D9F1'/><rect x='710' y='255' width='32' height='119' rx='6' fill='%23D3D9F1'/><rect x='754' y='218' width='32' height='156' rx='6' fill='%23D3D9F1'/><rect x='838.4761904761905' y='148' width='481.5238095238095' height='240' rx='15' fill='%23fff'/><rect x='862.4761904761905' y='170' width='144' height='10' rx='5' fill='%23DCE0EA'/><path d='M862.4761904761905 348 C935,338,1007 298 1079 303 S1224 258 1296 243' fill='none' stroke='%23F7B993' stroke-width='9'/><path d='M862.4761904761905 363 C959,358,1055 348 1127 343 S1248 323 1296 313' fill='none' stroke='%238B99DE' stroke-width='9'/><rect x='0.0' y='416' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='24.0' y='438' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='24.0' y='466' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='337.0' y='416' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='361.0' y='438' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='361.0' y='466' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='674.0' y='416' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='698.0' y='438' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='698.0' y='466' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='1011.0' y='416' width='309.0' height='120' rx='15' fill='%23fff'/><rect x='1035.0' y='438' width='154' height='10' rx='5' fill='%23DCE0EA'/><rect x='1035.0' y='466' width='192' height='26' rx='7' fill='%23C9CFDF'/><rect x='0' y='564' width='481.5238095238095' height='240' rx='15' fill='%23fff'/><rect x='24' y='586' width='144' height='10' rx='5' fill='%23DCE0EA'/><path d='M24 764 C96 754 169 714 241 719 S385 674 458 659' fill='none' stroke='%23F7B993' stroke-width='9'/><path d='M24 779 C120 774 217 764 289 759 S409 739 458 729' fill='none' stroke='%238B99DE' stroke-width='9'/><rect x='509.5238095238095' y='564' width='300.95238095238096' height='240' rx='15' fill='%23fff'/><rect x='533.5238095238095' y='586' width='120' height='10' rx='5' fill='%23DCE0EA'/><rect x='534' y='654' width='32' height='136' rx='6' fill='%23D3D9F1'/><rect x='578' y='691' width='32' height='99' rx='6' fill='%23D3D9F1'/><rect x='622' y='678' width='32' height='112' rx='6' fill='%23D3D9F1'/><rect x='666' y='722' width='32' height='68' rx='6' fill='%23D3D9F1'/><rect x='710' y='702' width='32' height='88' rx='6' fill='%23D3D9F1'/><rect x='754' y='730' width='32' height='59' rx='6' fill='%23D3D9F1'/><rect x='838.4761904761905' y='564' width='481.5238095238095' height='240' rx='15' fill='%23fff'/><rect x='862.4761904761905' y='586' width='144' height='10' rx='5' fill='%23DCE0EA'/><path d='M862.4761904761905 764 C935,754,1007 714 1079 719 S1224 674 1296 659' fill='none' stroke='%238B99DE' stroke-width='9'/><path d='M862.4761904761905 779 C959,774,1055 764 1127 759 S1248 739 1296 729' fill='none' stroke='%23F3A9C9' stroke-width='9'/></svg>") center 40px / 1320px auto no-repeat; filter: blur(14px); opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 48%, transparent 0, transparent 34%, #000 56%, #000 66%, transparent 92%);
          mask-image: radial-gradient(ellipse 78% 82% at 50% 48%, transparent 0, transparent 34%, #000 56%, #000 66%, transparent 92%); }
@media (prefers-reduced-transparency: reduce) { body::before { display: none; } }
.page-line { position: relative; z-index: 1; height: 3px; background: var(--grad-blue-pink); }
.auth-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 32px; }
.mark { display: block; width: 76px; height: 76px; margin: 0 auto 28px; object-fit: contain; }
.card { position: relative; overflow: hidden; width: 100%; max-width: 416px; padding: 40px 40px 32px; border: 1px solid var(--border); border-radius: 15px; background: var(--white);
  box-shadow: 0 1px 2px rgba(30,35,70,.04), 0 12px 32px rgba(30,35,70,.06), 0 34px 80px -24px rgba(63,86,205,.34), 0 40px 90px -28px rgba(237,70,145,.28); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-blue-pink); }
h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; text-align: center; }
.sub { margin: 8px 0 32px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sub:empty { margin: 0 0 24px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--body); }
input[type="email"], input[type="password"] { width: 100%; min-height: 48px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--white); color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
input[type="email"]:hover, input[type="password"]:hover { border-color: #CDD1DC; }
input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63,86,205,.14); }
button { width: 100%; min-height: 50px; margin-top: 8px; padding: 12px; border: 0; border-radius: 999px; background: var(--blue); color: var(--white); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(63,86,205,.22); transition: background .15s ease; }
button:hover { background: #3448B0; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hint { margin: -10px 0 18px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
/* Messages: .error on the login page, .msg on the link page, .message on
   the password page. */
.error, .msg, .message { margin-bottom: 18px; padding: 10px 14px; border-radius: 11px; font-size: 14px; line-height: 1.45; }
.error, .msg.error, .message.error { background: #fdecea; color: #9b2c22; }
.msg.ok, .message.success { background: #e7f6ef; color: #1f6b4a; }
[hidden] { display: none !important; }
.forgot, .links { margin-top: 22px; text-align: center; font-size: 14px; }
.forgot a, .links a, .back { color: var(--blue); font-weight: 700; text-decoration: none; }
.error-action { color: inherit; font-weight: 700; text-decoration: underline; }
.forgot a:hover, .links a:hover, .back:hover { text-decoration: underline; }
.back { display: block; margin-top: 22px; text-align: center; font-size: 14px; }
.foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.site-foot { position: relative; z-index: 1; padding: 24px 16px 32px; text-align: center; font-size: 12.5px; color: var(--muted); }
.site-foot .dot { margin: 0 8px; color: #B7BBC6; }
@media (max-width: 480px) {
  .auth-main { justify-content: flex-start; padding: 40px 16px 24px; }
  .mark { width: 64px; height: 64px; margin-bottom: 22px; }
  body::before { background-size: 760px auto; opacity: .45;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 22%, transparent 80%, #000 100%);
            mask-image: linear-gradient(180deg, #000 0, transparent 22%, transparent 80%, #000 100%); }
  .card { padding: 32px 22px 26px; }
  h1 { font-size: 23px; }
  .sub { margin-bottom: 26px; }
}
