/* Sign up / sign in. Tokens come from tokens.css. */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; }
.view { width: 100%; max-width: 400px; padding: 16px 22px 18px; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.view[hidden] { display: none; }
.brand { display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; align-self: flex-start; }
.mark { position: relative; width: 22px; height: 22px; background: var(--cobalt); border-radius: 50%; flex: none; }
.mark::after, .big-mark::after { content: ""; position: absolute; left: 21%; top: 27%; width: 29%; height: 29%; background: var(--paper); border-radius: 50%; }
.brand-name { font: 700 17px var(--font-display); letter-spacing: -.02em; }
.head { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
h1 { margin: 0; font: 800 32px/1.02 var(--font-display); letter-spacing: -.025em; }
.sub { margin: 0; color: var(--ink-2); }

.social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; height: 48px; font-size: 15px; font-weight: 600; box-shadow: 0 3px 0 var(--line); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.social + .social { margin-top: 8px; }
.social:active { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.in { width: 20px; height: 20px; border-radius: 4px; background: #0A66C2; color: #fff; display: flex; align-items: center; justify-content: center; font: 700 12px/1 Arial, Helvetica, sans-serif; letter-spacing: -.5px; padding-top: 1px; }

.or { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.rule { flex: 1; height: 1px; background: var(--line); }

form { display: flex; flex-direction: column; flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
label, .label-row { font-size: 13px; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
input[type=email], input[type=password], input[type=text] { width: 100%; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font: 500 16px var(--font-body); color: var(--ink); box-sizing: border-box; }
input.bad { border-color: var(--ink); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.toggle { position: absolute; right: 14px; top: 14px; }
.link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--cobalt); font-weight: 700; font-size: 14px; }
.link.small { font-size: 13px; font-weight: 600; }
:focus-visible { outline: 3px solid var(--cobalt-glow); outline-offset: 2px; }
input[type=email]:focus-visible, input[type=password]:focus-visible, input[type=text]:focus-visible { outline-offset: 0; border-color: var(--cobalt); }

.msg { display: none; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 13.5px; line-height: 1.4; }
.msg.on { display: flex; animation: rise .3s both; }
.msg.on::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.msg.info.on::before { content: "i"; }

.age { display: flex; gap: 10px; align-items: center; cursor: pointer; padding: 2px 0; margin-top: 10px; font-size: 14px; font-weight: 400; position: relative; }
.age[hidden] { display: none; }
.age input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CFCAC0; background: var(--card); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: background .15s; flex: none; }
.age input:checked + .box { background: var(--cobalt); border-color: var(--cobalt); }
.age input:checked + .box::after { content: "\2713"; }
.age input:focus-visible + .box { outline: 3px solid var(--cobalt-glow); outline-offset: 2px; }

.actions { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.press { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--cobalt); color: #fff; border: 0; border-radius: var(--r-btn); padding: 15px; font-size: 16px; font-weight: 700; box-shadow: var(--shadow-press); cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s; }
.press:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--cobalt-deep); }
.press:disabled { cursor: default; }
.press[aria-busy=true] { background: var(--cobalt-glow); }
.dot { display: none; position: relative; width: 18px; height: 18px; background: #fff; border-radius: 50%; animation: breathe 1.2s ease-in-out infinite; }
.dot::after { content: ""; position: absolute; left: 21%; top: 27%; width: 29%; height: 29%; background: var(--cobalt); border-radius: 50%; }
.press[aria-busy=true] .dot { display: block; }
.switch { text-align: center; font-size: 14px; color: var(--ink-2); }
.fine { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; text-wrap: pretty; }

.sent { padding-bottom: 26px; animation: rise .4s both; }
.sent[hidden] { display: none; }
.sent-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.big-mark { position: relative; width: 88px; height: 88px; background: var(--cobalt); border-radius: 50%; box-shadow: 0 18px 30px -12px rgba(46,85,217,.55); animation: breathe 3.2s ease-in-out infinite; }
.sent h1 { font-size: 34px; }
.sent h1:focus { outline: none; }
.lead { margin: 0; font-size: 16px; color: var(--ink-2); }
.lead b { color: var(--ink); overflow-wrap: anywhere; }
.sent-actions { display: flex; flex-direction: column; gap: 8px; }
.ghost { width: 100%; background: var(--card); color: var(--cobalt); border: 1px solid var(--line); border-radius: var(--r-btn); padding: 14px; font-size: 15px; font-weight: 600; box-shadow: 0 3px 0 var(--line); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ghost:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--line); }
.ghost:disabled { opacity: .6; cursor: default; }
.center-link { text-align: center; padding: 10px; font-weight: 600; }

@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .view { justify-content: center; min-height: 100vh; } .actions { margin-top: 0; padding-top: 22px; } .sent-body { flex: 0; margin-bottom: 32px; } }
