/* ---------- Login / reset-password pages ---------- */
.auth-page{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
}

.auth-box{
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  animation: fadeInUp .5s ease both;
}

.logo-hover-target{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto 24px;
  cursor: pointer;
}

.auth-logo{
  height: clamp(2.6rem, 7vw, 3.4rem);
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.auth-subtitle{
  font-family: "slight-chance", sans-serif;
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--red-glow);
  text-shadow: 0 0 14px rgba(255,74,61,0.35);
  transition: color .3s ease, text-shadow .3s ease;
}

.auth-logo-light{ display: none; }

html[data-theme="light"] .auth-logo-dark{ display: none; }
html[data-theme="light"] .auth-logo-light{
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.auth-title{
  font-family: "slight-chance", sans-serif;
  font-size: 1.3rem;
  margin: 0 0 24px;
  color: var(--text);
}

.auth-apply-sub{
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -12px 0 20px;
  line-height: 1.5;
}

.auth-consent{
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

#authForm,
#resetForm,
#applyForm{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input{
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.auth-input:focus{
  outline: none;
  border-color: var(--red);
}

.auth-submit{
  width: 100%;
  margin-top: 4px;
  padding: 11px 18px;
}

.auth-error{
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--red-glow);
}

.auth-success{
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--tan);
}

.auth-forgot{
  display: inline-block;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s ease;
}

.auth-forgot:hover{
  color: var(--red-glow);
}
