/* 模块价值：统一登录注册页与画布的绿白样式。
 * 职责：品牌、认证表单与字段间距；输入为登录/注册状态和视口，输出可换行的页面。
 * 依赖：标准CSS，无网络或业务副作用；仅改变呈现，不改变认证和个人空间规则。 */
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203d35;background:#f3f7f5;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh}
.login-shell{width:min(100% - 32px,420px);margin:0 auto;padding:clamp(28px,7vh,64px) 0 32px}
.brand{display:flex;align-items:center;gap:12px;margin-bottom:24px;color:#173a37;font-size:20px;font-weight:750;letter-spacing:-.04em}
.brand-mark{display:grid;place-items:center;width:42px;height:42px;flex:none;color:#14212b;background:transparent}.brand-mark svg{display:block;width:100%;height:100%}
.login-card{padding:28px;border:1px solid #c7d6d0;border-radius:16px;background:white}
h1{font-size:25px;line-height:1.3;margin:0;color:#172f2b}
.intro{margin:8px 0 20px;color:#526b63;line-height:1.6;font-size:14px}
form{display:grid;gap:8px}
label{font-size:14px;font-weight:650;color:#304640}
input{width:100%;height:44px;padding:0 12px;border:1px solid #718c82;border-radius:8px;background:#fff;color:#18342e;font:inherit;font-size:16px;margin-bottom:8px}
:is(input,button,a):focus-visible{outline:3px solid #176e5e;outline-offset:3px}
button{margin-top:8px;min-height:44px;border:0;border-radius:8px;background:#176e5e;color:white;font:inherit;font-weight:700;cursor:pointer}
button:hover{background:#125848}
button:disabled{opacity:.65;cursor:wait}
.message{margin:0;color:#aa3434;font-size:14px;line-height:1.5}
.entry-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;margin-top:16px}
.entry-links a{display:flex;align-items:center;min-height:44px;font-size:14px}
a{color:#176e5e;text-underline-offset:3px}
.footnote{text-align:center;color:#526b63;font-size:13px;line-height:1.6;margin-top:20px}
.footnote a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:480px){.login-card{padding:24px 20px}}

/* 同一表单的两个状态始终可见，不让注册变成离开当前页的链接。 */
.auth-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;margin:0 0 20px;border:1px solid #718c82;border-radius:10px;background:#f3f7f5}
.auth-modes button{margin:0;background:transparent;color:#304640;min-height:44px;font-weight:600}
.auth-modes button[aria-pressed=true]{background:#176e5e;color:#fff}
.auth-modes button:hover{background:#e1ebe5;color:#173a37}
.auth-modes button[aria-pressed=true]:hover{background:#125848;color:#fff}
.field-hint,.file-notice{margin:0;color:#526b63;font-size:13px;line-height:1.6}
.file-notice{padding-top:12px;border-top:1px solid #c7d6d0}
.file-notice a{display:inline-flex;align-items:center;min-height:44px}
