:root {
  --brand: #06b6d4;
  --brand-2: #3b82f6;
  --brand-dark: #0284c7;
  --ink: #e2e8f0;
  --ink-muted: #94a3b8;
  --line: rgba(56, 189, 248, 0.22);
  --bg: #070b14;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6, 182, 212, 0.18), transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 90%, rgba(59, 130, 246, 0.14), transparent 60%),
    linear-gradient(rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrap { width: 100%; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(13, 20, 36, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 32px 28px 24px;
}
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.title {
  font-size: 20px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(90deg, #f8fafc, #67e8f9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px; color: var(--brand); letter-spacing: .8px; margin-top: 3px;
}
.login-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; }
.field input {
  height: 44px; padding: 0 14px; font-size: 15px;
  background: rgba(7, 11, 20, 0.85); color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #475569; }
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}
.error {
  font-size: 13px; color: #fda4af; background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.35); border-radius: 8px; padding: 8px 10px;
}
.btn {
  height: 46px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 3px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; }
.hint { font-size: 12px; color: #64748b; line-height: 1.5; }
.switch-line { font-size: 13px; text-align: center; }
.switch-line a { color: var(--brand); text-decoration: none; }
.switch-line a:hover { text-decoration: underline; }
.foot { margin-top: 20px; font-size: 11.5px; color: #475569; text-align: center; letter-spacing: .5px; }
