/* ============================================================================
   Estilos compartidos por /registro, /login, /recuperar, /reset-password.
   Reutiliza las variables y la estética glassmorphic del style.css base.
   ============================================================================ */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  position: relative;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

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

.auth-header .badge-gold {
  margin-bottom: 16px;
}

.auth-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

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

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-field input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 16px;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 12px;
  background: var(--surface-sunken);
  color: var(--text-main);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  width: 100%;
}

/* Toggle ver/ocultar contraseña */
.pw-wrap { position: relative; width: 100%; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}
.pw-toggle:hover { color: var(--pink-hot); background: rgba(255, 0, 127, 0.06); }
.pw-toggle i { font-size: 1.3rem; }

.auth-field input::placeholder {
  color: rgba(138, 90, 106, 0.5);
}

.auth-field input:focus {
  border-color: var(--gold);
  background: var(--surface-sunken);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.auth-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-field .field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.auth-error,
.auth-success {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  display: none;
}

.auth-error {
  background: rgba(255, 0, 127, 0.08);
  border: 1px solid rgba(255, 0, 127, 0.25);
  color: #c1004f;
  margin-bottom: 4px;
}

.auth-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #2e7d32;
  margin-top: 12px;
  text-align: center;
}

.auth-error.visible,
.auth-success.visible {
  display: block;
}

.auth-submit {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: #3e2704;
  padding: 15px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  margin-top: 10px;
  width: 100%;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
  background-position: right center;
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.auth-links {
  margin-top: 22px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--pink-hot);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-links a:hover {
  opacity: 0.75;
}

.auth-secondary-link {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.auth-back:hover {
  color: var(--pink-hot);
}

.auth-back i {
  font-size: 1.1rem;
}

/* Pantalla de "te enviamos un email" */
.auth-postcard {
  text-align: center;
  padding: 20px 0;
}

.auth-postcard .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.auth-postcard .icon-circle i {
  font-size: 2.5rem;
  color: #fff;
}

.auth-postcard h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.auth-postcard p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.auth-postcard strong {
  color: var(--text-main);
  font-weight: 600;
}

@media (max-width: 540px) {
  .auth-card {
    padding: 36px 26px 28px;
    border-radius: 20px;
  }
  .auth-header h1 {
    font-size: 1.65rem;
  }
  .auth-row {
    grid-template-columns: 1fr;
  }
  .auth-page {
    padding: 30px 14px;
  }
}
