/* css/auth.css — styles for register / login / forgot / reset pages
   Reuses the existing --bg, --card, --border, --text, --muted, --primary,
   --secondary variables and the hero glow / card language already defined
   in css/style.css, so these pages feel native to the rest of the site. */

.auth-section {
  position: relative;
  padding: 100px 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.auth-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.30), transparent 70%);
  top: -200px;
  right: -150px;
  z-index: -1;
}

.auth-wrap {
  width: min(440px, 92%);
  margin-inline: auto;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: 0.2s ease;
}

.auth-field input:focus {
  border-color: var(--primary);
}

.auth-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.auth-submit {
  margin-top: 8px;
  width: 100%;
  border: none;
  cursor: pointer;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: 0.3s ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
}

.auth-links {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-links a:hover {
  color: var(--text);
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.auth-alert.success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  color: #86efac;
}

.auth-alert.error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
}

.auth-errors {
  margin: 0 0 16px 18px;
  padding: 0;
  font-size: 0.85rem;
  color: #fca5a5;
}

.g-recaptcha {
  margin-top: 4px;
}

/* Honeypot: off-screen rather than display:none/visibility:hidden,
   since some bots specifically skip fields hidden that way. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 28px;
  }
}

.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.alert-error {
    background: #ffe5e5;
    color: #c0392b;
    border: 1px solid #ffb3b3;
}

.alert-success {
    background: #e7f9ed;
    color: #1e7e34;
    border: 1px solid #b7ebc6;
}

input:-webkit-autofill {
    transition: background-color 9999s ease-in-out 0s;
    -webkit-text-fill-color:white !important;
}