/* ===== INPUTS MODERNOS Y SELECTOR DE ROL ===== */
.input-group {
  position: relative;
  margin-bottom: 1.3rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
  font-weight: 500;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.9rem 2.5rem 0.9rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
}

.input-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill=\'gray\' height=\'20\' viewBox=\'0 0 20 20\' width=\'20\' xmlns=\'http://www.w3.org/2000/svg\'><path d=\'M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z\'/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
}

/* ===== ÍCONOS EN INPUTS ===== */
.input-group input[type="text"],
.input-group input[type="password"] {
  padding-left: 2.5rem;
}

.input-group .input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-light);
  pointer-events: none;
}

/* ===== BOTÓN INGRESAR ===== */
#loginBtn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.9rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(30,64,175,0.08);
  transition: background 0.2s, transform 0.2s;
}
#loginBtn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== CONTRASEÑA Y USUARIO PLACEHOLDER ===== */
.input-group input::placeholder {
  color: #b0b8c9;
  opacity: 1;
}
/* ===== ESTILOS GLOBALES - PALETA: Blanco, Gris Plateado, Azul Oscuro, Negro ===== */
:root {
  --primary: #003366;
  --primary-dark: #001a33;
  --secondary: #9CA3AF;
  --success: #9CA3AF;
  --light: #ffffff;
  --border: #9CA3AF;
  --text-dark: #000000;
  --text-light: #666666;
  --google-blue: #003366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
}

/* ===== CONTENEDOR LOGIN ===== */
.login-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SECCIÓN INFORMACIÓN ===== */
.login-info {
  flex: 1;
  background: #003366;
  color: white;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 2rem 2rem;
  border-right: 3px solid #9CA3AF;
  position: relative;
}

.login-info::before {
  content: none;
}

.info-content {
  text-align: center;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: calc(4rem + 3%);
}

.portada-card {
  width: 100%;
  max-width: 780px;
  height: 300px;
  margin: calc(-20px + 3%) auto 1rem;
  background: url('../imajenes/portada pagina.jpg') center/cover no-repeat;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mission-vision-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: calc(20px + 3%);
}

.info-content .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  margin-top: 20px;
}

.info-content .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.info-content .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.38));
  z-index: 0;
}
.info-content .card h2, .info-content .card p {
  position: relative;
  z-index: 1;
  color: #ffffff;
}
.info-content .mission {
  background: url('../imajenes/fondo-mision.jpg') center/cover no-repeat;
}
.info-content .vision {
  background: url('../imajenes/fondo-vision.jpg') center/cover no-repeat;
}
.info-content .card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.info-content .card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.divider {
  width: 60px;
  height: 3px;
  background: #9CA3AF;
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ===== SECCIÓN FORMULARIO ===== */
.login-form-section {
  flex: 1;
  background: url('../imajenes/Logo.jpeg') center/calc(50% + 400px) no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-left: 3px solid #9CA3AF;
  position: relative;
}

.login-form {
  width: 35%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin: 0 auto;
}

.login-form-banner {
  text-align: center;
  margin-bottom: 1.1rem;
}

.login-form-banner img {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.login-form h2 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.login-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ===== BOTÓN GOOGLE ===== */
.btn-google {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
  background: var(--light);
  border-color: var(--google-blue);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
  transform: translateY(-2px);
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google svg {
  width: 20px;
  height: 20px;
  color: var(--google-blue);
}

/* ===== DIVIDER ===== */
.divider-text {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-light);
}

.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-text span {
  padding: 0 1rem;
  font-size: 0.9rem;
}

/* ===== NOTA DE INVITADO ===== */
.guest-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.guest-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.guest-note a:hover {
  color: var(--primary-dark);
}

/* ===== FOOTER NOTE ===== */
.footer-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.logo-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #003366;
  border-top: 3px solid #9CA3AF;
  margin: 0;
  padding: 12px 20px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.9rem;
  z-index: 1000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: auto;
  }

  .login-info {
    display: none;
  }

  .login-form-section {
    background: url('../imajenes/Logo.jpeg') center/calc(50% + 300px) no-repeat;
    border-left: none;
    min-height: 100vh;
    padding: 1.5rem;
  }

  .login-form {
    width: 80%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin: 0 auto;
  }

  .login-form h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .input-group {
    margin-bottom: 1.1rem;
  }

  .input-group label {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
  }

  .input-group input,
  .input-group select {
    padding: 0.8rem 2rem 0.8rem 2rem;
    font-size: 0.95rem;
  }

  #loginBtn {
    padding: 0.8rem;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .divider-text {
    margin: 1.5rem 0;
  }

  .btn-google {
    padding: 0.9rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .btn-guest {
    padding: 0.9rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .login-form h2,
  .login-subtitle {
    color: #003366;
  }
}

@media (max-width: 480px) {
  .login-form-section {
    padding: 1rem;
  }

  .login-form {
    padding: 1.2rem;
    max-width: 100%;
  }

  .login-form h2 {
    font-size: 1.6rem;
  }

  .login-subtitle {
    font-size: 0.85rem;
  }

  .input-group {
    margin-bottom: 1rem;
  }

  .input-group label {
    font-size: 0.9rem;
  }

  .input-group input,
  .input-group select {
    padding: 0.75rem 1.8rem 0.75rem 1.8rem;
    font-size: 0.9rem;
  }

  #loginBtn {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .btn-google,
  .btn-guest {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .divider-text span {
    font-size: 0.85rem;
  }

  .login-footer small {
    font-size: 0.8rem;
  }
}
