/* Modern auth UI styles */
:root {
  --bg: #0b1224;
  --card: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #2563eb;
  --accent-2: #8b5cf6;
  --border: #1e293b;
  --error: #ef4444;
  --info: #2563eb;
  --shadow: 0 25px 80px rgba(0,0,0,0.45);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(120% 120% at 20% 20%, rgba(37, 99, 235, 0.16), transparent),
              radial-gradient(120% 120% at 80% 0%, rgba(139, 92, 246, 0.18), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page-shell {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow);
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-body {
  margin-top: 18px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 15px;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 14px;
  margin-bottom: 12px;
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #fecdd3;
}

.alert.info {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
  color: #bfdbfe;
}

.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .page-shell { padding: 32px 16px 40px; }
  .card { padding: 20px; }
  .card-head h1 { font-size: 22px; }
}


