/* =========================================================
   Auth pages — login, verify, magic link
   ========================================================= */

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #0a3f56;
}

/* Full-page centering */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(160deg, #0a3f56 0%, #0d4e6a 45%, #005a5d 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles for depth */
.auth-container::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(0,121,124,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.auth-container::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  background: rgba(0,190,87,0.10);
  border-radius: 50%;
  pointer-events: none;
}

/* Card */
.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Logo */
.auth-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Fallback if SVG missing — show text brand */
.auth-logo[src=""] {
  display: none;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a3f56;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  font-family: 'Gelasio', Georgia, serif;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-subtitle strong {
  color: #374151;
  font-weight: 600;
}

/* Form groups */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #111827;
  background: #fafafa;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: #00797c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 121, 124, 0.15);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* OTP code input — bigger */
input[inputmode="numeric"] {
  font-size: 1.75rem;
  letter-spacing: 0.5rem;
  text-align: center;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #0a3f56;
}

/* Full-width button */
.btn-full {
  width: 100%;
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn-full.btn-primary {
  background: linear-gradient(135deg, #00797c, #0a3f56);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 121, 124, 0.35);
  font-size: 1.0625rem;
  padding: 0.875rem 1rem;
}

.btn-full.btn-primary:hover {
  background: linear-gradient(135deg, #005a5d, #082f42);
  box-shadow: 0 4px 16px rgba(0, 121, 124, 0.45);
  transform: translateY(-1px);
}

.btn-full.btn-primary:active {
  transform: translateY(0);
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  text-align: left;
  font-weight: 500;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* Footer link */
.auth-footer {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #6b7280;
}

.auth-footer a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

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

/* Hide main nav on auth pages */
body.auth-page .main-nav {
  display: none;
}
