/* vistas/css/fge-login.css */
/* ========== BASE ========== */
:root{
  --bg0:#070B14;
  --bg1:#0A1223;
  --cardA: rgba(15, 23, 42, .78);
  --cardB: rgba(10, 16, 34, .72);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);
  --text: #EAF0FF;
  --muted:#9AA4B2;
  --primary:#60A5FA;
  --primary2:#3B82F6;
  --focus: rgba(96,165,250,.35);
  --shadow: 0 18px 50px rgba(0,0,0,.55);
  --shadow2: 0 18px 70px rgba(0,0,0,.65);
}

html, body{
  height:100%;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ========== FONDO FULLSCREEN ========== */
.login-bg{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 28px 14px;
  position: relative;
  overflow:hidden;
  background:
    radial-gradient(1000px 600px at 20% 15%, rgba(96,165,250,.14), transparent 60%),
    radial-gradient(900px 620px at 80% 60%, rgba(16,185,129,.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Grid sutil */
.bg-grid{
  position:fixed; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity:.06;
  pointer-events:none;
  z-index:0;
}

/* Noise sutil */
.bg-noise{
  position:fixed; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.20;
  pointer-events:none;
  z-index:1;
}

/* Glow general */
.glow{
  position:fixed; inset:-20%;
  background:
    radial-gradient(600px 420px at 30% 35%, rgba(96,165,250,.18), transparent 70%),
    radial-gradient(520px 380px at 70% 55%, rgba(59,130,246,.16), transparent 70%);
  filter: blur(22px);
  pointer-events:none;
  z-index:2;
}

/* Marca de agua (pon aquí tu logo SOLO ICONO si quieres) */
.bg-watermark{
  position:fixed; inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:3;
  opacity:.09;
  filter: grayscale(100%) contrast(120%);
}
.bg-watermark img{
  width:min(70vw, 620px);
  height:auto;
  transform: translateY(10px);
}

/* ========== TARJETA LOGIN ========== */
.login-card{
  width: min(460px, 94vw);
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--cardA), var(--cardB));
  box-shadow: var(--shadow);
  position:relative;
  z-index: 10;
  overflow:hidden;
  backdrop-filter: blur(10px);
}

.login-card::before{
  content:"";
  position:absolute; inset:-1px;
  background:
    radial-gradient(220px 180px at 18% 18%, rgba(96,165,250,.18), transparent 60%),
    radial-gradient(260px 200px at 85% 28%, rgba(59,130,246,.14), transparent 60%);
  pointer-events:none;
}

.login-card__header{
  position:relative;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.gears-text{
  margin-top: 10px;
  font-weight: 900;
  letter-spacing: .3px;
  color: var(--text);
  font-size: 18px;
  text-align:center;
}

.login-card__body{
  position:relative;
  padding: 14px 18px 18px;
}

.login-title{
  color: var(--text);
  font-weight: 800;
  margin: 0 0 12px;
  opacity: .95;
}

/* Inputs bootstrap */
.login-card .form-control{
  background: rgba(11, 18, 36, .72);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  border-radius: 14px;
  height: 48px;
  padding-left: 14px;
}
.login-card .form-control::placeholder{ color: rgba(234,240,255,.55); }
.login-card .form-control:focus{
  border-color: rgba(96,165,250,.45);
  box-shadow: 0 0 0 3px var(--focus);
}

/* Glyphicon feedback */
.login-card .form-control-feedback{
  color: rgba(234,240,255,.70);
  top: 6px;
  right: 10px;
}

/* Toggle ojo */
.toggle-password{
  position:absolute;
  right: 44px; /* deja espacio al glyphicon */
  top: 9px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15, 23, 42, .55);
  color: rgba(234,240,255,.88);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.toggle-password:hover{ border-color: rgba(255,255,255,.18); }

/* Checkbox */
.login-card .checkbox label{
  color: rgba(234,240,255,.78);
}

/* Botones */
.btn-login-primary{
  border: 0;
  border-radius: 14px;
  height: 46px;
  font-weight: 900;
  letter-spacing: .3px;
  color: #071120;
  background: linear-gradient(90deg, var(--primary2), var(--primary));
  box-shadow: 0 12px 30px rgba(59,130,246,.22);
}
.btn-login-primary:hover{ filter: brightness(1.06); }
.btn-login-primary:active{ transform: translateY(1px); }

.btn-asistencia{
  border-radius: 14px;
  height: 46px;
  font-weight: 800;
}

/* ========== ENGRANES (SVG) ========== */
.gears-container{
  height: 110px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
}

.gear{
  position:absolute;
  width: 110px;
  height: 110px;
  opacity: .78;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}
.gear svg{ width:100%; height:100%; display:block; }

.gear-large{ width: 124px; height: 124px; left: 52%; transform: translateX(-50%); animation: spin 8s linear infinite; }
.gear-medium{ width: 92px; height: 92px; left: 36%; top: 12px; animation: spinR 6.2s linear infinite; opacity:.82; }
.gear-small{ width: 74px; height: 74px; left: 63%; top: 34px; animation: spinR 5.4s linear infinite; opacity:.70; }

@keyframes spin { to{ transform: translateX(-50%) rotate(360deg);} }
@keyframes spinR{ to{ transform: rotate(-360deg);} }

@media (max-width:420px){
  .gear-large{ width: 110px; height:110px; }
  .gear-medium{ width: 82px; height:82px; left:34%; }
  .gear-small{ width: 68px; height:68px; }
}
