:root {
  --gold: #e7b52f;
  --gold-bright: #f6d76b;
  --gold-deep: #c99010;
  --page: #f7f7f5;
  --panel: rgba(255, 255, 255, 0.86);
  --text: #1d1d1f;
  --muted: #86868b;
  --line: #d2d2d7;
  --danger: #c7372f;
  --success: #2f7d4f;
  --shadow: 0 24px 80px rgba(29, 29, 31, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 12%, rgba(246, 215, 107, 0.18), transparent 34%),
    linear-gradient(180deg, #fbfbfa 0%, var(--page) 100%);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 64px;
}

.login-card {
  width: 448px;
  padding: 44px;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  text-align: center;
}

.brand-logo {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 22px;
  object-fit: contain;
  border-radius: 8px;
}

.login-card h1,
.welcome h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.16;
}

.subtitle,
.welcome p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.status-message {
  margin-top: 22px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 14px;
}

.status-message.error {
  color: var(--danger);
  background: rgba(199, 55, 47, 0.08);
}

.status-message.success {
  color: var(--success);
  background: rgba(47, 125, 79, 0.08);
}

.login-form {
  margin-top: 26px;
  text-align: left;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  color: #3f3f45;
  font-size: 13px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 181, 47, 0.18);
  background: #fff;
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-deep);
}

.link-button,
.ghost-button {
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
}

.primary-button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #1d1d1f;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 24px rgba(201, 144, 16, 0.24);
  cursor: pointer;
  font-weight: 650;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.03);
  box-shadow: 0 12px 30px rgba(201, 144, 16, 0.28);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button.is-loading {
  color: rgba(29, 29, 31, 0.62);
  cursor: wait;
}

.system-hint {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 44px;
  min-width: 260px;
  padding: 14px 18px;
  border: 1px solid rgba(210, 210, 215, 0.8);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 54px rgba(29, 29, 31, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.home-brand img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-pill {
  padding: 9px 14px;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 999px;
  color: #3f3f45;
  background: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.ghost-button {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(201, 144, 16, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.home-shell {
  width: 1040px;
  margin: 86px auto 0;
}

.welcome {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 650;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 46px;
}

.app-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(29, 29, 31, 0.07);
  color: var(--text);
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 181, 47, 0.62);
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.10);
}

.app-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #1d1d1f;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-weight: 700;
}

.app-name,
.app-desc,
.app-enter {
  display: block;
}

.app-name {
  margin-top: 28px;
  font-size: 17px;
  font-weight: 650;
}

.app-desc {
  min-height: 44px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.app-enter {
  margin-top: 18px;
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 650;
}

.page-footer {
  margin-top: 76px;
  padding-bottom: 32px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
