/* Sign-in, sign-up, password reset and account pages. Colours, type and controls come from app.css. */
html,body.au-body{height:auto;min-height:100%}
body.au-body{overflow:auto;background:
  radial-gradient(900px 520px at 85% -10%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 70%),
  radial-gradient(700px 480px at -10% 110%,color-mix(in srgb,var(--accent-2) 16%,transparent),transparent 70%),var(--bg)}
.au-wrap{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:32px 16px}
.au-brand{color:var(--fg);text-decoration:none;padding:0}
.au-brand svg{width:40px;height:40px}
.au-brand .bname span{font-size:26px}
.au-card{width:min(440px,100%);display:flex;flex-direction:column;gap:14px;padding:28px;border-radius:22px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}
.au-card.wide{width:min(620px,100%)}
.au-card h1{margin:0;font:700 28px/1.12 var(--display);letter-spacing:-.02em}
.au-card h2{margin:6px 0 0;font:700 18px/1.2 var(--display);letter-spacing:-.01em}
.au-sub{margin:-4px 0 4px;color:var(--fg-2);line-height:1.5}
form{display:flex;flex-direction:column;gap:14px;margin:0}
.au-f{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px}
.au-f small{font-weight:500;color:var(--fg-2)}
.au-f .field{height:44px;font-size:15px}
.au-hint{font-size:12px;line-height:1.4}
.au-pw{position:relative;display:block}
.au-pw .field{padding-right:68px}
.au-eye{position:absolute;right:6px;top:6px;height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--fg-2);font:600 12px var(--body)}
.au-eye:hover{background:var(--surface-2);color:var(--fg)}
.au-chk{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.45;color:var(--fg-2);cursor:pointer}
.au-chk input{width:18px;height:18px;margin:1px 0 0;flex:none;accent-color:var(--accent-2)}
.au-chk[hidden]{display:none}
.au-go{height:46px;font-size:15px;border-radius:13px;margin-top:4px}
.au-go[disabled]{opacity:.65;cursor:progress}
.au-msg{padding:10px 12px;border-radius:11px;font-size:13.5px;line-height:1.45;border:1px solid color-mix(in srgb,var(--bad) 40%,transparent);background:color-mix(in srgb,var(--bad) var(--tint),var(--surface));color:var(--fg)}
.au-msg.ok{border-color:color-mix(in srgb,var(--ok) 40%,transparent);background:color-mix(in srgb,var(--ok) var(--tint),var(--surface))}
.au-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;font-size:13.5px;color:var(--fg-2)}
.au-links a,.au-card a{color:var(--accent-t);font-weight:650;text-decoration:none}
.au-links a:hover,.au-card a:hover{text-decoration:underline}
a.btn,.au-card a.btn{color:var(--fg);text-decoration:none}
a.btn:hover,.au-card a.btn:hover{text-decoration:none}
.au-foot{margin:0;color:var(--fg-2);font-size:12.5px;text-align:center}
/* account page */
.ac-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.ac-row:first-of-type{border-top:0}
.ac-row p{margin:2px 0 0;color:var(--fg-2);font-size:13px;line-height:1.45}
.ac-row b{font-weight:650}
.ac-sec{display:flex;flex-direction:column;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.ac-meter{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-top:8px;width:min(260px,100%)}
.ac-meter i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:inherit}
.ac-meter i.full{background:var(--bad)}
.ac-danger{border-color:color-mix(in srgb,var(--bad) 45%,var(--line))}
.btn.danger{border:0;color:#fff;background:var(--bad)}
.btn.danger:hover{filter:brightness(1.07);background:var(--bad)}
.ac-top{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(620px,100%)}
@media (max-width:480px){.au-card{padding:22px 18px;border-radius:18px}.au-card h1{font-size:24px}}
/* single sign-on: buttons on the sign-in page, and the welcome / switch screens */
.sso-or{display:flex;align-items:center;gap:10px;color:var(--fg-2);font-size:12.5px;margin:2px 0}
.sso-or::before,.sso-or::after{content:"";flex:1;height:1px;background:var(--line)}
.sso-btns{display:flex;flex-direction:column;gap:8px}
.sso-btns .btn{height:44px;justify-content:center;font-size:14.5px}
.sso-f{display:flex;flex-direction:column;gap:14px}
.sso-who{background:var(--surface-2);border-radius:12px;padding:12px 14px;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 14px;font-size:13.5px;margin:0}
.sso-who dt{color:var(--fg-2)} .sso-who dd{margin:0;overflow-wrap:anywhere}
.sso-row{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.ac-methods{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;color:var(--fg-2);font-size:13px}
