/* Sign-in, forgot password, reset and welcome pages. Same look as /signup and /signed-out. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: #0a0c0b; color: #fff; font-family: 'Open Sans', system-ui, sans-serif; line-height: 1.5; display: flex; justify-content: center; align-items: flex-start; padding: 32px 16px; }
main { width: 100%; max-width: 440px; margin-top: 6vh; }
.logo { display: block; width: 48px; height: 48px; margin: 0 auto 24px; }
.card { background: #121514; border: 1px solid #262c29; border-radius: 18px; padding: 28px 24px; }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
h1:focus { outline: none; }
.sub { margin: 0 0 24px; color: #b8c0bb; font-size: 16px; }
.field { margin-bottom: 16px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.label-row label { margin-bottom: 0; }
.label-row a { font-size: 14px; font-weight: 600; }
input { width: 100%; padding: 14px 14px; border-radius: 10px; border: 1px solid #5b6560; background: #0a0c0b; color: #fff; font: inherit; font-size: 16px; }
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #0a0c0b inset; transition: background-color 9999s; }
input:focus { outline: 3px solid #b6f20f; outline-offset: 1px; border-color: #b6f20f; }
input[aria-invalid="true"] { border: 2px solid #ff9b91; }
.pw { position: relative; }
.pw input { padding-right: 76px; }
.pw .show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #b8c0bb; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.pw .show:hover { color: #fff; }
.pw .show:focus-visible { outline: 3px solid #fff; outline-offset: 0; }
.rules { margin: -8px 0 16px; color: #b8c0bb; font-size: 13px; }
button.go { width: 100%; margin-top: 4px; background: #b6f20f; color: #0a0c0b; border: none; font: inherit; font-weight: 600; font-size: 16px; padding: 16px 28px; border-radius: 10px; cursor: pointer; }
button.go:hover:not([aria-disabled="true"]) { background: #c6ff2e; }
button.go:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
button.go[aria-disabled="true"] { opacity: .6; cursor: default; }
button.plain { width: 100%; margin-top: 12px; background: transparent; color: #fff; border: 1px solid #5b6560; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 16px; border-radius: 10px; cursor: pointer; }
button.plain:hover:not([aria-disabled="true"]) { border-color: #b6f20f; }
button.plain:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
button.plain[aria-disabled="true"] { opacity: .6; cursor: default; }
a.go { display: block; text-align: center; text-decoration: none; background: #b6f20f; color: #0a0c0b; font-weight: 600; font-size: 16px; padding: 16px 28px; border-radius: 10px; }
a.go:hover { background: #c6ff2e; }
/* Stays rendered when empty so screen readers keep the live region; spacing only when it has text. */
.error { margin: 0; color: #ff9b91; font-size: 15px; font-weight: 600; }
.error.has { margin: 0 0 12px; }
.error a { color: #fff; }
.notice { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #3f6600; background: #151d06; border-radius: 10px; color: #e3f7b0; font-size: 15px; }
.status { margin: 12px 0 0; color: #b8c0bb; font-size: 14px; min-height: 1.5em; }
.small { margin: 20px 0 0; color: #b8c0bb; font-size: 14px; text-align: center; }
a { color: #b6f20f; }
.small a { color: #fff; }
.email { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 360px) { .card { padding: 24px 16px; } }
