/* ===== AUTH PAGE LAYOUT ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Minimal header just for auth pages */
.auth-header {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(247,244,239,0.95);
}
.auth-header .wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.auth-header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Auth card container */
.auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.auth-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-card-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card-logo-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.auth-card-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.auth-card .subtitle {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,92,92,0.1);
  background: #fff;
}
.form-input.error { border-color: #d9534f; }
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  outline: none;
}
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13,92,92,0.1); }

.field-error {
  font-size: 0.78rem;
  color: #d9534f;
  margin-top: 6px;
  display: none;
}
.field-error.visible { display: block; }

/* General error banner */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 20px;
  display: none;
}
.alert.visible { display: block; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* Buttons */
.btn-full { width: 100%; padding: 14px 24px; font-size: 0.9rem; border-radius: var(--radius-sm); border: none; cursor: pointer; font-weight: 600; font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.2s; }
.btn-primary-full { background: var(--accent); color: #fff; }
.btn-primary-full:hover { background: #0a4f4f; }
.btn-primary-full:disabled { opacity: 0.6; cursor: not-allowed; }

/* Google button */
.btn-google {
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.btn-google:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); border-color: #ccc; }
.btn-google svg { width: 18px; height: 18px; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--fg-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Links below form */
.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 6px;
}
.forgot-link:hover { color: var(--accent); }

/* Loading state */
.btn-loading { position: relative; }
.btn-loading::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Mobile */
@media (max-width: 480px) {
  .auth-card { padding: 32px 24px; }
  .auth-body { padding: 32px 16px; }
}