:root {
  --claec-navy: #233452;
  --claec-navy-dark: #1a2740;
  --claec-gold: #ffc02e;
  --claec-gold-soft: rgba(255, 192, 46, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  list-style: none;
}

body {
  background: url("../img/logo/background_dashboard.png") no-repeat center
    center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- CONTENEDOR PRINCIPAL (main.container) --- */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1140px;
  margin: auto;
  padding: 30px 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  min-height: auto;
  flex-grow: 1;
}

/* --- COLUMNA DEL LOGIN (tarjeta + pie de página) --- */
/* La tarjeta mantiene el mismo tamaño generoso que el panel izquierdo;
   el pie de página se agrega debajo sin recortar la tarjeta. */
.login-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 520px;
  max-width: 520px;
}

/* Estilo general para todos los formularios */
form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 350px;
}

/* Títulos dentro de los formularios */
.form-box h1 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--claec-navy);
  font-weight: 700;
  text-align: center;
}

/* --- ASIDE (panel promocional / carrusel) --- */
.socials {
  flex: 0 0 520px;
  max-width: 520px;
  height: 580px;
  padding: 0;
  border-radius: 0;
  order: -1;
  align-self: flex-start;
  min-width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* el carrusel: ahora en tarjeta redondeada, a juego con el panel de login */
.socials-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.socials-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.socials-box img.active {
  opacity: 1;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: rgba(35, 52, 82, 0.6);
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel-control.prev {
  left: 10px;
}

.carousel-control.next {
  right: 10px;
}

.carousel-control:hover {
  background-color: var(--claec-navy);
}

/* --- ARTICLE --- */
article {
  width: 100%;
  flex: 0 0 580px;
  height: 580px;
  min-width: auto;
  min-height: auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  border-top: 4px solid var(--claec-gold);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.form-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #333;
  padding: 20px;
  transition: transform 0.4s ease-in-out;
}

.form-box.estudiante {
  transform: translateX(0%);
  z-index: 2;
}

.form-box.administracion {
  transform: translateX(100%);
  z-index: 1;
}

/* Cuando el container tiene la clase 'admin-active' */
.container.admin-active .form-box.estudiante {
  transform: translateX(
    -100%
  ); /* Mueve el formulario de estudiante a la izquierda, fuera de vista */
  z-index: 1;
}

.container.admin-active .form-box.administracion {
  transform: translateX(
    0%
  ); /* Mueve el formulario de administración a la vista */
  z-index: 2;
}

/* Ocultamos los elementos toggle-box y toggle-panel, ya no son necesarios para esta funcionalidad */
.toggle-box,
.toggle-panel {
  display: none !important;
}

/* Estilos de los inputs, botones, enlaces, etc. */
.input-box {
  position: relative;
  margin: 10px 0;
  width: 100%;
  max-width: 300px;
}

.input-box input {
  width: 100%;
  padding: 10px 15px;
  background: #eee;
  border-radius: 8px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 15px;
  color: #333;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input-box input:focus {
  border-color: var(--claec-navy);
  box-shadow: 0 0 0 3px var(--claec-gold-soft);
}

.input-box input::placeholder {
  color: #888;
  font-weight: 400;
}

.input-box i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--claec-navy);
}

.forgot-link {
  margin: 10px 0 20px;
  width: 100%;
  max-width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  font-size: 13.5px;
}

.forgot-link input[type="checkbox"] {
  margin-right: 5px;
  accent-color: var(--claec-navy);
}

.forgot-link label {
  color: #555;
  flex-shrink: 0;
  user-select: none;
}

.forgot-link a {
  color: var(--claec-navy);
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.forgot-link a:hover {
  color: var(--claec-gold);
  text-decoration: underline;
}

.btn {
  width: 100%;
  max-width: 250px;
  height: 40px;
  background: var(--claec-navy);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
  letter-spacing: 0.5px;
  transition:
    background 0.25s ease,
    transform 0.15s ease;
}

.btn:hover {
  background: var(--claec-navy-dark);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Estilo para el contenedor de los enlaces "Ingresar como..." debajo de los formularios */
.form-box > div {
  margin-top: 20px;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.form-box > div a {
  font-size: 14px;
  color: var(--claec-navy);
  text-decoration: none;
  display: inline-block;
}

.form-box > div a:hover {
  color: var(--claec-gold);
  text-decoration: underline;
}

.guias {
  display: flex;
  gap: 15px;
  width: 100%;
  justify-content: flex-start;
  padding-left: 10px;
}
.guias a {
  color: var(--claec-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
  padding: 10px 15px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-align: left;
  border-radius: 5px;
}

/* Efecto al pasar el mouse (hover) */
.guias a:hover {
  background-color: var(--claec-navy);
  color: var(--claec-gold);
  transform: translateY(-1px);
}

/* --- PIE DE PÁGINA DEBAJO DE LA TARJETA DE LOGIN --- */
.login-footer {
  flex: 0 0 auto;
  margin-top: 22px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-footer-text {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 16px;
}

.link-strong {
  color: var(--claec-navy);
  font-weight: 700;
  text-decoration: none;
}

.link-strong:hover {
  color: var(--claec-gold);
  text-decoration: underline;
}

.btn-outline {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 26px;
  border: 2px solid var(--claec-navy);
  border-radius: 30px;
  color: var(--claec-navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--claec-navy);
  color: #fff;
  transform: translateY(-1px);
}

.terms-link {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.login-footer-copy {
  font-size: 12px;
  color: #666;
}

/* --- MEDIA QUERIES PARA RESPONSIVIDAD DEL MAIN LOGIN --- */

@media (max-width: 1140px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 92%;
    padding: 20px 15px;
  }

  .socials,
  .login-column {
    flex: 0 0 auto;
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .socials,
  article {
    height: 480px;
  }

  .login-column {
    height: auto;
  }

  .login-footer {
    max-width: 100%;
  }
}
