/* ============================================
   PALETA SCHT
   ============================================ */
:root {
  --scht-azul: #0A2C5F;
  --scht-azul-oscuro: #061E42;
  --scht-celeste: #19B6E6;
  --scht-celeste-claro: #5FCDF0;
  --scht-gris: #6B7B99;
  --scht-blanco: #FFFFFF;
  --scht-fondo: #F4F8FC;
  --scht-borde: #E1E8F0;
  --scht-sombra: 0 20px 60px rgba(10, 44, 95, 0.15);
}

* { box-sizing: border-box; }
/* ============================================
   BODY — marco azul SCHT alrededor de la imagen
   ============================================ */
.bodys {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  background: #1A5A9E; /* un solo azul uniforme */
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   MARCO DE IMAGEN CENTRADA
   ============================================ */
.bodys::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 80px);
  height: calc(100vh - 80px);
  max-width: 1600px;
  background:
        linear-gradient(135deg, rgba(10, 44, 95, 0.40) 0%, rgba(25, 182, 230, 0.25) 100%),
    url(../img/fondoscht.jpeg) no-repeat center center;
  background-size: cover; /* cambia contain por cover: llena todo el marco */
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(10, 44, 95, 0.25);
  z-index: 0;
}

.contenedor {
  width: 100%;
  max-width: 440px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ============================================
   LOGIN BOX
   ============================================ */
.login-box {
  width: 100%;
  background: var(--scht-blanco);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: var(--scht-sombra);
  position: relative;
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   LOGO SCHT
   ============================================ */
.logo_wrap {
  text-align: center;
  margin-bottom: 20px;
}

.logo_scht {
  max-width: 180px;
  height: auto;
}

/* ============================================
   TÍTULO
   ============================================ */
.titulo_wrap {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--scht-borde);
}

.titulo_wrap h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--scht-azul);
  letter-spacing: 2px;
}

.titulo_wrap p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--scht-gris);
  font-weight: 500;
}

.titulo_wrap p b {
  color: var(--scht-azul);
}

/* ============================================
   INPUT GROUP (floating label)
   ============================================ */
.input_group {
  position: relative;
  margin-bottom: 20px;
}

.input_group i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--scht-celeste);
  font-size: 16px;
  z-index: 2;
  transition: color 0.2s;
}

.input_group input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--scht-borde);
  border-radius: 12px;
  background: var(--scht-fondo);
  font-size: 14px;
  color: var(--scht-azul);
  outline: none;
  transition: all 0.25s ease;
}

.input_group input:focus {
  border-color: var(--scht-celeste);
  background: var(--scht-blanco);
  box-shadow: 0 0 0 4px rgba(25, 182, 230, 0.12);
}

.input_group input:focus ~ i {
  color: var(--scht-azul);
}

.input_group label {
  position: absolute;
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  padding: 0 6px;
  color: var(--scht-gris);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease;
}

.input_group input:focus + label,
.input_group input:not(:placeholder-shown) + label {
  top: 0;
  left: 36px;
  font-size: 11px;
  color: var(--scht-azul);
  background: var(--scht-blanco);
  font-weight: 600;
}

/* ============================================
   BOTONES
   ============================================ */
#btniniciar,
#btncambiar_clave {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--scht-azul) 0%, var(--scht-azul-oscuro) 100%);
  color: var(--scht-blanco);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(10, 44, 95, 0.35);
}

#btniniciar:hover,
#btncambiar_clave:hover {
  background: linear-gradient(135deg, var(--scht-celeste) 0%, var(--scht-azul) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 182, 230, 0.45);
}

#btniniciar:active,
#btncambiar_clave:active {
  transform: translateY(0);
}

/* ============================================
   LINK CAMBIAR CLAVE
   ============================================ */
.link_wrap {
  text-align: center;
  margin-top: 18px;
}

.link_wrap a {
  text-decoration: none;
  font-size: 13px;
  color: var(--scht-gris);
  transition: color 0.2s;
  font-weight: 500;
}

.link_wrap a:hover {
  color: var(--scht-celeste);
}

/* ============================================
   SELLO EXCON 2026 (10%, discreto)
   ============================================ */
#sello_excon {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px 8px 10px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border-left: 3px solid var(--scht-celeste);
  transition: transform 0.3s;
}

#sello_excon:hover {
  transform: translateY(-2px);
}

#sello_excon img {
  height: 32px;
  width: auto;
}

#sello_excon .sello_texto {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

#sello_excon .sello_texto span {
  font-size: 11px;
  font-weight: 700;
  color: var(--scht-azul);
}

#sello_excon .sello_texto small {
  font-size: 9px;
  color: var(--scht-gris);
  font-weight: 500;
}

/* ============================================
   RESPONSIVE TABLET
   ============================================ */
@media (max-width: 768px) {
  .contenedor {
    max-width: 400px;
    padding: 16px;
  }

  .login-box {
    padding: 32px 28px 28px;
  }

  .logo_scht {
    max-width: 160px;
  }

  .titulo_wrap h1 {
    font-size: 22px;
  }
}
/* ============================================
   RESPONSIVE CELULAR — ocultar marco con imagen
   ============================================ */

@media (max-width: 600px) {

  /* Ocultar el marco con imagen */
  .bodys::before {
    display: none;
  }

  /* Foto como fondo del body en celular (con overlay) */
  .bodys {
    background:
      linear-gradient(135deg, rgba(10, 44, 95, 0.55) 0%, rgba(25, 182, 230, 0.35) 100%),
      url(../img/fondoscht.jpeg) no-repeat center center;
    background-size: cover;
    align-items: center;
    padding-top: 0;
  }

  .contenedor {
    max-width: 100%;
    padding: 16px;
  }

  .login-box {
    padding: 32px 24px 26px;
    border-radius: 16px;
  }

  .logo_scht {
    max-width: 150px;
  }

  .titulo_wrap h1 {
    font-size: 22px;
  }

  .titulo_wrap p {
    font-size: 12px;
  }

  .input_group input {
    height: 46px;
    font-size: 14px;
  }

  #btniniciar,
  #btncambiar_clave {
    height: 46px;
    font-size: 14px;
  }

  #sello_excon {
    top: 12px;
    right: 12px;
    padding: 6px 10px 6px 8px;
    gap: 8px;
    border-radius: 10px;
  }

  #sello_excon img {
    height: 26px;
  }

  #sello_excon

/* ============================================
   CELULAR PEQUEÑO
   ============================================ */
@media (max-width: 360px) {
  .login-box {
    padding: 26px 20px 22px;
  }

  .logo_scht {
    max-width: 130px;
  }

  #sello_excon .sello_texto {
    display: none;
  }

  #sello_excon {
    padding: 6px;
  }
}

/* ============================================
   MARCO RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .bodys::before {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .bodys::before {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 10px;
  }
}