/* =============================================
   NACG Suite — Auth Pages · Split Screen Layout
   ============================================= */

/* ── RESET BASE ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--fuente, 'Inter', sans-serif);
}

/* ════════════════════════════════════════════
   CONTENEDOR — Split Screen
   ════════════════════════════════════════════ */
.auth-split {
  min-height: 100vh;
  display: flex;
}

/* ════════════════════════════════════════════
   PANEL IZQUIERDO — Marca / Producto
   ════════════════════════════════════════════ */
.auth-izq {
  width: 42%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Grid de líneas superpuesto */
.auth-izq::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  z-index: 0;
}

.auth-izq-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
  padding: 44px 52px;
}

/* Enlace "volver" */
.auth-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
  margin-bottom: auto;
}
.auth-volver:hover { color: rgba(255,255,255,0.72); }

/* ── Logo del producto ── */
.auth-logo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}

.auth-logo-prefix {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.auth-logo-nombre {
  font-size: 80px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -4px;
  margin-bottom: 22px;
}

.auth-logo-blanco { color: #FFFFFF; }
.auth-logo-acento { color: var(--c7); }

.auth-logo-linea {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--c7);
  margin-bottom: 18px;
}

.auth-logo-subtitulo {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  max-width: 260px;
  line-height: 1.8;
}

/* ── Frase decorativa (ghost) ── */
.auth-izq-quote {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(255,255,255,0.055);
  margin-bottom: 36px;
  user-select: none;
  pointer-events: none;
}
.auth-izq-quote em {
  font-style: italic;
  display: block;
}

/* ── Footer del panel izquierdo ── */
.auth-izq-footer {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  line-height: 1.9;
}

/* ════════════════════════════════════════════
   PANEL DERECHO — Formulario (claro)
   ════════════════════════════════════════════ */
.auth-der {
  flex: 1;
  background: #EEF1F8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-der-inner {
  width: 100%;
  max-width: 400px;
}

/* ── Encabezado del formulario ── */
.auth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c5, #0284C7);
  margin-bottom: 10px;
}

.auth-titulo {
  font-size: 30px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.auth-subtitulo {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* ── TABS ── */
.auth-tabs {
  display: flex;
  background: #DDE2EC;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: #64748B;
  font-family: var(--fuente, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.activo {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.auth-tab:hover:not(.activo) { color: #0F172A; }

/* ── PANELES ── */
.auth-panel { display: none; }

.auth-panel.activo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── ALERTA ── */
.auth-alerta {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.auth-alerta.error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
}
.auth-alerta.exito {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #16A34A;
}
.auth-alerta.visible { display: block; }

/* ── GRUPOS DE CAMPO ── */
.form-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-grupo label {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Wrapper con ícono */
.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-grupo input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 13px 44px;
  color: #0F172A;
  font-family: var(--fuente, 'Inter', sans-serif);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-grupo input::placeholder { color: #CBD5E1; }

.form-grupo input:focus {
  border-color: var(--c5, #0284C7);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* Toggle contraseña */
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.pass-toggle:hover { color: #475569; }

/* ── BOTÓN PRINCIPAL ── */
.auth-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #0F172A;
  color: #FFFFFF;
  font-family: var(--fuente, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.auth-btn:hover:not(:disabled) {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,23,42,0.22);
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.auth-btn.cargando .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Botón ghost / link */
.auth-btn-link {
  background: none;
  border: none;
  color: #64748B;
  font-family: var(--fuente, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  transition: color 0.2s;
  width: 100%;
}
.auth-btn-link:hover { color: #0F172A; }

/* ── DIVIDER ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94A3B8;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* ── FOOTER DEL FORMULARIO ── */
.auth-form-footer {
  text-align: center;
  margin-top: 28px;
  color: #94A3B8;
  font-size: 12px;
  line-height: 1.7;
}
.auth-form-footer a {
  color: var(--c5, #0284C7);
  text-decoration: none;
  font-weight: 600;
}
.auth-form-footer a:hover { text-decoration: underline; }

/* ── RECUPERAR — texto intro ── */
.auth-recuperar-intro {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-split { flex-direction: column; }

  .auth-izq {
    width: 100%;
    min-height: auto;
  }

  .auth-izq-inner { padding: 36px 28px 32px; }

  .auth-logo-nombre { font-size: 60px; }

  .auth-izq-quote { display: none; }

  .auth-der { padding: 40px 24px 52px; }
}
