/* =====================================================================
   ERP TALLER — Pantalla de acceso (login) distintiva
   Panel lateral de marca + escena, formulario flotante.
   ===================================================================== */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg);
  overflow: hidden;
}

/* --------- Panel izquierdo: marca / escena --------- */
.login-hero {
  position: relative;
  background: radial-gradient(1200px 600px at 20% 10%, #17406a 0%, #0b1f33 55%, #071523 100%);
  color: #eaf1f8;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 3rem 3.2rem;
  overflow: hidden;
}
/* Rejilla técnica sutil de fondo */
.login-hero::before {
  content:''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
}
/* Halo ámbar */
.login-hero::after {
  content:''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  right: -160px; bottom: -160px;
  background: radial-gradient(circle, rgba(245,158,11,.28), transparent 65%);
  filter: blur(4px);
}

.login-hero .brand-top { display: flex; align-items: center; gap: .9rem; position: relative; z-index: 2; }
.login-hero .brand-top .logo {
  width: 56px; height: 56px; border-radius: 15px;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 30px rgba(217,119,6,.45);
}
.login-hero .brand-top .logo svg { width: 32px; height: 32px; }
.login-hero .brand-top b { font-size: 1.35rem; letter-spacing: .5px; color:#fff; display:block; line-height:1.1; }
.login-hero .brand-top span { font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-400); }

.login-hero .hero-center { position: relative; z-index: 2; max-width: 460px; }
.login-hero .hero-center h1 {
  color: #fff; font-size: 2.5rem; line-height: 1.12; margin-bottom: 1rem; font-weight: 800;
  letter-spacing: -.5px;
}
.login-hero .hero-center h1 em { color: var(--accent-400); font-style: normal; }
.login-hero .hero-center p { color: #a9bed3; font-size: 1.02rem; line-height: 1.6; }

.hero-feats { display: flex; flex-direction: column; gap: .85rem; margin-top: 2rem; }
.hero-feats .feat { display: flex; align-items: center; gap: .85rem; color: #cddcea; font-size: .95rem; }
.hero-feats .feat i {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--accent-400); border: 1px solid rgba(255,255,255,.08);
}
.hero-feats .feat i svg { width: 20px; height: 20px; }

.login-hero .hero-foot { position: relative; z-index: 2; font-size: .8rem; color: #6e88a1; }

/* --------- Panel derecho: formulario --------- */
.login-form-side { display: grid; place-items: center; padding: 2rem; }
.login-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.3rem;
}
.login-card .lc-head { text-align: center; margin-bottom: 1.8rem; }
.login-card .lc-head .badge-ico {
  width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
  display: grid; place-items: center; color:#fff; box-shadow: var(--shadow-md);
}
.login-card .lc-head .badge-ico svg { width: 30px; height: 30px; }
.login-card .lc-head h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.login-card .lc-head p { color: var(--text-mute); font-size: .9rem; margin: 0; }

.login-card .field { margin-bottom: 1.1rem; }
.login-card label { margin-bottom: .3rem; }
.login-card input {
  padding: .7rem .85rem; font-size: 1rem;
}
.login-card .pass-wrap input { padding-right: 2.8rem; }

.login-card .btn-primary { padding: .8rem; font-size: 1rem; margin-top: .4rem; }

.login-error {
  background: var(--red-100); color: var(--red-600);
  border-left: 4px solid var(--red-600);
  padding: .7rem .9rem; border-radius: 8px; font-size: .88rem;
  display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
}
.login-error svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-foot-note { text-align: center; font-size: .78rem; color: var(--text-mute); margin-top: 1.5rem; }

@media (max-width: 920px) {
  .login-page { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-form-side { min-height: 100vh; }
}
