@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

/* ===== Reset for login page ===== */
.login-new, .login-new * { box-sizing: border-box; }
.login-new { font-family: 'Inter', sans-serif !important; margin: 0; padding: 0; background: #505358; }
.login-new input, .login-new select, .login-new button, .login-new label, .login-new p, .login-new h1, .login-new h2, .login-new h3, .login-new a, .login-new span, .login-new div {
  font-family: 'Inter', sans-serif !important;
}

/* ===== Layout ===== */
.ln-page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.ln-main-row { flex: 1; display: flex; flex-direction: row; min-height: 100vh; }

/* Left panel */
.ln-left-panel {
  width: 42%; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 60px 48px;
  background: url('/advertisersPlatform/img/Mobipium-Gradient.png') center/cover no-repeat;
  min-height: 100vh; /* cover full height behind the floating navbar (ticket #1677 Fase 5 fix) */
}
.ln-left-panel .ln-pattern-overlay {
  position: absolute; inset: 0;
  background-image: url('/advertisersPlatform/img/mobipium-pattern.svg');
  background-size: cover; background-position: center;
  opacity: 0.08; z-index: 1;
}
.ln-left-panel h1 {
  font-weight: 700; font-size: 34px; color: #ffffff; line-height: 1.15;
  margin-top: 40px; max-width: 400px; position: relative; z-index: 2;
}

/* Right panel */
.ln-right-panel {
  flex: 1; background: #505358; display: flex; flex-direction: column;
  position: relative; min-height: 100vh;
  /* Desktop offset: só o painel direito desce abaixo da nav flutuante.
     O esquerdo fica full-height atrás da nav.
     Nav desktop: 60 margem + 92 altura + 38 gap = 190px (ticket #1677 Fase 5 fix) */
  padding-top: 190px;
}
.ln-right-panel-inner {
  flex: 1; width: 100%;
  min-height: calc(100vh - 190px);
  /* flex-start, não center: com center o card overflowa para cima atrás da nav
     em viewports onde o flip não caiba no espaço disponível (ticket #1677 Fase 5 fix) */
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: 0 24px 24px; /* zero top — offset já aplicado no .ln-right-panel */
}

/* Mobile header */
.ln-mobile-header {
  display: none; width: 100%; padding: 32px 16px 16px;
  align-items: center; justify-content: center; flex-direction: column; gap: 8px;
  background: transparent;
}

/* ===== Card ===== */
.ln-card {
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  animation: lnCardFadeIn 0.6s ease-out;
  width: 100%; max-width: 520px; padding: 28px 32px; margin: 0 auto;
}
@keyframes lnCardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Flip card 3D ===== */
.ln-card-container {
  width: 100%; max-width: 520px; margin: 0 auto;
}
/* Reset Bootstrap interference inside flip */
.ln-card-container,
.ln-card-container *,
.ln-card-container *::before,
.ln-card-container *::after {
  transform: none;
  transform-style: flat;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transition: none;
  perspective: none;
}
/* The flip wrapper */
.ln-flip-inner {
  position: relative;
  perspective: 1200px !important;
  transform: none !important;
}
/* The rotating element */
.ln-flip-rotator {
  position: relative;
  transform-style: preserve-3d !important;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), height 0.5s ease !important;
  transform-origin: center center !important;
  transform: rotateY(0deg) !important;
}
.ln-flip-rotator.flipped {
  transform: rotateY(180deg) !important;
}
.ln-flip-front,
.ln-flip-back {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  width: 100%;
}
.ln-flip-front {
  position: relative;
  transform: rotateY(0deg) !important;
}
.ln-flip-back {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  transform: rotateY(180deg) !important;
}
/* When flipped, swap which determines height */
.ln-flip-rotator.flipped .ln-flip-front {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
}
.ln-flip-rotator.flipped .ln-flip-back {
  position: relative;
  pointer-events: auto;
}
.ln-card-panel {
  width: 100%;
}
.ln-card-panel.ln-hidden {
  display: none !important;
}
/* Re-enable transitions on interactive elements */
.ln-card-container .ln-input { transition: border-color 0.2s ease !important; }
.ln-card-container .ln-select { transition: border-color 0.2s ease !important; }
.ln-card-container .ln-btn { transition: background 0.3s ease !important; }
.ln-card-container .ln-auth-footer a { transition: color 0.2s ease !important; }

/* ===== Form elements ===== */
.ln-label {
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px;
  color: #505358; display: block; margin-bottom: 6px;
}
.ln-input {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px;
  background: #f5f7f9; border: 1px solid #b5c0ca; border-radius: 8px;
  padding: 10px 14px; width: 100%; color: #505358; outline: none;
  transition: border-color 0.2s ease !important;
}
.ln-input:focus { border-color: #00ff9d; box-shadow: 0 0 0 3px rgba(0,255,157,0.1); }

.ln-select {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 14px;
  background: #f5f7f9; border: 1px solid #b5c0ca; border-radius: 8px;
  padding: 10px 14px; width: 100%; color: #505358; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2375828c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
  cursor: pointer; transition: border-color 0.2s ease;
}
.ln-select:focus { border-color: #00ff9d; box-shadow: 0 0 0 3px rgba(0,255,157,0.1); }

/* ===== Button ===== */
.ln-btn {
  background: linear-gradient(90deg, #00ff9d 0%, #b5c0ca 100%);
  color: #505358; font-family: 'Inter', sans-serif; font-weight: 700;
  border-radius: 8px; padding: 12px 24px; border: none; cursor: pointer;
  transition: all 0.3s ease !important; width: 100%; font-size: 15px; letter-spacing: 0.02em;
}
.ln-btn:hover { background: #00ff9d; }
.ln-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Section heading ===== */
.ln-section-heading {
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em; color: #75828c;
  margin-bottom: 16px; margin-top: 24px;
}

/* ===== Logo ===== */
.ln-logo { display: block; }
.ln-logo-sm { height: 22px; width: auto; }
.ln-logo-lg { height: 38px; width: auto; }

/* ===== Eye toggle ===== */
.ln-eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 0; display: flex;
}

/* ===== Error message ===== */
.ln-err-msg { color: #ff4444; font-size: 11px; margin-top: 2px; display: none; }
.ln-error-label { color: #ff4444; font-size: 13px; }

/* ===== Social footer ===== */
.ln-auth-footer {
  position: absolute; bottom: 20px; right: 32px;
  display: flex; align-items: center; gap: 14px; z-index: 20;
}
.ln-auth-footer a {
  color: #b5c0ca; transition: color 0.2s ease; text-decoration: none; display: flex;
}
.ln-auth-footer a:hover { color: #00ff9d; }

/* ===== Spinner ===== */
.ln-spinner {
  display: none; width: 16px; height: 16px; border: 2px solid #505358;
  border-top-color: transparent; border-radius: 50%;
  animation: lnSpin 0.6s linear infinite; vertical-align: middle; margin-right: 8px;
}
@keyframes lnSpin { to { transform: rotate(360deg); } }

/* ===== Recovery success ===== */
.ln-recovery-success { display: none; text-align: center; padding: 20px 0; }
.ln-recovery-success p { color: #505358; font-size: 14px; line-height: 1.6; margin-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .ln-left-panel { display: none !important; }
  .ln-right-panel { width: 100% !important; min-height: 100vh !important; }
  .ln-right-panel-inner { min-height: auto !important; justify-content: flex-start !important; padding: 0 16px 24px !important; }
  .ln-mobile-header { display: flex !important; }
  .ln-card { box-shadow: none !important; }
  .ln-auth-footer { position: static; justify-content: center; padding: 12px 0; width: 100%; }
}

/* ===== Multi-select dropdown (Top GEOs) ===== */
.ln-multi-select {
  position: relative;
  width: 100%;
}
.ln-multi-display {
  display: flex; align-items: center; justify-content: space-between;
  background: #f5f7f9; border: 1px solid #b5c0ca; border-radius: 8px;
  padding: 10px 14px; cursor: pointer; min-height: 42px;
  transition: border-color 0.2s ease !important;
  font-family: 'Inter', sans-serif !important; font-size: 14px;
}
.ln-multi-display:hover { border-color: #00ff9d; }
.ln-multi-placeholder {
  color: #75828c; font-size: 14px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.ln-multi-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #b5c0ca; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100;
  max-height: 220px !important; overflow: hidden;
  flex-direction: column;
}
.ln-multi-search {
  border: none !important; border-bottom: 1px solid #e8ebee !important;
  outline: none !important; padding: 10px 14px !important; font-size: 13px !important;
  background: transparent !important; width: 100% !important;
  font-family: 'Inter', sans-serif !important; box-shadow: none !important;
  border-radius: 0 !important; display: block !important;
}
.ln-multi-options {
  overflow-y: auto !important; max-height: 170px !important; padding: 4px 0;
}
.ln-multi-option {
  display: flex !important; align-items: center; gap: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 13px; color: #505358;
  font-family: 'Inter', sans-serif !important; font-weight: 400 !important;
  margin: 0 !important;
  transition: background 0.15s ease !important;
}
.ln-multi-option:hover { background: rgba(0,255,157,0.08); }
.ln-multi-option input[type="checkbox"] {
  accent-color: #00ff9d; width: 16px; height: 16px; cursor: pointer;
  margin: 0 !important;
}

/* ============================================================
   NAVBAR PORT FROM AFFILIATES (ticket #1677 — Fase 5)
   Copy 1:1 do affiliates_live_v2/frontEnd/css/login-new.css
   Não modificar isoladamente — manter sincronizado entre os dois
   projetos para garantir paridade visual.
   ============================================================ */

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

/* ── Site Header Bar (mimics mobipium.com) ── */
.nlp-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.nlp-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 60px 20px 0;
  min-height: 92px;
  padding: 16px 28px;
  background: #0000002e;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: none;
  border-radius: 24px;
  box-shadow: 0 14px 40px #0006;
  pointer-events: auto;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  animation: nlpHeaderSlideUp 0.9s cubic-bezier(0, 0, 0.3, 1) both;
}
.nlp-site-header__logo {
  flex: 1;
  flex-shrink: 1;
  flex-shrink: 0;
  padding-left: 20px;
}
.nlp-site-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.nlp-site-header__logo img {
  width: 218px;
  height: 31px;
  object-fit: contain;
}
.nlp-site-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-shrink: 0;
}
.nlp-site-header__nav > a {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  padding: 1px 10px;
  transition: color 0.2s ease !important;
  white-space: nowrap;
  opacity: 0.9;
  line-height: 1.4;
}
.nlp-site-header__nav > a:hover {
  color: #00ff9d !important;
  opacity: 1;
}
.nlp-site-header__cta {
  flex-shrink: 0;
  margin-left: 24px;
}
.nlp-site-header__cta a {
  display: inline-flex;
  align-items: center;
  background: #00ff9d !important;
  color: #505358 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s ease !important;
  white-space: nowrap;
  line-height: 1.4;
}
.nlp-site-header__cta a:hover {
  background: #00e68a !important;
}

/* Mobile hamburger for site header */
.nlp-site-header__hamburger {
  display: none;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 4px !important;
  color: rgba(255,255,255,0.85);
}
.nlp-site-header__hamburger svg {
  display: block;
}
.nlp-site-header__hamburger-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Login dropdown (mimics site "Log in" with Advertisers/Affiliates sub-menu) */
.nlp-site-header__login-dropdown {
  position: relative;
  display: inline-flex;
}
.nlp-site-header__login-trigger {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  padding: 1px 10px;
  transition: color 0.2s ease !important;
  white-space: nowrap;
  opacity: 0.9;
  line-height: 1.4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nlp-site-header__login-trigger:hover {
  color: #00ff9d !important;
  opacity: 1;
}
.nlp-site-header__login-trigger svg {
  transition: transform 0.2s ease !important;
}
.nlp-site-header__login-dropdown:hover .nlp-site-header__login-trigger svg {
  transform: rotate(180deg) !important;
}
.nlp-site-header__login-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding-top: 12px;
  z-index: 50;
}
.nlp-site-header__login-menu-inner {
  position: relative;
  background: rgba(55, 58, 63, 1);
  border: 1px solid rgba(55, 58, 63, 1);
  border-radius: 12px;
  padding: 10px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.30);
}
/* Triangle arrow pointing up */
.nlp-site-header__login-menu-inner::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: -0.78rem;
  width: 0;
  height: 0;
  border-left: 1.2rem solid transparent;
  border-right: 1.2rem solid transparent;
  border-bottom: 0.8rem solid rgba(55, 58, 63, 1);
  z-index: 1;
}
.nlp-site-header__login-dropdown:hover .nlp-site-header__login-menu {
  display: block;
}
.nlp-site-header__login-menu a {
  display: block;
  color: rgba(181, 192, 202, 0.55) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  padding: 10px 20px;
  transition: color 0.2s ease !important;
  opacity: 1 !important;
}
.nlp-site-header__login-menu a:hover {
  color: #00ff9d !important;
}

/* Mobile menu overlay
   ──────────────────────────────────────────────────────────
   Mirrors mobipium.com: full-screen overlay with two rounded
   panels (header + body) on a dark background.
   ────────────────────────────────────────────────────────── */
.nlp-site-header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #505358;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity 0.25s ease !important;
}
.nlp-site-header__mobile-menu.open {
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* Hide the body scroll when the menu is open (set via JS body class) */
body.nlp-mm-open { overflow: hidden; }

/* Header strip: logo + close */
.nlp-site-header__mobile-menu .nlp-mm-header {
  background: #75828c;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
}
.nlp-site-header__mobile-menu .nlp-mm-logo {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}
.nlp-site-header__mobile-menu .nlp-mm-logo img {
  width: 100px;
  height: auto;
  display: block;
}
.nlp-site-header__mobile-menu .nlp-mm-close {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 6px !important;
  margin: -6px -6px -6px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nlp-site-header__mobile-menu .nlp-mm-close:hover {
  opacity: 0.75;
  transform: rotate(90deg);
}
.nlp-site-header__mobile-menu .nlp-mm-close svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Body strip: items list */
.nlp-site-header__mobile-menu .nlp-mm-body {
  background: #75828c;
  border-radius: 10px;
  padding: 32px 32px 24px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nlp-site-header__mobile-menu .nlp-mm-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Individual menu items (links + the Log in toggle button share the same look) */
.nlp-site-header__mobile-menu .nlp-mm-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none !important;
  border: none !important;
  cursor: pointer;
  color: #00ff9d !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 0 !important;
  margin: 0 !important;
  text-align: left;
  transition: opacity 0.2s ease !important;
}
.nlp-site-header__mobile-menu .nlp-mm-item:hover {
  opacity: 0.75;
}
.nlp-site-header__mobile-menu .nlp-mm-item-chevron {
  flex-shrink: 0;
  color: #ffffff;
  transition: transform 0.25s ease;
}
.nlp-site-header__mobile-menu .nlp-mm-item--toggle[aria-expanded="true"] .nlp-mm-item-chevron {
  transform: rotate(90deg);
}

/* Inline Log in submenu (Advertisers / Affiliates) */
.nlp-site-header__mobile-menu .nlp-mm-submenu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 4px 16px;
  border-left: 1px solid rgba(255,255,255,0.15);
  margin-left: 4px;
}
.nlp-site-header__mobile-menu .nlp-mm-submenu.open {
  display: flex;
}
.nlp-site-header__mobile-menu .nlp-mm-subitem {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 0 !important;
  transition: opacity 0.2s ease !important;
}
.nlp-site-header__mobile-menu .nlp-mm-subitem:hover {
  opacity: 0.75;
  color: #00ff9d !important;
}

/* Mobile overrides for the nlp navbar (matches Affiliates @media 1023) */
@media (max-width: 1023px) {
  .nlp-site-header__inner {
    margin: 50px 20px 0;
    padding: 12px 16px;
    min-height: 72px;
    border-radius: 18px;
    justify-content: space-between;
  }
  .nlp-site-header__logo {
    flex: 1;
    padding-left: 0;
    display: flex;
    justify-content: center;
  }
  .nlp-site-header__logo img {
    width: 160px;
    height: auto;
  }
  .nlp-site-header__nav,
  .nlp-site-header__cta {
    display: none !important;
  }
  .nlp-site-header__hamburger {
    display: flex !important;
    flex-shrink: 0;
  }
  /* Push content below the fixed floating header on mobile.
     Mobile nav: 50px top margin + 72px min-height + 18px breathing room = 140px */
  .ln-right-panel {
    padding-top: 140px !important;
  }
}
