:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface2: #27272a;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #0ea5e9;
  --primary-hover: #38bdf8;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.auth-card--wide { max-width: 440px; }

.label-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11px;
}

.consent-block {
  margin: 4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  cursor: pointer;
}

.consent-row input {
  width: auto;
  margin: 2px 0 0;
  flex-shrink: 0;
}

.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { max-height: 48px; width: auto; }

h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 8px;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  margin-bottom: 14px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  margin-top: 10px;
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  margin: 18px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.msg {
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.msg.err { color: var(--danger); }
.msg.ok { color: var(--success); }

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.auth-links a:hover { text-decoration: underline; }

.info-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
