/* public/css/auth.css */
/* Estilos para login.html y registro.html. */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg);
}

/* === COLUMNA IZQUIERDA (branding) === */
.auth-brand {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(201, 168, 124, 0.1);
  top: -100px;
  right: -100px;
}

.auth-brand::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(201, 168, 124, 0.08);
  bottom: -80px;
  left: -80px;
}

.auth-brand__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.auth-brand__logo {
  width: 120px;
  margin: 0 auto 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.auth-brand__title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.auth-brand__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-brand__features {
  list-style: none;
  margin-top: 2.5rem;
  text-align: left;
}

.auth-brand__features li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.auth-brand__features li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* === COLUMNA DERECHA (formulario) === */
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form__header {
  margin-bottom: 2rem;
}

.auth-form__title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.auth-form__subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

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

.auth-form__footer a {
  color: var(--color-accent-dark);
  font-weight: 600;
}

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

.auth-form__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.auth-form__back:hover {
  color: var(--color-primary);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 2rem 1.5rem;
    min-height: 280px;
  }

  .auth-brand__title {
    font-size: 2rem;
  }

  .auth-brand__features {
    display: none;
  }

  .auth-form-wrap {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .auth-brand__logo {
    width: 80px;
  }

  .auth-brand__title {
    font-size: 1.6rem;
  }

  .auth-form__title {
    font-size: 1.6rem;
  }
}