:root {
  color-scheme: light;
  --sky: #eaf4ff; --sky-deep: #deeeff; --paper: #fff; --line: #dfe4ed;
  --ink: #252a34; --soft: #586274; --primary: #006dcc; --bright: #0088ff; --error: #b42318;
  font: 15px/1.5 system-ui, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: linear-gradient(150deg,var(--sky-deep),var(--sky) 54%,#f7fbff); }
main { flex: 1; width: 100%; display: grid; place-items: center; padding: 32px 16px; }
section { width: min(100%,398px); padding: clamp(24px,5vw,40px); border: 1px solid #d6e8fa; border-radius: 20px; background: var(--paper); box-shadow: 0 4px 12px #243b5a08, 0 18px 48px #235b9212; }
.brand { margin: 0 0 25px; text-align: center; font-size: clamp(20px,5vw,24px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.brand a { display: inline-flex; align-items: center; justify-content: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { border-radius: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#status,#error { font-size: 13px; margin: 0 0 16px; color: var(--soft); overflow-wrap: anywhere; }
#status:empty { display: none; }
#error { color: var(--error); }
form { display: grid; gap: 12px; }
button,input { font: inherit; }
input:not([type=checkbox]),.code-row { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
input:not([type=checkbox]) { padding: 0 12px; color: var(--ink); }
input::placeholder { color: var(--soft); }
.code-row { display: flex; align-items: center; padding-inline-end: 5px; }
.code-row #code { flex: 1; height: 100%; border: 0; background: transparent; }
#email:focus,.code-row:focus-within { border-color: var(--bright); box-shadow: 0 0 0 3px var(--sky-deep); }
#email:focus,#code:focus { outline: none; }
button { cursor: pointer; }
#send { flex: none; padding: 7px 10px; color: #0057a3; background: var(--sky); border: 0; border-radius: 7px; font-size: 13px; font-weight: 600; }
#send:hover:not(:disabled) { background: var(--sky-deep); }
.check { display: inline-flex; gap: 7px; align-items: center; color: var(--soft); font-size: 13px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.primary,.google-signin { width: 100%; min-height: 44px; border-radius: 10px; font-weight: 600; }
.primary { border: none; background: var(--primary); color: #fff; }
.primary:hover:not(:disabled) { background: #0057a3; }
#login[hidden]+.other-login,[hidden] { display: none !important; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--soft); font-size: 12px; margin: 18px 0; }
.divider::before,.divider::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.google-signin { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 9px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
#googleNote { color: var(--soft); background: #f4f6f9; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 400; }
button:disabled { cursor: not-allowed; }
.primary:disabled,#send:disabled { opacity: .65; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.link { border: 0; padding: 6px 0; color: var(--primary); background: none; text-decoration: underline; text-underline-offset: 3px; }
dt { color: var(--soft); font-size: 13px; } dd { margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere; }
body>aside { order: 1; padding: 0 16px 12px; text-align: center; font-size: 12px; color: var(--soft); }
