/* ═══ LOGIN PAGE ═══
   Standalone styles for auth/login.html.
   Prefix: lp- (login page). Uses --ds-* tokens from variables.css.
*/

body.lp-body-root {
  font-family: var(--ds-font-family);
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--ds-surface-base);
  margin: 0;
  padding: 0;
}

/* ── Left brand panel ────────────────────────────────── */
.lp-brand {
  width: 440px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #000050 0%, #1A178A 55%, #0D0A6E 100%);
  display: flex;
  flex-direction: column;
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
}

.lp-brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lp-brand-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0) invert(1) sepia(1) saturate(1.5) hue-rotate(210deg);
  opacity: 0.12;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.lp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.lp-logo-brand {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.lp-logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.lp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
  padding-bottom: 12px;
}

.lp-product {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.lp-product span {
  color: rgba(255, 255, 255, 0.45);
}

.lp-tagline {
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 36px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--ds-radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.lp-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
}

/* ── Right form panel ────────────────────────────────── */
.lp-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow-y: auto;
}

.lp-card {
  width: 100%;
  max-width: 390px;
}

.lp-card-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.lp-card-icon {
  width: 32px;
  height: 32px;
  background: var(--ds-rose-500);
  border-radius: var(--ds-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.lp-card-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.lp-card-logo-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-text-primary);
  letter-spacing: -0.01em;
}

.lp-card-logo-sub {
  font-size: 9px;
  font-weight: 600;
  color: var(--ds-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lp-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--ds-text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.lp-sub {
  font-size: 13.5px;
  color: var(--ds-text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ── Google button ───────────────────────────────────── */
.lp-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  border: 1.5px solid var(--ds-border-component);
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-body);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
  letter-spacing: -0.01em;
  font-family: var(--ds-font-family);
  line-height: 1;
}

.lp-btn-google:hover {
  border-color: var(--ds-indigo-400);
  box-shadow: 0 2px 10px rgba(0, 0, 80, 0.10);
}

.lp-btn-google:active {
  background: var(--ds-surface-base);
}

/* ── SSO note ────────────────────────────────────────── */
.lp-sso-note {
  margin-top: 20px;
  background: var(--ds-indigo-100);
  border: 1px solid var(--ds-indigo-200);
  border-radius: var(--ds-radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lp-sso-note-icon {
  color: var(--ds-indigo-600);
  flex-shrink: 0;
  margin-top: 1px;
}

.lp-sso-note p {
  font-size: 12px;
  color: var(--ds-indigo-700);
  line-height: 1.55;
  margin: 0;
}

.lp-sso-note strong {
  font-weight: 600;
}

/* ── Footer ──────────────────────────────────────────── */
.lp-footer {
  margin-top: 32px;
  font-size: 11.5px;
  color: var(--ds-text-muted);
  line-height: 1.6;
  text-align: center;
}

.lp-footer a {
  color: var(--ds-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.12s;
}

.lp-footer a:hover {
  color: var(--ds-text-primary);
}

/* ── Language selector (login) ───────────────────────── */
.lp-lang {
    position: fixed;
    top: var(--ds-sp-4, 16px);
    right: var(--ds-sp-5, 20px);
    z-index: 100;
}

.lp-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--ds-border-component, #d8dee9);
    border-radius: var(--ds-radius-md, 8px);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ds-text-body, #374151);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-lang-btn:hover {
    border-color: var(--ds-indigo-400, #9397bf);
    box-shadow: var(--ds-shadow-card-hover, 0 4px 12px -2px rgba(0,0,80,0.10));
}

.lp-lang-globe { color: var(--ds-text-muted, #9397bf); }

.lp-lang-chevron {
    color: var(--ds-text-muted, #9397bf);
    transition: transform 0.15s;
}

.lp-lang-btn[aria-expanded="true"] .lp-lang-chevron { transform: rotate(180deg); }

.lp-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--ds-surface-white, #fff);
    border: 1.5px solid var(--ds-border-component, #d8dee9);
    border-radius: var(--ds-radius-md, 8px);
    box-shadow: var(--ds-shadow-menu, 0 8px 24px -4px rgba(0,0,80,0.12));
    padding: 4px;
    min-width: 160px;
    list-style: none;
    margin: 0;
}

.lp-lang-menu.open { display: block; }

.lp-lang-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ds-text-body, #374151);
    cursor: pointer;
    border-radius: var(--ds-radius-sm, 6px);
    transition: background 0.12s;
}

.lp-lang-option:hover { background: var(--ds-nav-hover-bg, #f4f6fb); }

.lp-lang-option.active {
    background: var(--ds-indigo-100, #eef1f7);
    color: var(--ds-indigo-800, #000050);
    font-weight: 600;
}

.lp-lang-flag { font-size: 15px; line-height: 1; }

/* ── Steps ───────────────────────────────────────────── */
.lp-step { display: none; }
.lp-step.active { display: block; }

/* ── Select empresa ──────────────────────────────────── */
.lp-field {
  margin-bottom: 20px;
}

.lp-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ds-text-label, var(--ds-text-muted));
  margin-bottom: 6px;
}

.lp-select-wrap { position: relative; }

.lp-select {
  width: 100%;
  padding: 11px 36px 11px 14px;
  background: #fff;
  border: 1.5px solid var(--ds-border-component);
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  color: var(--ds-text-primary);
  font-family: var(--ds-font-family);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lp-select:focus {
  border-color: var(--ds-indigo-600, #000050);
  box-shadow: 0 0 0 3px rgba(0, 0, 80, 0.08);
}

.lp-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ds-text-muted);
}

/* ── Primary button (step 2 enter) ──────────────────── */
.lp-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: var(--ds-indigo-800, #000050);
  border: none;
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: var(--ds-font-family);
  letter-spacing: -0.01em;
  line-height: 1;
  transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
}

.lp-btn-primary:hover:not(:disabled) {
  background: var(--ds-indigo-700, #1A178A);
  box-shadow: 0 2px 10px rgba(0, 0, 80, 0.18);
}

.lp-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Divider ─────────────────────────────────────────── */
.lp-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  color: var(--ds-text-muted);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-divider::before,
.lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ds-border-component);
}

/* ── New company link ────────────────────────────────── */
.lp-new-company-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: transparent;
  border: 1.5px solid var(--ds-border-component);
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ds-text-body);
  cursor: pointer;
  font-family: var(--ds-font-family);
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.lp-new-company-link:hover {
  color: var(--ds-indigo-800, #000050);
  border-color: var(--ds-indigo-400, #9397bf);
  box-shadow: var(--ds-shadow-card-hover, 0 4px 12px -2px rgba(0, 0, 80, 0.10));
}

/* ── Back button ─────────────────────────────────────── */
.lp-btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: var(--ds-radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-text-muted);
  cursor: pointer;
  font-family: var(--ds-font-family);
  transition: color 0.15s, background 0.15s;
}

.lp-btn-back:hover {
  color: var(--ds-text-primary);
  background: var(--ds-nav-hover-bg, #f4f6fb);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-brand {
    display: none;
  }

  .lp-form-panel {
    padding: 32px 24px;
  }
}
