/* ===== INPUTS MODERNOS Y SELECTOR DE ROL ===== */
.input-group {
  position: relative;
  margin-bottom: 1.3rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.9rem;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 0.7rem 1.6rem 0.7rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border 0.2s;
  box-shadow: 0 2px 5px 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: 12px;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 1rem;
  box-shadow: 0 10px 22px rgba(0, 51, 102, 0.16);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
#loginBtn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 51, 102, 0.18);
}

.btn-guest {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background-color: #f8fafc;
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.btn-guest:hover {
  background-color: #eef4fb;
  border-color: rgba(0, 51, 102, 0.16);
  transform: translateY(-1px);
}

.input-group input[type="password"] {
  letter-spacing: 0.3em;
  font-family: 'Arial', sans-serif;
  font-size: 1.2rem;
  -webkit-text-security: disc;
}

.input-group input[type="password"]::placeholder {
  letter-spacing: normal;
  font-size: 0.9rem;
  -webkit-text-security: none;
}
/* ===== 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: #0f172a;
  --text-light: #4b5563;
  --bg-light: #f3f7fb;
  --google-blue: #003366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #eef5fb 0%, #ffffff 100%);
  color: var(--text-dark);
}

/* ===== CONTENEDOR LOGIN ===== */
.login-container {
  display: flex;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  padding: 0;
}

/* ===== SECCIÓN INFORMACIÓN ===== */
.login-info {
  flex: 0 0 45%;
  background: #003366;
  color: white;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  border-right: 3px solid #9CA3AF;
  position: relative;
}

.login-info::before {
  content: none;
}

.info-content {
  text-align: center;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 3rem;
}

.portada-card {
  width: 100%;
  max-width: 560px;
  height: 220px;
  margin: 0 auto 1rem;
  background: url('../imajenes/portada pagina.jpg') center/cover no-repeat;
  border-radius: 14px;
  border: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.mission-vision-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.info-content .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.9rem;
  height: 122px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  margin-top: 0;
}

.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: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}
.info-content .vision {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
}
.info-content .card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.info-content .card p {
  font-size: 0.78rem;
  line-height: 1.35;
}

.divider {
  width: 60px;
  height: 3px;
  background: #9CA3AF;
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ===== SECCIÓN FORMULARIO ===== */
.login-form-section {
  flex: 0 0 55%;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.86));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-left: 3px solid #9CA3AF;
  position: relative;
}

.login-form-section::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  background: url('../imajenes/Logo.jpeg') center center / contain no-repeat;
  left: calc(50% - 220px);
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.login-form {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)), url('../imajenes/Logo.jpeg') center center / 340px auto no-repeat;
  backdrop-filter: blur(3px);
  padding: 1.6rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.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: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.login-subtitle {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

/* ===== 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;
}

.logo-footer p {
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    height: 100svh;
    overflow: hidden;
  }

  .login-info {
    display: none;
  }

  .login-form-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.84));
    border-left: none;
    min-height: 100svh;
    padding: 1rem 1rem 2.1rem;
  }

  .login-form-section::before {
    width: 330px;
    height: 330px;
    left: 50%;
    top: 45%;
    opacity: 0.26;
  }

  .login-form {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)), url('../imajenes/Logo.jpeg') center center / 320px auto no-repeat;
    backdrop-filter: blur(3px);
    padding: 1.25rem;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    margin: 0 auto;
  }

  .login-form h2 {
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
  }

  .login-subtitle {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  .input-group {
    margin-bottom: 0.75rem;
  }

  .input-group label {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .input-group input,
  .input-group select {
    padding: 0.72rem 1.2rem;
    font-size: 0.9rem;
  }

  #loginBtn {
    padding: 0.78rem;
    font-size: 0.94rem;
    margin-bottom: 0.7rem;
  }

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

  .btn-google,
  .btn-guest {
    padding: 0.78rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .login-form h2,
  .login-subtitle {
    color: var(--text-dark);
  }

  .logo-footer {
    position: absolute;
    bottom: 0.35rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #003366;
    font-size: 0.72rem;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .login-form-section {
    padding: 0.65rem 0.85rem 1.7rem;
  }

  .login-form-section::before {
    width: 290px;
    height: 290px;
    top: 35%;
  }

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

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

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

  .input-group {
    margin-bottom: 0.62rem;
  }

  .input-group label {
    font-size: 0.9rem;
  }

  .input-group input,
  .input-group select {
    padding: 0.65rem 1.1rem;
    font-size: 0.86rem;
  }

  #loginBtn {
    padding: 0.68rem;
    font-size: 0.9rem;
  }

  .btn-google,
  .btn-guest {
    padding: 0.68rem;
    font-size: 0.86rem;
  }

  .divider-text {
    margin: 0.7rem 0;
  }

  .divider-text span {
    font-size: 0.85rem;
  }

  .footer-note {
    font-size: 0.66rem;
    padding-top: 0.55rem;
    margin-top: 0.55rem;
  }

  .logo-footer {
    font-size: 0.66rem;
  }
}
