/* ========================================
   Login — 2 columnas Editora Perú
   ======================================== */
:root {
  --color-brand:   #C8102E;
  --color-primary: #0A74DA;
  --color-text:    #111827;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---- Panel izquierdo ---- */
.login-left {
  flex: 1.1;
  background-color: #0F172A;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 3rem;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 50px rgba(255,255,255,0.03), 0 0 0 100px rgba(255,255,255,0.02);
  pointer-events: none;
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -160px; left: -160px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 0 45px rgba(255,255,255,0.02), 0 0 0 90px rgba(255,255,255,0.01);
  pointer-events: none;
}

.login-left > * { position: relative; z-index: 1; }

.lp-badge {
  position: absolute;
  top: 1.5rem; left: 3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2rem;
  padding: 0.3rem 0.9rem;
  z-index: 1;
}

.lp-app-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  margin-bottom: 1.75rem;
}

.login-left h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.login-left > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
}

.lp-features {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  transition: background 0.15s;
}

.lp-feature-item:hover { background: rgba(255,255,255,0.11); }

.lp-feature-item i {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.lp-feature-item strong {
  display: block;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 0.125rem;
}

.lp-feature-item p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ---- Panel derecho ---- */
.login-right {
  flex: 1;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.login-logo {
  margin-bottom: 1.75rem;
}

.login-logo-img {
  max-height: 56px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.login-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.login-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.login-subheading {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10,116,218,0.12);
}

.btn-login {
  height: 3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(200,16,46,0.3);
  transition: box-shadow 0.2s, transform 0.1s;
}

.btn-login:hover {
  box-shadow: 0 6px 20px rgba(200,16,46,0.4);
  transform: translateY(-1px);
}

.login-disclaimer {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 0;
}

/* ── Rediseño del login (logos PGA, El Peruano y Editora Perú) //AA 2026-10-31 ── */
/* Panel izquierdo: cabecera centrada con el logo del sistema */
.lp-cab { text-align: center; }
.lp-pga { display: block; width: 280px; max-width: 100%; height: auto; margin: 0 auto 1.25rem; }
.lp-boletin {
  font-size: 1.35rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
  color: #fff; margin: 0 0 .35rem; padding-left: .22em;   /* compensa el espacio final de las letras */
}
.lp-subtitle { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 2rem; }

/* Tarjeta: logo de El Peruano con la leyenda del sistema */
.login-logo-img.login-logo-peruano { max-height: 64px; }
.login-logo-leyenda {
  text-align: center; font-size: 1rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #374151; margin: .6rem 0 0; padding-left: .16em;
}

/* Tarjeta: pie con el logo de Editora Perú */
.login-footer-logo { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #eef0f3; text-align: center; }
.login-footer-logo small {
  display: block; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase;
  color: #9ca3af; margin-bottom: .3rem;
}
.login-footer-logo img { height: 22px; width: auto; }

/* Login compacto: menos espacio vertical entre líneas //AA 2026-10-31 */
.login-card { padding: 1.5rem 2rem; }
.login-right { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.login-card .login-logo { margin-bottom: 1rem; }
.login-card .login-heading { font-size: 1.3rem; margin-bottom: .1rem; }
.login-card .login-subheading { font-size: .82rem; margin-bottom: 1rem; }
.login-card .form-label { margin-bottom: .2rem; font-size: .85rem; }
.login-card .mb-3 { margin-bottom: .7rem !important; }
.login-card .mb-4 { margin-bottom: .9rem !important; }
.login-card .mb-2 { margin-bottom: .4rem !important; }
.login-card .mt-3 { margin-top: .7rem !important; }
.login-card .btn-login { height: 2.6rem; }
.login-card .login-disclaimer { font-size: .74rem; }
.login-card .login-logo-leyenda { margin-top: .4rem; }
.login-card .login-footer-logo { margin-top: .75rem; padding-top: .6rem; }

/* Login: "Bienvenido" (negrita) y el subtítulo en una sola línea //AA 2026-10-31 */
.login-card .login-bienvenida { font-size: .82rem; color: #6b7280; margin-bottom: 1rem; white-space: nowrap; }
.login-card .login-bienvenida strong { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin-right: .3rem; }

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .login-wrapper { flex-direction: column; }

  /* Celular: el panel se oculta y el login ocupa toda la pantalla //AA 2026-10-31 */
  .login-left { display: none; }

  .login-right { padding: 1.5rem 1rem; min-height: 100vh; }

  .login-card { padding: 1.5rem 1.25rem; }
  .login-card .login-bienvenida { white-space: normal; }
}

/* ── Portal público — onboarding / confirmaciones ─────────────────── */
.public-wrapper {
  min-height: 100vh;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
}

.public-header {
  background: linear-gradient(135deg, #C8102E, #580818);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.public-header-logo {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.public-header-logo i { color: #fff; font-size: 1.1rem; }

.public-header-title {
  color: #fff; font-size: 0.9rem; font-weight: 600; margin: 0;
}

.public-header-subtitle {
  color: rgba(255,255,255,0.7); font-size: 0.75rem; margin: 0;
}

.public-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.public-card {
  width: 100%; max-width: 580px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
}

.public-card-header {
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid #f0f2f5;
}

.public-card-title  { font-size: 1.15rem; font-weight: 700; color: #111827; margin: 0 0 0.2rem; }
.public-card-subtitle { font-size: 0.83rem; color: #6b7280; margin: 0; }

.public-card-body   { padding: 1.75rem; }

.public-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid #f0f2f5;
  display: flex; align-items: center; justify-content: space-between;
}

.public-footer {
  padding: 1rem 1.5rem;
  text-align: center; font-size: 0.75rem; color: #9ca3af;
  border-top: 1px solid #e9ecef; flex-shrink: 0;
}

/* ── Wizard stepper ─────────────────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.75rem 1rem;
}

.wizard-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative;
}

.wizard-step + .wizard-step::before {
  content: ''; position: absolute;
  left: -50%; top: 1rem; width: 100%; height: 2px;
  background: #e9ecef; z-index: 0;
}

.wizard-step.done + .wizard-step::before { background: #0A74DA; }

.wizard-num {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #e9ecef; color: #9ca3af;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  position: relative; z-index: 1;
  transition: background 0.2s, color 0.2s;
}

.wizard-step.done   .wizard-num { background: #0A74DA; color: #fff; }
.wizard-step.active .wizard-num { background: #C8102E; color: #fff; }

.wizard-label {
  font-size: 0.7rem; color: #9ca3af;
  margin-top: 0.35rem; text-align: center; line-height: 1.2;
}

.wizard-step.done   .wizard-label { color: #0A74DA; }
.wizard-step.active .wizard-label { color: #C8102E; font-weight: 600; }

/* ── Botón primario portal público ─────────────────────────────────── */
.btn-brand {
  background: #C8102E; border-color: #C8102E; color: #fff; font-weight: 600;
}
.btn-brand:hover, .btn-brand:focus {
  background: #a50d26; border-color: #a50d26; color: #fff;
}
.btn-brand:disabled { background: #e07080; border-color: #e07080; color: #fff; }

/* ---- Enlaces secundarios (olvidé mi contraseña, volver) ---- */
.login-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.login-link:hover { text-decoration: underline; }

/* ---- Código de recuperación (6 dígitos) ---- */
.login-otp {
  font-size: 1.5rem;
  letter-spacing: 0.6em;
  font-family: 'Courier New', Courier, monospace;
}
