:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0 16px;
  background: #f6f7fb;
  color: #111;
}

.auth-shell {
  max-width: 420px;
  margin: 48px auto;
  display: grid;
  gap: 20px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

.auth-lede {
  color: #444;
  margin: 6px 0 0;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form--secondary {
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.auth-label {
  font-weight: 600;
  font-size: 14px;
  color: #1f2937;
}

input,
button {
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
}

input {
  border: 1px solid #d1d5db;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

button {
  border: none;
  background: linear-gradient(120deg, #4f46e5, #6366f1);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.3);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35);
}

button:active {
  transform: translateY(0);
}

.auth-link-btn {
  background: transparent;
  color: #4f46e5;
  box-shadow: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.auth-link-btn:hover {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}

small {
  color: #6b7280;
}

.auth-message {
  min-height: 20px;
  color: #111827;
}

.auth-message.error {
  color: #b91c1c;
}

.auth-message.success {
  color: #0f766e;
}

.magic-link-availability {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 14px;
  border-radius: 12px;
  display: grid;
  gap: 6px;
}

.magic-link-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}

.status-chip.enabled {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.status-chip.disabled {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.status-chip.restricted {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid #e0e7ff;
}

.auth-hint {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.is-hidden {
  display: none !important;
}
