/* nage-auth — corporate auth UI. Stripe/Linear-inspired declarative styling. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-soft: #78716c;
  --accent: #0a0a0a;
  --accent-hover: #262626;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
}
.brand-mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.brand-tag {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.form { display: flex; flex-direction: column; gap: 16px; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label > span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
label > small {
  font-size: 12px;
  color: var(--text-soft);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  font-family: var(--font);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

button {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
button.primary {
  background: var(--accent);
  color: white;
}
button.primary:hover { background: var(--accent-hover); }
button.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
button.secondary:hover { background: var(--bg); }

.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.alt {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.alt a:hover { text-decoration: underline; }

.info { margin: 0 0 24px; padding: 0; }
.info dt {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 16px;
}
.info dt:first-child { margin-top: 0; }
.info dd {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 15px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  margin-left: 4px;
}

.legal {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-soft);
}
.legal a { color: var(--text-muted); text-decoration: none; }
.legal a:hover { color: var(--accent); }
.legal span { margin: 0 8px; }
