/* ================================================================
   Shell público — layout split (cambio contraseña, activación, etc.)
   CSS idéntico al panel izquierdo de login_accordion.html
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font, 'Poppins', system-ui, sans-serif);
  overflow: hidden;
}

/* ── Split root ──────────────────────────────────────────────── */
.lp-split {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  animation: lpFadeIn 0.42s ease-out;
}

@keyframes lpFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel izquierdo ─────────────────────────────────────────── */
.lp-left {
  width: 46%;
  flex-shrink: 0;
  background: var(--primary-700, #1f2258);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Malla de puntos decorativa */
.lp-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Orbes de luz animados */
.lp-light {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.lp-light-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(125,184,229,0.32) 0%, transparent 68%);
  top: -60px;
  left: -120px;
  animation: lp-orb-1 7s ease-in-out infinite;
}

.lp-light-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(74,134,184,0.28) 0%, transparent 65%);
  bottom: -40px;
  right: -80px;
  animation: lp-orb-2 9s ease-in-out infinite;
}

.lp-light-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: lp-orb-3 5s ease-in-out infinite;
}

@keyframes lp-orb-1 {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.85; }
  50%       { transform: translate(30px, 40px) scale(1.12); opacity: 1; }
}

@keyframes lp-orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); opacity: 0.7; }
  50%       { transform: translate(-25px, -35px) scale(1); opacity: 0.95; }
}

@keyframes lp-orb-3 {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.7; transform: translate(-50%, -50%) scale(1.2); }
}

/* ── Marca ───────────────────────────────────────────────────── */
.lp-brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
}

.lp-brand-logo { height: 64px; }

/* Ocultar texto "silerni" si aún aparece en plantillas antiguas */
.lp-brand-name { display: none; }

/* ── Frase ───────────────────────────────────────────────────── */
.lp-quote-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 1.5rem 0;
}

.lp-quote {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: center;
}

/* ── Pills de funcionalidades ────────────────────────────────── */
.lp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.lp-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
  text-align: left;
}

.lp-pill i {
  font-size: 1.3rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}

/* ── Footer izquierdo (Edumedia) ─────────────────────────────── */
.lp-left-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.lp-edumedia-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.lp-edumedia-logo {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
  transition: opacity 0.2s;
}

.lp-edumedia-link:hover .lp-edumedia-logo { opacity: 1; }

/* Ocultar texto "edumedia" si aún aparece */
.lp-edumedia-name { display: none; }

/* ── Panel derecho ───────────────────────────────────────────── */
.lp-right {
  flex: 1;
  background: #f4f6fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  position: relative;
  overflow-y: auto;
}

.lp-right-inner {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo colegio */
.lp-school-logo-wrap { margin-bottom: 1.25rem; }

.lp-school-logo {
  height: 176px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(44,47,116,0.14));
}

.lp-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary, #2c2f74);
  margin-bottom: 4px;
  text-align: center;
}

.lp-school-name {
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--primary, #2c2f74), var(--accent-deep, #4a86b8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-subheading {
  font-size: 0.82rem;
  color: var(--muted, #9ca3af);
  margin-bottom: 1.6rem;
  text-align: center;
}

/* Tarjeta del formulario */
.lp-form-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 47, 116, 0.10);
  padding: 2rem;
  margin-bottom: 0.75rem;
}

/* Bloque informativo */
.lp-info-block {
  width: 100%;
  background: rgba(44, 47, 116, 0.05);
  border-left: 4px solid var(--primary, #2c2f74);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--ink-2, #374151);
}

.lp-info-block strong { color: var(--primary, #2c2f74); }

.lp-form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2, #374151);
  margin-bottom: 6px;
  display: block;
}

.lp-input-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.lp-input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #9ca3af);
  font-size: 0.88rem;
  pointer-events: none;
}

.lp-input {
  width: 100%;
  border: 1.5px solid rgba(44, 47, 116, 0.16);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--ink, #1f2937);
  background: #f9fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.lp-input::placeholder { color: var(--muted, #9ca3af); }

.lp-input:focus {
  border-color: var(--accent, #7db8e5);
  box-shadow: 0 0 0 3px rgba(125,184,229,0.18);
  background: #fff;
}

/* Botón principal */
.lp-btn, .btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary, #2c2f74);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(44, 47, 116, 0.28);
  text-decoration: none;
}

.lp-btn:hover, .lp-btn:focus,
.btn-login:hover, .btn-login:focus {
  background: var(--primary-700, #1f2258);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 47, 116, 0.34);
  color: #fff;
}

/* Form controls de Bootstrap (compatibilidad) */
.form-control {
  border: 1.5px solid rgba(44, 47, 116, 0.16);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.9rem;
  background: #f9fafc;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--accent, #7db8e5);
  box-shadow: 0 0 0 3px rgba(125,184,229,0.18);
  background: #fff;
}

.input-group-text {
  border-radius: 10px 0 0 10px;
  background-color: var(--primary-50, #eef0fb);
  border-right: none;
  border-color: rgba(44, 47, 116, 0.12);
  color: var(--muted, #9ca3af);
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
  border-color: var(--accent, #7db8e5);
}

.form-label {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--ink-2, #374151);
}

/* Tarjetas tipo login-card */
.login-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(44, 47, 116, 0.10);
  padding: 2rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(44, 47, 116, 0.07);
}

.login-card h3 {
  color: var(--primary, #2c2f74);
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.login-card h3 i { margin-right: 10px; color: var(--accent-deep, #4a86b8); }

/* Compatibilidad con plantillas antiguas */
.description-container { display: none; }

/* Links */
.lp-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
}

.lp-link, .text-muted.small {
  font-size: 0.85rem;
  color: var(--primary, #2c2f74) !important;
  text-decoration: none;
  font-weight: 500;
}

.lp-link:hover, .text-muted.small:hover { text-decoration: underline; }

.lp-right-footer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted, #9ca3af);
  text-align: center;
}

/* Footer (compatibilidad) */
.footer {
  text-align: center;
  padding: 15px;
  color: var(--muted, #6b7280);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: transparent;
  border-top: 1px solid rgba(44,47,116,0.07);
  width: 100%;
  margin-top: auto;
  font-size: 0.82rem;
}

.footer img { height: 30px; margin-bottom: 6px; filter: brightness(0) invert(0) opacity(0.6); }

/* ── Responsive — escritorio no tan ancho ────────────────────── */
@media (max-width: 1100px) {
  .lp-features { grid-template-columns: 1fr; }
  .lp-quote { font-size: clamp(1.3rem, 2.6vw, 2rem); }
}

/* ── Responsive — tablet / móvil ────────────────────────────── */
@media (max-width: 820px) {
  html, body { overflow: auto; }

  .lp-split {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  /* El panel izquierdo se convierte en barra superior compacta */
  .lp-left {
    width: 100%;
    min-height: auto;
    padding: 0.9rem 1.5rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  /* Ocultar en móvil: frase, pills, edumedia */
  .lp-quote-area,
  .lp-features,
  .lp-left-footer { display: none !important; }

  .lp-light { display: none; }

  .lp-brand-row { margin: 0; }
  .lp-brand-logo { height: 38px; }

  .lp-right {
    flex: 1;
    padding: 2rem 1.25rem 2.5rem;
    justify-content: flex-start;
  }

  .lp-school-logo { height: 117px; }
  .lp-heading { font-size: 1.45rem; }
  .lp-form-card, .login-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .lp-left { padding: 0.75rem 1.1rem; }
  .lp-brand-logo { height: 32px; }
  .lp-right { padding: 1.5rem 1rem 2rem; }
  .lp-form-card, .login-card { padding: 1.25rem; border-radius: 12px; }
  .lp-school-logo { height: 94px; }
  .lp-heading { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-split, .lp-btn, .btn-login,
  .lp-light-1, .lp-light-2, .lp-light-3 { animation: none; transition: none; }
}
