:root {
    color-scheme: light;
    --bg: #f8f9fa; --surface: #ffffff; --text: #1f2329; --text-secondary: #5c636e;
    --border: #e4e7ec; --accent: #1677ff; --accent-strong: #0958d9;
    --danger: #d92d20; --success: #067647;
    --radius-card: 16px; --radius-input: 10px;
    --font-ui: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: var(--bg); color: var(--text);
    font-family: var(--font-ui); font-size: 14px; line-height: 1.5;
  }
  .panel {
    width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); box-shadow: 0 10px 26px rgba(16, 24, 40, .09);
    padding: 32px 28px;
  }
  .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
  .brand-mark {
    width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  }
  h1 { font-size: 18px; margin: 0 0 4px; }
  p.sub { margin: 0; color: var(--text-secondary); }
  label { display: block; font-weight: 600; margin: 16px 0 6px; }
  input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-input);
    background: #fff; color: var(--text); font: inherit; outline: none;
  }
  input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22, 119, 255, .14); }
  .row { display: flex; gap: 8px; }
  .row input { flex: 1; }
  .btn {
    border: 1px solid transparent; border-radius: var(--radius-input); padding: 10px 14px;
    font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-strong); }
  .btn-secondary { background: #fff; color: var(--accent-strong); border-color: #b2ddff; }
  .btn:disabled { opacity: .55; cursor: not-allowed; }
  .btn-block { width: 100%; margin-top: 22px; padding: 11px 14px; }
  .msg { margin-top: 14px; min-height: 20px; color: var(--text-secondary); }
  .msg.error { color: var(--danger); }
  .msg.ok { color: var(--success); }
  .foot { margin-top: 18px; text-align: center; color: var(--text-secondary); }
  .foot a { color: var(--accent); text-decoration: none; }

.hint {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}
