/* ═══════════════════════════════════════════════════════
   _login.css — Estilos compartidos login / forgot / reset
   Incluido via <link> en las páginas de autenticación
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  min-height: 100vh; display: flex;
  -webkit-font-smoothing: antialiased;
  background: #021f1a;
}

/* ════════════════════════════════════
   Panel izquierdo
════════════════════════════════════ */
.lp-left {
  display: none;
  width: 52%;
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #021f1a 0%, #034d45 50%, #066b5e 100%);
}
@media (min-width: 900px) { .lp-left { display: flex; flex-direction: column; } }

.lp-left::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(230,125,26,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13,181,162,.12) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lp-left__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  height: 100%; padding: 3rem 3.5rem;
}
.lp-left__brand { display: flex; align-items: center; gap: 1rem; }
.lp-left__brand img {
  height: 56px;
  background: rgba(255,255,255,.92);
  border-radius: 10px;
  padding: 6px 10px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
}
.lp-left__brand-sep { width: 1px; height: 40px; background: rgba(255,255,255,.25); }
.lp-left__brand-name {
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .12em; line-height: 1.4;
}
.lp-left__main { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.lp-left__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(230,125,26,.2); border: 1px solid rgba(230,125,26,.35);
  color: #fbbf24; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 999px;
  margin-bottom: 1.75rem; width: fit-content;
}
.lp-left__tag::before {
  content: ''; width: 6px; height: 6px;
  background: #fbbf24; border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.lp-left__title {
  font-size: 2.6rem; font-weight: 900; color: #fff;
  line-height: 1.1; letter-spacing: -.035em; margin-bottom: .75rem;
}
.lp-left__title em {
  font-style: normal;
  background: linear-gradient(90deg, #e07d1a, #f59e0b);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.lp-left__sub {
  font-size: .9rem; color: rgba(255,255,255,.6);
  line-height: 1.65; margin-bottom: 2.25rem; max-width: 340px;
}
.lp-left__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.lp-left__pill {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8); font-size: .73rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 999px;
}
.lp-left__pill svg { opacity: .7; flex-shrink: 0; }
.lp-left__footer {
  font-size: .72rem; color: rgba(255,255,255,.3);
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem;
}

/* ════════════════════════════════════
   Panel derecho
════════════════════════════════════ */
.lp-right {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #f4f7f6; min-height: 100vh;
  padding: 2.5rem 1.5rem;
}

@media (max-width: 380px) {
  .lp-right { padding: 1.75rem 1rem; }
}

.lp-form-wrap {
  width: 100%; max-width: 400px;
  animation: slideUp .45s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo móvil */
.lp-mobile-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; margin-bottom: 2.25rem;
}
.lp-mobile-brand img { height: 48px; }
.lp-mobile-brand span {
  font-size: .7rem; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .1em; text-align: center;
}
@media (min-width: 900px) { .lp-mobile-brand { display: none; } }

/* Título / subtítulo */
.lp-form-title {
  font-size: 1.6rem; font-weight: 900; color: #0d2561;
  letter-spacing: -.03em; margin-bottom: .35rem; line-height: 1.2;
}
@media (max-width: 380px) { .lp-form-title { font-size: 1.35rem; } }

.lp-form-sub {
  font-size: .82rem; color: #6b7280; margin-bottom: 1.75rem; line-height: 1.55;
}

/* Campos */
.lp-field { margin-bottom: 1.1rem; }
.lp-field label {
  display: block; font-size: .72rem; font-weight: 700;
  color: #374151; margin-bottom: .4rem; letter-spacing: .04em;
  text-transform: uppercase;
}
.lp-field-inner { position: relative; }
.lp-field-inner > svg {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: #9ca3af; pointer-events: none; flex-shrink: 0;
}
.lp-field input {
  width: 100%; padding: .8rem .85rem .8rem 2.6rem;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: .9rem; font-family: inherit; color: #1a2535;
  background: #fff; transition: border-color .18s, box-shadow .18s; outline: none;
}
.lp-field input::placeholder { color: #c4cdd6; }
.lp-field input:focus {
  border-color: #034d45;
  box-shadow: 0 0 0 3px rgba(3,77,69,.1);
}
.lp-field input:disabled { background: #f1f5f4; color: #9ca3af; cursor: not-allowed; }

/* Toggle ojo */
.lp-field__eye {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #9ca3af;
  padding: .3rem; line-height: 0; transition: color .18s;
}
.lp-field__eye:hover { color: #034d45; }

/* Hint de contraseña */
.lp-field__hint {
  font-size: .72rem; color: #9ca3af; margin-top: .35rem; line-height: 1.4;
}

/* Botón principal */
.lp-btn {
  width: 100%; padding: .88rem;
  background: linear-gradient(135deg, #034d45 0%, #066b5e 100%);
  color: #fff; border: none; border-radius: 10px;
  font-size: .92rem; font-weight: 800; font-family: inherit; cursor: pointer;
  letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 4px 16px rgba(3,77,69,.3);
  margin-top: 1.4rem;
}
.lp-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(3,77,69,.38); }
.lp-btn:active:not(:disabled) { transform: translateY(0); }
.lp-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* Botón secundario / outline */
.lp-btn--outline {
  background: transparent; color: #034d45;
  border: 1.5px solid #034d45; box-shadow: none;
  margin-top: .6rem;
}
.lp-btn--outline:hover:not(:disabled) {
  background: rgba(3,77,69,.06); box-shadow: none; transform: none;
}

/* Separador */
.lp-divider {
  display: flex; align-items: center; gap: .75rem; margin: 1.4rem 0;
}
.lp-divider::before, .lp-divider::after { content:''; flex:1; height:1px; background:#e2e8f0; }
.lp-divider span { font-size: .72rem; color: #9ca3af; white-space: nowrap; }

/* Alertas */
.lp-alert {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem; border-radius: 10px;
  font-size: .82rem; line-height: 1.5; margin-bottom: 1.25rem;
}
.lp-alert svg { flex-shrink: 0; margin-top: 1px; }
.lp-alert--err  { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.lp-alert--info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.lp-alert--ok   { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }

/* Links */
.lp-links { margin-top: 1.4rem; text-align: center; font-size: .78rem; color: #9ca3af; }
.lp-links a { color: #034d45; font-weight: 700; text-decoration: none; }
.lp-links a:hover { text-decoration: underline; }

.lp-back {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  margin-top: 2rem; font-size: .75rem; color: #9ca3af; text-decoration: none;
  transition: color .18s;
}
.lp-back:hover { color: #034d45; }
