:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #123b33;
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .14) 34%),
    linear-gradient(135deg, #edf4f1 0%, #f7f7f2 48%, #e7efec 100%);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(100%, 560px);
  padding: 42px 52px 34px;
  border: 1px solid rgba(28, 72, 61, .10);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 65px rgba(24, 58, 49, .12);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.login-seal {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #c8cfc7;
  border-radius: 50%;
  color: #123b33;
  background: #f6f1e7;
  font-family: KaiTi, STKaiti, serif;
  font-size: 29px;
  font-weight: 700;
}

.login-brand-title { font-size: 20px; font-weight: 800; letter-spacing: .08em; }
.login-brand-subtitle { margin-top: 4px; color: #a17657; font-size: 10px; letter-spacing: .18em; }
.login-kicker { color: #ba6b48; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-align: center; }
.login-kicker::before { content: ""; display: inline-block; width: 34px; height: 1px; margin: 0 12px 4px 0; background: #d67e5d; }
.login-heading { margin: 18px 0 12px; color: #0f3b32; font-family: KaiTi, STKaiti, serif; font-size: clamp(34px, 7vw, 47px); font-weight: 700; line-height: 1.12; text-align: center; }
.login-desc { margin: 0 auto 30px; color: #788b84; font-size: 14px; line-height: 1.8; text-align: center; }
.login-field { display: grid; gap: 9px; margin-top: 18px; color: #234a40; font-size: 14px; font-weight: 700; }
.login-field input { width: 100%; height: 58px; padding: 0 17px; border: 1px solid #d8e1dc; border-radius: 13px; outline: none; color: #133b33; background: #fff; font: inherit; font-size: 17px; transition: border-color .18s, box-shadow .18s; }
.login-field input:focus { border-color: #0b6655; box-shadow: 0 0 0 4px rgba(11, 102, 85, .10); }
.login-error { min-height: 24px; margin-top: 12px; color: #bc432e; font-size: 14px; font-weight: 700; }
.login-submit { width: 100%; height: 62px; margin-top: 9px; border: 0; border-radius: 13px; color: white; background: #063b31; box-shadow: 0 13px 25px rgba(6, 59, 49, .16); cursor: pointer; font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .04em; transition: transform .18s, background .18s; }
.login-submit:hover { background: #075646; transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.login-safety { margin: 26px 0 0; color: #98a79f; font-size: 12px; text-align: center; }
.login-safety::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #35a185; box-shadow: 0 0 0 4px rgba(53, 161, 133, .10); }
.login-divider { height: 1px; margin: 28px 0; background: #e5e9e6; }
.login-footer { color: #87968f; font-size: 12px; text-align: center; }
.workspace-loading { display: grid; min-height: 100vh; place-items: center; padding: 24px; text-align: center; }
.workspace-loading-card { width: min(100%, 360px); padding: 36px; border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(24,58,49,.10); }
.loading-dot { display: inline-block; width: 11px; height: 11px; margin-bottom: 16px; border-radius: 50%; background: #159277; box-shadow: 0 0 0 8px rgba(21,146,119,.10); animation: loginPulse 1.1s infinite ease-in-out; }
@keyframes loginPulse { 50% { transform: scale(.66); opacity: .55; } }

@media (max-width: 560px) {
  .login-shell { padding: 18px 12px; }
  .login-card { padding: 34px 25px 28px; border-radius: 22px; }
  .login-brand { margin-bottom: 27px; }
  .login-heading { font-size: 36px; }
}
