/* ==========================================================
   Inthiers · Login
   ========================================================== */
.login {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  display: grid; grid-template-columns: minmax(380px, 520px) 1fr;
  background: #0B1424 url("../assets/img/hero.jpg") right center / cover no-repeat;
  color: #E9EEF6;
}
.login::before { /* velo para legibilidad sobre la parte izquierda */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,18,32,.92) 0%, rgba(10,18,32,.75) 30%, rgba(10,18,32,.05) 60%);
}
.login-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.login-glow.g1 { width: 380px; height: 380px; left: -120px; top: -80px; background: #EA551F; opacity: .28; }
.login-glow.g2 { width: 320px; height: 320px; left: 180px; bottom: -140px; background: #1E6FE0; opacity: .3; animation-delay: -6s; }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.08); } }

.login-panel { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 40px clamp(24px, 4vw, 56px); }
.login-brand img { width: 210px; height: auto; }
.login-main { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 400px; width: 100%; padding: 32px 0; }
.login-main h1 { margin: 0; font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.login-main h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-main > p { margin: 10px 0 28px; color: #A9B6C9; }
.company-pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-bottom: 18px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); color: #CFD9E6; }
.company-pill i { width: 8px; height: 8px; border-radius: 50%; background: #34C38F; box-shadow: 0 0 0 4px rgba(52,195,143,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52,195,143,0); } }

.login form { display: grid; gap: 16px; }
.login .field label { color: #C3CEDD; }
.login .input { height: 48px; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; border-radius: var(--r-md); }
.login .input::placeholder { color: #7F8EA5; }
.login .input:hover { border-color: rgba(255,255,255,.3); }
.login .input:focus { border-color: #F57C1F; box-shadow: 0 0 0 4px rgba(245,124,31,.25); background: rgba(255,255,255,.09); }
.login .input-wrap > .icon { color: #7F8EA5; }
.login .btn-ghost { color: #A9B6C9; }
.login .btn-ghost:hover { background: rgba(255,255,255,.08); }
.login-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.login-row a { color: #F9A066; }
.check { display: inline-flex; align-items: center; gap: 8px; color: #A9B6C9; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: #EA551F; }
.login-alert { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(217,45,32,.14); border: 1px solid rgba(255,107,94,.35); color: #FFC2BC; font-size: var(--fs-sm); }
.login-alert.show { display: flex; animation: shake .35s var(--ease); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.login-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: var(--fs-xs); color: #7F8EA5; }
.login-foot a { color: #A9B6C9; }
.login-foot .powered { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }

/* Lado visual: chips flotantes "en vivo" */
.login-visual { position: relative; z-index: 1; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 14px; background: rgba(13, 24, 42, .62); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  animation: float 7s ease-in-out infinite; color: #E9EEF6;
}
.float-chip .chip-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-gradient); }
.float-chip.cool .chip-ico { background: var(--brand-gradient-cool); }
.float-chip .chip-ico .icon { color: #fff; }
.float-chip small { display: block; font-size: 11px; color: #9FB0C7; text-transform: uppercase; letter-spacing: .06em; }
.float-chip b { font-size: 1.05rem; }
.float-chip.c1 { left: 16%; top: 16%; }
.float-chip.c2 { right: 8%; top: 44%; animation-delay: -2.5s; }
.float-chip.c3 { left: 26%; bottom: 14%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Modal recuperar en tema oscuro del login usa los tokens normales */

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; background-position: 70% center; }
  .login::before { background: linear-gradient(180deg, rgba(10,18,32,.78) 0%, rgba(10,18,32,.92) 55%); }
  .login-visual { display: none; }
  .login-panel { padding: 28px 20px; }
  .login-main { margin: 0 auto; }
  .login-brand { text-align: center; } .login-brand img { margin: 0 auto; width: 180px; }
  .login-foot .powered { margin-left: 0; }
}
