/* 
-----------------------------------
Documento CSS - Sistema Seguimiento PP
Propuesta 1: Glassmorphism Institucional (Color Azul Medio / No tan oscuro)
-----------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* BASIC */
html, body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body.login-page-body {
  background: #0284c7 !important;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.login-page-body .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

a {
  color: #0284c7;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  color: #0369a1;
  text-decoration: none;
}

/* ========================================================
   FONDO INSTITUCIONAL AZUL MEDIO Y ORBES DE LUZ
   ======================================================== */
.login-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.45) 0%, transparent 40%),
              radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.4) 0%, transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, #1e3a8a 0%, #0284c7 45%, #0ea5e9 75%, #0d9488 100%);
  pointer-events: none;
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(56, 189, 248, 0.4);
  top: -80px;
  left: 10%;
  animation-duration: 14s;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: rgba(45, 212, 191, 0.35);
  bottom: -90px;
  right: 12%;
  animation-duration: 20s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(147, 197, 253, 0.35);
  top: 40%;
  left: 60%;
  animation-duration: 16s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -35px) scale(1.08); }
  100% { transform: translate(-25px, 25px) scale(0.95); }
}

/* STRUCTURE */
.wrapper {
  display: flex;
  align-items: center;
  flex-direction: column; 
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 30px 15px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* ========================================================
   TARJETA DE LOGIN GLASSMORPHIC
   ======================================================== */
#formContent, .login-card-glass {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  padding: 38px 34px 28px 34px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28),
              0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#formContent:hover {
  box-shadow: 0 30px 70px -12px rgba(15, 23, 42, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Encabezado y Logo */
.login-header {
  margin-bottom: 20px;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.6) 100%);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.logo-wrapper:hover {
  transform: scale(1.04);
}

#icon {
  height: 245px;
  width: 245px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.14));
}

.login-title {
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.4px;
}

.login-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* ========================================================
   ALERTAS Y ESTADOS
   ======================================================== */
.login-alert-area {
  min-height: 0;
  margin-bottom: 8px;
}

.state {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 16px 0;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.08);
}

.state.state-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.08);
}

/* ========================================================
   INPUTS ERGONÓMICOS CON ICONOS
   ======================================================== */
.input-field-group {
  position: relative;
  margin-bottom: 18px;
  text-align: left;
}

.input-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 15px;
  transition: color 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.loginacces {
  width: 100% !important;
  box-sizing: border-box !important;
  background-color: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 13px 44px 13px 46px !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: left !important;
  outline: none !important;
  display: block !important;
  margin: 0 !important;
}

.loginacces::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.loginacces:focus {
  background-color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.input-field-group:focus-within .input-field-icon {
  color: #0284c7;
}

/* Botón Ojo (Mostrar / Ocultar Contraseña) */
.toggle-password-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 8px;
  font-size: 15px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.toggle-password-btn:hover {
  color: #0284c7;
  transform: translateY(-50%) scale(1.1);
}

.toggle-password-btn:focus {
  outline: none;
}

/* ========================================================
   BOTÓN DE ACCESO PRINCIPAL
   ======================================================== */
.form-action-wrap {
  margin-top: 22px;
  margin-bottom: 8px;
}

.btn-acceder-modern,
input[type=button]#acceder, 
input[type=submit]#acceder {
  width: 100% !important;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #06b6d4 100%) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 14px 24px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 25px -4px rgba(2, 132, 199, 0.45) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-transform: none !important;
}

.btn-acceder-modern:hover,
input[type=button]#acceder:hover, 
input[type=submit]#acceder:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0891b2 100%) !important;
  box-shadow: 0 14px 30px -4px rgba(2, 132, 199, 0.55) !important;
  transform: translateY(-2px) !important;
}

.btn-acceder-modern:active,
input[type=button]#acceder:active, 
input[type=submit]#acceder:active {
  transform: translateY(0px) scale(0.99) !important;
  box-shadow: 0 6px 15px -3px rgba(2, 132, 199, 0.4) !important;
}

.btn-acceder-modern:disabled,
#acceder:disabled {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* ========================================================
   FOOTER DE LA TARJETA
   ======================================================== */
#formFooter {
  background-color: transparent;
  border-top: 1px solid #f1f5f9;
  padding: 20px 0 0 0;
  margin-top: 22px;
  text-align: center;
}

.footer-link {
  color: #0284c7;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-link:hover {
  color: #0369a1;
}

.footer-subtext {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

/* ========================================================
   ANIMACIONES
   ======================================================== */
.fadeInDown {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translate3d(0, -35px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeIn {
  opacity: 0;
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fadeIn.first { animation-delay: 0.15s; }
.fadeIn.second { animation-delay: 0.25s; }
.fadeIn.third { animation-delay: 0.35s; }
.fadeIn.fourth { animation-delay: 0.45s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.underlineHover {
  position: relative;
  display: inline-block;
}

.underlineHover::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #0284c7;
  transition: width 0.25s ease;
}

.underlineHover:hover::after {
  width: 100%;
}

/* ========================================================
   OTROS ESTILOS DEL SISTEMA INTERNO
   ======================================================== */
*:focus {
  outline: none;
}

.user {
  margin-top: 20px;
}

#cerrarsession {
  color: rgba(0,0,0,.3);
}

#h1navbar {
  margin-top: -10px;
}

#cargando-datos {
  background-color: rgba(186, 125, 145, 0.0001);
}

#correo {
  position: static;
  margin-right: 20px;
}

#insignia {
  position: absolute;
  top: 10px;
  border-radius: 17px;
  width: 20px;
  height: 20px;
  padding: .299em .4em;
}

@media only screen and (max-width: 991px) {
  #insignia {
    position: relative;
    top: -10px;
  }
}

@media (max-width: 480px) {
  #formContent, .login-card-glass {
    padding: 30px 20px 22px 20px;
    border-radius: 20px;
  }
  #icon {
    width: 125px;
    height: 125px;
  }
  .login-title {
    font-size: 19px;
  }
}
