:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --border: #e3e6eb;
  --text: #1a1d24;
  --muted: #6b7280;
  --accent: #0f6b52;
  --accent-soft: #e6f3ee;
  --danger: #c0392b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.auth-card .logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.auth-card .logo img {
  width: 22px;
  height: 22px;
}
.auth-card h1 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.auth-card p.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 16px;
}
input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #0c5842; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: 10px; }
.status { margin-top: 14px; font-size: 13px; text-align: center; }
.status.ok { color: var(--accent); }
.status.err { color: var(--danger); }
.foot-link { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.foot-link a { color: var(--accent); text-decoration: none; font-weight: 600; }
.toggle-link { text-align: center; margin-top: 6px; font-size: 13px; }
.toggle-link a { color: var(--muted); text-decoration: underline; cursor: pointer; }
