/* ============================================================
   SALONIQA — Auth Page Styles
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink) 0%, #2a2a2a 100%);
  cursor: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-page .custom-cursor { display: none; }

.auth-container {
  width: 100%;
  max-width: 440px;
  padding: 24px;
}

.auth-box {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-header .logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.auth-header .logo span { color: var(--gold); }

.auth-header p {
  color: #888;
  font-size: 14px;
}

.auth-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
}

.auth-toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.auth-toggle-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.active { display: flex; }

.auth-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.auth-form .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.auth-form .form-group input:focus {
  border-color: var(--gold);
}

.auth-form .btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}

.auth-form .btn-primary:hover { background: var(--gold-dark); }

.auth-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-error-msg {
  display: none;
  background: #f8d7da;
  color: #721c24;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.auth-error-msg.visible { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #888;
}

.auth-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

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

.auth-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .auth-box { padding: 32px 24px; }
  .auth-header .logo { font-size: 24px; }
}

/* ── Password reset / forgot (Phase 7) ──────── */
.auth-success-msg {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}
.auth-success-msg.visible { display: block; }
.auth-form-intro { font-size: 13px; color: #777; margin-bottom: 16px; line-height: 1.5; }
.auth-link-row { text-align: center; margin-top: 14px; font-size: 13px; }
.auth-link-row a { color: var(--gold); text-decoration: none; }
.auth-link-row a:hover { text-decoration: underline; }
