/* =========================================================
   usuarios/static/usuarios/css/login.css
   Premium split-screen login — OMSTA / CristecnoViajes SRL
   ========================================================= */

/* ── Custom properties ── */
:root {
  --lx-navy:       #0C1A2E;
  --lx-navy-mid:   #162844;
  --lx-navy-edge:  #1E3560;
  --lx-gold:       #C9A46B;
  --lx-gold-light: #E2C08A;
  --lx-white:      #FFFFFF;
  --lx-off-white:  #F7F8FA;
  --lx-border:     rgba(15, 23, 42, 0.09);
  --lx-text:       #0F172A;
  --lx-muted:      #64748B;
  --lx-error:      #C53030;
  --lx-error-bg:   #FFF5F5;
  --lx-error-ring: rgba(197, 48, 48, 0.20);
  --lx-blue:       #2563EB;
  --lx-blue-hover: #1D4ED8;
  --lx-radius:     14px;
  --lx-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Override base auth layout so we fill the viewport ── */
.auth-layout {
  background: var(--lx-off-white) !important;
}

.auth-main {
  padding: 0 !important;
  align-items: stretch !important;
}

.auth-main > .container-fluid {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Shell: two-column split ── */
.lx-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════
   BRAND PANEL (left)
══════════════════════════════════════════════ */
.lx-brand {
  position: relative;
  background: var(--lx-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
  overflow: hidden;
}

/* Dot-grid texture */
.lx-brand__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Ambient orbs */
.lx-brand__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
}
.lx-brand__orb--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 70%);
  top: -120px;
  right: -80px;
  animation: orbDrift 14s ease-in-out infinite alternate;
}
.lx-brand__orb--2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(201, 164, 107, 0.18), transparent 70%);
  bottom: -80px;
  left: -60px;
  animation: orbDrift 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 15px) scale(1.06); }
}

/* Brand content */
.lx-brand__content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.7s ease both;
}

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

.lx-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.70);
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(4px);
}

.lx-brand__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0.08); }
}

.lx-brand__logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.lx-brand__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lx-gold);
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.lx-brand__name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.25rem;
  font-weight: 400;
  color: var(--lx-white);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}

.lx-brand__tagline {
  font-family: 'Geist', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin: 0 0 2.5rem;
  max-width: 280px;
}

.lx-brand__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lx-brand__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  animation: fadeUp 0.7s ease both;
}
.lx-brand__features li:nth-child(1) { animation-delay: 0.10s; }
.lx-brand__features li:nth-child(2) { animation-delay: 0.18s; }
.lx-brand__features li:nth-child(3) { animation-delay: 0.26s; }

.lx-brand__features li svg {
  flex-shrink: 0;
  color: var(--lx-gold);
  opacity: 0.9;
}

/* Copyright */
.lx-brand__copy {
  position: absolute;
  bottom: 2rem;
  left: 3.5rem;
  z-index: 1;
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  margin: 0;
  font-weight: 400;
}

/* ══════════════════════════════════════════════
   FORM PANEL (right)
══════════════════════════════════════════════ */
.lx-form-panel {
  background: var(--lx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 2.5rem;
}

.lx-form-wrap {
  width: 100%;
  max-width: 400px;
  animation: fadeUp 0.65s 0.15s ease both;
}

/* Form header */
.lx-form-header {
  margin-bottom: 2rem;
}

.lx-form-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lx-blue);
  margin-bottom: 0.75rem;
}

.lx-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lx-blue);
}

.lx-form-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--lx-text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.4rem;
}

.lx-form-subtitle {
  font-family: 'Geist', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--lx-muted);
  margin: 0;
}

/* Alert */
.lx-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--lx-error-bg);
  border: 1px solid rgba(197, 48, 48, 0.18);
  color: var(--lx-error);
  font-family: 'Geist', sans-serif;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: shakeIn 0.35s ease;
}

@keyframes shakeIn {
  0%   { transform: translateX(-6px); opacity: 0; }
  40%  { transform: translateX(4px); }
  70%  { transform: translateX(-2px); }
  100% { transform: translateX(0);   opacity: 1; }
}

.lx-alert svg { flex-shrink: 0; margin-top: 1px; }

/* Form */
.lx-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Field */
.lx-field { display: flex; flex-direction: column; gap: 6px; }

.lx-label {
  font-family: 'Geist', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--lx-text);
  letter-spacing: 0.01em;
}

.lx-field-help {
  margin: 0;
  font-family: 'Geist', sans-serif;
  font-size: 0.78rem;
  color: var(--lx-text-soft);
}

/* Input wrapper */
.lx-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.lx-input-icon {
  position: absolute;
  left: 13px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color var(--lx-transition);
  z-index: 1;
}

/* Override Django's rendered input */
.lx-input-wrap input[type="text"],
.lx-input-wrap input[type="email"],
.lx-input-wrap input[type="password"],
.lx-form .form-control {
  width: 100%;
  padding: 11px 42px 11px 42px;
  border: 1.5px solid var(--lx-border);
  border-radius: var(--lx-radius);
  background: var(--lx-off-white);
  font-family: 'Geist', sans-serif;
  font-size: 0.94rem;
  font-weight: 400;
  color: var(--lx-text);
  outline: none;
  transition: border-color var(--lx-transition), background var(--lx-transition), box-shadow var(--lx-transition);
  box-shadow: none;
  -webkit-appearance: none;
}

.lx-input-wrap input[type="text"]:focus,
.lx-input-wrap input[type="email"]:focus,
.lx-input-wrap input[type="password"]:focus,
.lx-form .form-control:focus {
  border-color: var(--lx-blue);
  background: var(--lx-white);
  box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.10);
}

.lx-input-wrap:focus-within .lx-input-icon { color: var(--lx-blue); }

/* Error state */
.lx-field--error .lx-input-wrap input,
.lx-field--error .form-control {
  border-color: var(--lx-error) !important;
  background: var(--lx-error-bg) !important;
  box-shadow: 0 0 0 3.5px var(--lx-error-ring) !important;
}

.lx-field-error {
  font-family: 'Geist', sans-serif;
  font-size: 0.78rem;
  color: var(--lx-error);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lx-field-error::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lx-error);
  flex-shrink: 0;
}

/* Toggle password */
.lx-toggle-pass {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #94A3B8;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--lx-transition), background var(--lx-transition);
  padding: 0;
}

.lx-toggle-pass:hover {
  color: var(--lx-blue);
  background: rgba(37,99,235,0.07);
}

/* Submit button */
.lx-btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  margin-top: 0.25rem;
  border: none;
  border-radius: var(--lx-radius);
  background: var(--lx-navy);
  color: var(--lx-white);
  font-family: 'Geist', sans-serif;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--lx-transition), transform var(--lx-transition), box-shadow var(--lx-transition);
  overflow: hidden;
}

.lx-btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.05));
  border-radius: inherit;
}

.lx-btn-submit:not(:disabled):hover {
  background: var(--lx-navy-edge);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(12, 26, 46, 0.22);
}

.lx-btn-submit:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}

.lx-btn-submit:disabled {
  background: #CBD5E1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lx-btn-submit:disabled .lx-btn-arrow { opacity: 0; }

.lx-btn-arrow {
  display: flex;
  align-items: center;
  transition: transform var(--lx-transition), opacity var(--lx-transition);
}

.lx-btn-submit:not(:disabled):hover .lx-btn-arrow {
  transform: translateX(3px);
}

/* Spinner inside button */
.lx-btn-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.lx-btn-submit.is-loading .lx-btn-arrow { display: none; }
.lx-btn-submit.is-loading .lx-btn-spinner { display: block; }
.lx-btn-submit.is-loading .lx-btn-label { opacity: 0.75; }

/* Support link */
.lx-support {
  margin-top: 1.75rem;
  text-align: center;
}

.lx-support-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Geist', sans-serif;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--lx-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color var(--lx-transition), background var(--lx-transition);
}

.lx-support-link:hover {
  color: var(--lx-blue);
  background: rgba(37, 99, 235, 0.06);
}

/* ── Divider ── */
.lx-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lx-border);
  font-size: 0.75rem;
  color: #CBD5E1;
  font-family: 'Geist', sans-serif;
}
.lx-divider::before,
.lx-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lx-border);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .lx-shell {
    grid-template-columns: 1fr;
  }

  .lx-brand {
    display: none;
  }

  .lx-form-panel {
    min-height: 100vh;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, #F7F8FA 0%, #FFFFFF 100%);
  }

  .lx-form-wrap {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .lx-brand { padding: 2.5rem 2rem; }
  .lx-brand__name { font-size: 2.5rem; }
  .lx-form-panel { padding: 3rem 2rem; }
}

/* ── Focus-visible accessibility ── */
.lx-btn-submit:focus-visible,
.lx-toggle-pass:focus-visible,
.lx-support-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.40);
  outline-offset: 2px;
}
