body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827, #020817);
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-wrapper {
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(9, 9, 11, 0.96);
  border-radius: 16px;
  padding: 22px 22px 18px 22px;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(31, 41, 55, 0.9);
  box-sizing: border-box;
  color: #e5e7eb;
}

/* Brand */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.auth-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #38bdf8, #4f46e5);
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
}

.auth-brand-title {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.auth-brand-subtitle {
  font-size: 11px;
  color: #6b7280;
}

/* Titles */

.auth-title {
  margin: 4px 0 4px 0;
  font-size: 22px;
  font-weight: 600;
  color: #eff6ff;
}

.auth-subtitle {
  margin: 0 0 14px 0;
  font-size: 12px;
  color: #9ca3af;
}

/* Labels & inputs */

.auth-form label {
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #9ca3af;
}

.auth-form input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #374151;
  background-color: #020817;
  color: #e5e7eb;
  font-size: 13px;
  box-sizing: border-box;
}

.auth-form input::placeholder {
  color: #6b7280;
}

.auth-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
}

/* Primary sign-in button */

.btn {
  margin-top: 14px;
  padding: 10px 10px;
  width: 100%;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.btn-primary {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  color: #f9fafb;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Alt buttons: OTP + Passkey */

.auth-alt-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-alt {
  width: 100%;
  padding: 8px 9px;
  border-radius: 999px;
  border: 1px solid #374151;
  background: #020817;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.06s ease;
}

.btn-alt .icon {
  font-size: 15px;
}

.btn-alt:hover {
  background-color: #111827;
  border-color: #2563eb;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.btn-alt:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.passkey-btn {
  border-color: #4f46e5;
}

.otp-btn {
  border-color: #2563eb;
}

/* Messages */

.auth-error,
.auth-success {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.auth-error {
  background-color: #7f1d1d;
  color: #fee2e2;
  border: 1px solid #b91c1c;
}

.auth-success {
  background-color: #065f46;
  color: #bbf7d0;
  border: 1px solid #10b981;
}

/* Meta */

.auth-meta {
  margin-top: 10px;
  font-size: 10px;
  color: #6b7280;
  text-align: center;
}

/* Responsive */

@media (max-width: 480px) {
  .auth-card {
    padding: 18px 14px 14px 14px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle {
    font-size: 11px;
  }

  .btn,
  .btn-alt {
    font-size: 12px;
  }
}
