/* --- Base general --- */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #f1f1f1;
  height: 100%;
  overflow-x: hidden;
}

/* --- Estructura principal --- */
.auth-page {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

/* --- Panel visual izquierdo --- */
.auth-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* --- Contenido dentro del panel visual --- */
.visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 2rem; 
}

.auth-logo {
  width: 420px; /* antes 160px */
  max-width: 85%;
  height: auto;
  margin-bottom: 1.2rem;
  filter: invert(1) brightness(1.2) contrast(1.1) drop-shadow(0 4px 8px rgba(255,255,255,0.3));
  animation: fadeIn 0.8s ease-in-out;
  transition: transform 0.3s ease;
}

.visual-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.visual-subtitle {
  font-size: 1rem;
  color: #ddd;
  opacity: 0.9;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* --- Panel derecho (formularios) --- */
.auth-panel {
  flex: 1;
  background: #0f0f0f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

/* --- Caja del formulario --- */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.04);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  backdrop-filter: blur(3px);
  display: none;
  animation: fadeIn 0.4s ease;
}

.auth-card.active {
  display: block;
}

/* --- Encabezado del formulario --- */
.auth-card header h2 {
  font-weight: 600;
  font-size: 1.4rem;
  color: #fff;
}

.auth-card header p {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* --- Inputs y labels --- */
.form-label {
  color: #ffff;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-control {
  background: #111;
  border: 1px solid #333;
  color: #fff;
  border-radius: 10px;
  transition: all 0.3s ease;
  padding: 0.65rem 0.9rem;
}

.form-control::placeholder {
  color: #666;
}

.form-control:focus {
  background: #151515;
  border-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.1);
  color: #ffff;
}

/* --- Botón principal --- */
.btn-submit {
  background: linear-gradient(90deg, #ffffff, #e4e4e4);
  color: #000;
  font-weight: 600;
  border: none;
  padding: 0.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #f7f7f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.08);
}

/* --- Mostrar contraseña --- */
.toggle-pass {
  border-color: #333 !important;
  color: #bbb;
  background: #111;
  border-radius: 0 10px 10px 0;
  transition: all 0.2s ease;
}

.toggle-pass:hover {
  background: #181818;
  color: #fff;
}

/* --- Enlaces secundarios --- */
a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: #ccc;
}

/* --- Animaciones --- */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* --- Responsivo --- */
@media (max-width: 992px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-visual {
    height: 35vh;
  }

  .auth-logo {
    width: 120px;
  }

  .visual-title {
    font-size: 1.7rem;
  }

  .visual-subtitle {
    font-size: 0.9rem;
  }

  .auth-panel {
    flex: none;
    height: auto;
    min-height: 65vh;
    padding: 2rem 1rem;
  }

  .auth-card {
    padding: 1.6rem;
  }
}

/* --- Extra pequeño (móviles angostos) --- */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.2rem;
    max-width: 95%;
  }

  .btn-submit {
    font-size: 0.9rem;
  }

  .visual-title {
    font-size: 1.4rem;
  }

  .visual-subtitle {
    font-size: 0.85rem;
  }
}
