/* Educapp Control Center — Login
   Paleta: #002A48 (navy) · #209EC3 (teal) · #0AB8EC (cian) · #FFFFFF */

:root{
  --navy: #002A48;
  --navy-deep: #001a30;
  --teal: #209EC3;
  --cian: #0AB8EC;
  --blanco: #FFFFFF;
  --tinta: #08263c;
  --gris-texto: #5b7285;
  --fuente-display: 'Chakra Petch', sans-serif;
  --fuente-cuerpo: 'IBM Plex Sans', sans-serif;
  --fuente-mono: 'IBM Plex Mono', monospace;
}

*{ box-sizing: border-box; }

html,body{
  margin:0; padding:0; height:100%;
  font-family: var(--fuente-cuerpo);
  background: var(--navy);
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
}

.lienzo{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.35fr 1fr;
}

/* ============ PANEL IZQUIERDO — HERO ============ */
.panel-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(120% 140% at 15% 10%, #0b3a5c 0%, var(--navy) 45%, var(--navy-deep) 100%);
  padding: 4.5rem 4rem;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:var(--blanco);
}

.hero-glow{
  position:absolute;
  inset:-20%;
  background:
    radial-gradient(38rem 38rem at 82% 18%, rgba(10,184,236,0.22), transparent 60%),
    radial-gradient(30rem 30rem at 10% 85%, rgba(32,158,195,0.18), transparent 65%);
  pointer-events:none;
}

.hex{
  position:absolute;
  opacity:0.5;
  pointer-events:none;
  filter: drop-shadow(0 0 24px rgba(10,184,236,0.15));
}
.hex-v2{ top:-8%; right:-14%; width:52rem; opacity:0.55; animation: flotar 14s ease-in-out infinite; }
.hex-v4{ bottom:-12%; right:-10%; width:40rem; opacity:0.35; animation: flotar 18s ease-in-out infinite reverse; }
.hex-v1{ top:58%; left:-10%; width:20rem; opacity:0.18; animation: girar 60s linear infinite; }

@keyframes flotar{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-18px); }
}
@keyframes girar{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.hero-contenido{ position:relative; z-index:2; max-width:34rem; }

.hero-wordmark{ height:1.9rem; width:auto; opacity:0.92; margin-bottom:2.6rem; }

.hero-kicker{
  font-family: var(--fuente-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--cian);
  margin: 0 0 0.9rem;
}

.hero-titulo{
  font-family: var(--fuente-display);
  font-weight:700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 1.4rem;
  background: linear-gradient(135deg, #ffffff 25%, #bfe9fa 65%, var(--cian) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-descripcion{
  font-size: 1rem;
  line-height:1.65;
  color: #a9c3d4;
  max-width: 30rem;
  margin: 0 0 2.6rem;
}

.terminal{
  border:1px solid rgba(10,184,236,0.28);
  background: rgba(0,15,28,0.55);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  max-width: 27rem;
  box-shadow: 0 20px 45px -20px rgba(0,0,0,0.6);
}
.terminal-barra{
  display:flex; gap:6px;
  padding: 0.65rem 0.85rem;
  border-bottom:1px solid rgba(10,184,236,0.15);
}
.terminal-barra span{
  width:9px; height:9px; border-radius:50%;
  background: rgba(255,255,255,0.18);
}
.terminal-barra span:nth-child(1){ background:#ff6b6b55; }
.terminal-barra span:nth-child(2){ background:#ffd66b55; }
.terminal-barra span:nth-child(3){ background:#6bffb055; }

.terminal-cuerpo{ padding: 1rem 1.1rem 1.15rem; }
.t-linea{
  font-family: var(--fuente-mono);
  font-size: 0.82rem;
  color: #8fd4ec;
  margin: 0 0 0.5rem;
  opacity:0;
  animation: aparecer 0.4s ease forwards;
}
.t-linea-1{ animation-delay: 0.4s; }
.t-linea-2{ animation-delay: 1.5s; }
.t-linea-3{ animation-delay: 2.4s; }
.t-linea:last-child{ margin-bottom:0; }
.t-ok{ color:#5be8a4; font-weight:600; }
.t-cursor{
  display:inline-block;
  margin-left: 2px;
  animation: parpadeo 1s step-start infinite;
  color: var(--cian);
}
@keyframes aparecer{ to{ opacity:1; } }
@keyframes parpadeo{ 50%{ opacity:0; } }

.hero-footer{
  position:relative; z-index:2;
  margin-top: 3rem;
  font-family: var(--fuente-mono);
  font-size: 0.75rem;
  color:#6d90a8;
  display:flex; align-items:center; gap:0.5rem;
}
.dot-online{
  width:7px; height:7px; border-radius:50%;
  background: var(--cian);
  box-shadow: 0 0 0 0 rgba(10,184,236,0.6);
  animation: pulso 2s infinite;
}
@keyframes pulso{
  0%{ box-shadow: 0 0 0 0 rgba(10,184,236,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(10,184,236,0); }
  100%{ box-shadow: 0 0 0 0 rgba(10,184,236,0); }
}

/* ============ PANEL DERECHO — FORMULARIO ============ */
.panel-form{
  background: var(--blanco);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 3rem 3rem;
  position:relative;
}
.panel-form::before{
  content:"";
  position:absolute; inset:0 auto 0 0;
  width:1px;
  background: linear-gradient(180deg, transparent, rgba(0,42,72,0.12), transparent);
}

.form-envoltura{ width:100%; max-width: 23rem; }

.marca-color{ width:56px; height:56px; margin-bottom:1.6rem; }

.form-titulo{
  font-family: var(--fuente-display);
  font-size: 1.7rem;
  font-weight:600;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.form-subtitulo{
  font-size: 0.92rem;
  color: var(--gris-texto);
  margin: 0 0 1.8rem;
}

.alerta{
  background: #fdeceb;
  border: 1px solid #f3b9b4;
  color: #a4302a;
  font-size: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1.3rem;
}

.formulario{ display:flex; flex-direction:column; gap: 1.15rem; }

.campo{ display:flex; flex-direction:column; gap:0.4rem; }
.campo-etiqueta{
  font-size: 0.78rem;
  font-weight:600;
  letter-spacing:0.03em;
  color: var(--navy);
  text-transform: uppercase;
}

.campo input[type="text"],
.campo input[type="password"]{
  font-family: var(--fuente-cuerpo);
  font-size: 0.98rem;
  padding: 0.78rem 0.95rem;
  border: 1.5px solid #d7e2e9;
  border-radius: 8px;
  outline:none;
  color: var(--tinta);
  background: #fbfdfe;
  transition: border-color .18s ease, box-shadow .18s ease;
  width:100%;
}
.campo input:focus{
  border-color: var(--cian);
  box-shadow: 0 0 0 3px rgba(10,184,236,0.15);
}

.campo-password{ position:relative; display:flex; }
.campo-password input{ padding-right: 2.6rem; }
.toggle-password{
  position:absolute; right:0.55rem; top:50%; transform:translateY(-50%);
  background:none; border:none; cursor:pointer;
  color:#8ba2b2; padding:0.3rem; line-height:0;
  transition: color .15s ease;
}
.toggle-password:hover{ color: var(--teal); }

.boton-submit{
  margin-top: 0.4rem;
  display:flex; align-items:center; justify-content:center; gap:0.55rem;
  font-family: var(--fuente-display);
  font-weight:600;
  font-size: 1rem;
  letter-spacing:0.02em;
  color: var(--blanco);
  background: linear-gradient(120deg, var(--teal), var(--cian));
  border:none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  cursor:pointer;
  box-shadow: 0 10px 22px -10px rgba(10,184,236,0.55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.boton-submit:hover{ transform: translateY(-1px); filter:brightness(1.05); }
.boton-submit:active{ transform: translateY(0); }
.boton-submit svg{ transition: transform .18s ease; }
.boton-submit:hover svg{ transform: translateX(3px); }

.form-pie{
  margin-top: 2.2rem;
  font-size: 0.72rem;
  color: #9db2c0;
  text-align:center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .lienzo{ grid-template-columns: 1fr; }
  .panel-hero{ padding: 3rem 1.8rem 2.4rem; min-height: 46vh; }
  .hero-titulo{ font-size: 2.6rem; }
  .hero-descripcion{ display:none; }
  .terminal{ max-width:100%; }
  .panel-form{ padding: 2.6rem 1.8rem 3rem; }
  .panel-form::before{ display:none; }
}

@media (max-width: 480px){
  .hero-footer{ display:none; }
  .hex-v1{ display:none; }
}
