:root { color-scheme: dark; --bg: #09090a; --card: #111113; --line: #2b2b2e; --ink: #f4f1ed; --muted: #8b888e; --accent: #ef5a43; --accent2: #ff355d; }
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; }
button, input { font: inherit; }
.login-shell { position: relative; display: grid; min-height: 100dvh; place-items: center; overflow: hidden; padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.login-shell::before { position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(239,90,67,.16), transparent 65%); content: ""; transform: translate(-42%, -48%); }
.login-card { position: relative; z-index: 2; width: min(100%, 430px); padding: 28px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: rgba(17,17,19,.94); box-shadow: 0 28px 90px rgba(0,0,0,.46); backdrop-filter: blur(20px); }
.login-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-brand a { color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: .04em; text-decoration: none; }
.login-brand a i { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 16px rgba(255,53,93,.7); }
.login-brand > span, .eyebrow { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.login-copy { margin: 52px 0 30px; }
.login-copy .eyebrow { margin: 0 0 10px; }
.login-copy h1 { margin: 0; font: 700 38px/1.15 Georgia, "Songti SC", serif; letter-spacing: -.02em; }
.login-copy > p:last-child { margin: 11px 0 0; color: var(--muted); font-size: 14px; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; }
label > span:first-child { color: #c8c4c0; font-size: 12px; font-weight: 750; }
input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #19191c; color: var(--ink); transition: border-color .18s, box-shadow .18s; }
input:focus { border-color: rgba(239,90,67,.85); box-shadow: 0 0 0 4px rgba(239,90,67,.1); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 66px; }
.password-field button { position: absolute; top: 7px; right: 7px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.password-field button:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.login-error { min-height: 18px; margin-top: -4px; color: #ff9b8c; font-size: 12px; line-height: 1.5; }
.login-submit { display: flex; height: 54px; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--accent), #e34259); color: white; font-weight: 850; cursor: pointer; box-shadow: 0 12px 28px rgba(239,90,67,.2); }
.login-submit:hover { filter: brightness(1.05); }
.login-submit:disabled { cursor: wait; opacity: .72; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.login-submit.loading .button-spinner { display: block; }
.login-submit.loading .button-label::after { content: "中…"; }
.login-submit.loading .button-label { font-size: 0; }
.login-submit.loading .button-label::before { content: "登录"; font-size: 14px; }
.login-card footer { display: flex; align-items: center; gap: 7px; margin-top: 25px; color: #66636a; font-size: 10px; }
.secure-dot { width: 6px; height: 6px; border-radius: 50%; background: #52c58b; box-shadow: 0 0 0 4px rgba(82,197,139,.08); }
.login-atmosphere { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 900px) {
  .login-shell { grid-template-columns: minmax(430px, 520px) 360px; gap: 90px; }
  .login-card { width: 430px; }
  .login-atmosphere { position: relative; display: block; width: 340px; height: 440px; }
  .login-atmosphere > span { position: absolute; color: rgba(255,255,255,.16); font-size: 10px; font-weight: 850; letter-spacing: .22em; }
  .login-atmosphere > span:nth-child(1) { top: 30px; right: 44px; }
  .login-atmosphere > span:nth-child(2) { top: 186px; left: 6px; }
  .login-atmosphere > span:nth-child(3) { right: 0; bottom: 55px; }
  .login-atmosphere div { position: absolute; inset: 66px 24px 30px 38px; display: grid; grid-template-columns: 1fr 1fr; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 42% 58% 56% 44% / 52% 40% 60% 48%; background: linear-gradient(150deg, rgba(239,90,67,.18), rgba(255,53,93,.04)); transform: rotate(-7deg); }
  .login-atmosphere b { font: 700 88px/1 Georgia, "Songti SC", serif; color: rgba(255,255,255,.9); transform: rotate(7deg); text-shadow: 0 20px 45px rgba(0,0,0,.45); }
  .login-atmosphere b + b { color: var(--accent); }
}
@media (max-width: 480px) {
  .login-card { padding: 23px 20px; border-radius: 20px; }
  .login-copy { margin: 42px 0 27px; }
  .login-copy h1 { font-size: 34px; }
  .login-brand > span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; } }
