/* ============================================================
   login-new.css — New Mobipium Branding (Affiliates)
   Ticket #1677 — Visual rebranding only
   DO NOT modify existing CSS files
   ============================================================ */

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

/* ── Nuclear Bootstrap 3 reset for flip card ── */
.new-login-page *:not(.savingEdit),
.new-login-page *::before,
.new-login-page *::after {
  font-family: 'Inter', sans-serif !important;
  box-sizing: border-box;
  transform: none;
  transform-style: flat;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  transition: none;
}
/* Re-enable animation on spinners */
.new-login-page .savingEdit {
  animation: nlpSpin 0.6s linear infinite !important;
  -webkit-animation: nlpSpin 0.6s linear infinite !important;
  transform-style: flat !important;
  backface-visibility: visible !important;
}

/* ── Base ── */
html.new-login-html, html.new-login-html body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #505358;
}
.new-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  font-family: 'Inter', sans-serif !important;
}

/* ── Left Panel (42%) ── */
.nlp-left {
  width: 42%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  background: url('/public_img/Mobipium-Gradient.png') center center / cover no-repeat;
}
.nlp-left-content {
  position: relative;
  z-index: 2;
}
.nlp-left .nlp-logo {
  display: block;
  height: 38px;
  width: auto;
}
.nlp-left h1 {
  font-weight: 700 !important;
  font-size: 36px !important;
  color: #fff !important;
  line-height: 1.15 !important;
  margin: 40px 0 0 0 !important;
  max-width: 400px;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}
.nlp-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.nlp-stat-pill {
  background: rgba(255,255,255,0.9);
  color: #505358;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 8px 16px;
  border-radius: 20px;
  line-height: 1.4;
}
.nlp-angular-deco {
  position: absolute;
  width: 250px;
  height: 250px;
  z-index: 1;
  bottom: 0;
  right: 0;
  background-color: #00ff9d;
  opacity: 0.6;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

/* Left panel — gradient only, no pattern overlay */

/* ── Right Panel (58%) ── */
.nlp-right {
  flex: 1;
  background: #505358;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
}
.nlp-right-inner {
  flex: 1;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

/* ── Mobile Header ── */
.nlp-mobile-header {
  display: none;
  width: 100%;
  padding: 32px 16px 16px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: transparent;
}
.nlp-mobile-header .nlp-logo-sm {
  height: 22px;
  width: auto;
  display: block;
}
.nlp-mobile-header p {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: center;
  margin: 0;
}

/* ── Flip Card (Bootstrap 3 safe) ── */
.nlp-flip-container {
  perspective: 1200px !important;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  transform: none !important;
  transform-style: flat !important;
}
.nlp-flip-inner {
  position: relative !important;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform-style: preserve-3d !important;
  transform: rotateY(0deg) !important;
}
.nlp-flip-inner.flipped {
  transform: rotateY(180deg) !important;
}
.nlp-flip-front,
.nlp-flip-back {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  display: flex;
  align-items: stretch;
  width: 100%;
  transform: none !important;
  transform-style: preserve-3d !important;
}
.nlp-flip-front {
  position: relative;
}
.nlp-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: rotateY(180deg) !important;
}
.nlp-flip-inner.flipped .nlp-flip-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.nlp-flip-inner.flipped .nlp-flip-back {
  position: relative;
}

/* ── Card ── */
.nlp-card {
  background: rgba(255,255,255,0.95) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  animation: nlpCardFadeIn 0.6s ease-out;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 28px 32px;
  margin: 0;
  border: none !important;
}
.nlp-flip-front > .nlp-card,
.nlp-flip-back > .nlp-card {
  animation: none;
}
@keyframes nlpCardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Form Elements ── */
.nlp-card h2 {
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #505358 !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  border: none !important;
  background: none !important;
}
.nlp-card .nlp-subtitle {
  font-size: 14px !important;
  color: #75828c !important;
  margin: 0 !important;
  font-weight: 400 !important;
}
.nlp-label {
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #505358 !important;
  display: block !important;
  margin-bottom: 6px !important;
  position: static !important;
  transform: none !important;
  line-height: 1.4 !important;
}
.nlp-input {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  background: #f5f7f9 !important;
  border: 1px solid #b5c0ca !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  color: #505358 !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.4 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.nlp-input:focus {
  border-color: #00ff9d !important;
  box-shadow: 0 0 0 3px rgba(0,255,157,0.1) !important;
}
.nlp-input.nlp-error {
  border-color: #ff4444 !important;
}
.nlp-select {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  background: #f5f7f9 !important;
  border: 1px solid #b5c0ca !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  color: #505358 !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  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") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  cursor: pointer;
  transition: border-color 0.2s ease !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.4 !important;
}
.nlp-select:focus {
  border-color: #00ff9d !important;
  box-shadow: 0 0 0 3px rgba(0,255,157,0.1) !important;
}
.nlp-select.nlp-error {
  border-color: #ff4444 !important;
}

/* ── Button ── */
.nlp-btn {
  background: linear-gradient(90deg, #00ff9d 0%, #b5c0ca 100%) !important;
  color: #505358 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.3s ease !important;
  width: 100% !important;
  font-size: 15px !important;
  letter-spacing: 0.02em;
  text-align: center;
  display: inline-block;
  line-height: 1.4 !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.nlp-btn:hover {
  background: #00ff9d !important;
}
.nlp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nlp-btn-back {
  flex: 1;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  border: 1px solid #b5c0ca !important;
  background: transparent !important;
  color: #505358 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer;
  font-family: 'Inter', sans-serif !important;
  text-align: center;
  line-height: 1.4 !important;
  box-shadow: none !important;
}
.nlp-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ── CSS Spinner animation for savingEdit ── */
@keyframes nlpSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@-webkit-keyframes nlpSpin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

/* ── Error messages ── */
.nlp-err-msg {
  display: none !important; /* Hidden — we use red borders only */
}
.nlp-error-label {
  color: #ff4444 !important;
  font-size: 13px !important;
  text-align: center;
  display: none;
  margin-top: 8px;
}

/* Red border on invalid fields */
.nlp-input.nlp-error,
.nlp-select.nlp-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 2px rgba(255,68,68,0.15) !important;
}
/* Red border on traffic countries trigger when invalid */
.nlp-tc-trigger.nlp-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 2px rgba(255,68,68,0.15) !important;
}

/* Multi-select (traffic, vertical) */
.nlp-select[multiple] {
  min-height: 38px !important;
  max-height: 80px !important;
  padding: 6px 8px !important;
  background-image: none !important;
  padding-right: 14px !important;
}
.nlp-select[multiple] option {
  padding: 3px 6px !important;
  font-size: 13px !important;
  border-radius: 4px;
}
.nlp-select[multiple] option:checked {
  background: #00ff9d linear-gradient(0deg, #00ff9d 0%, #00ff9d 100%) !important;
  color: #505358 !important;
}

/* ── Eye toggle button ── */
.nlp-eye-btn {
  position: absolute !important;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 !important;
  display: flex;
  z-index: 2;
}

/* ── Field gap ── */
.nlp-field-gap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nlp-row-2col {
  display: flex;
  gap: 12px;
}
.nlp-row-2col > div {
  flex: 1;
}

/* ── Step progress bar ── */
.nlp-step-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.nlp-step-bar-label {
  font-size: 12px !important;
  transition: all 0.3s ease !important;
  cursor: default;
}
.nlp-step-bar-tracks {
  display: flex;
  gap: 4px;
}
.nlp-step-bar-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e8ebee;
  overflow: hidden;
}
.nlp-step-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #00ff9d;
  transition: width 0.5s ease !important, opacity 0.5s ease !important;
}

/* ── Section heading ── */
.nlp-section-heading {
  font-weight: 700 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #75828c !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
}

/* ── Traffic countries multi-select dropdown ── */
.nlp-tc-trigger {
  cursor: pointer;
  min-height: 38px;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nlp-tc-placeholder {
  color: #75828c;
  font-size: 13px !important;
}
.nlp-tc-dropdown {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #b5c0ca;
  border-radius: 8px;
  margin-top: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  display: none;
}
.nlp-tc-search {
  width: 100%;
  padding: 6px 10px !important;
  font-size: 12px !important;
  border: 1px solid #e8ebee !important;
  border-radius: 6px !important;
  outline: none !important;
  font-family: 'Inter', sans-serif !important;
  background: #fff !important;
  box-shadow: none !important;
  height: auto !important;
}
.nlp-tc-option {
  padding: 6px 12px;
  font-size: 12px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nlp-tc-option:hover {
  background: rgba(0,255,157,0.06);
}
.nlp-tc-option.selected {
  background: rgba(0,255,157,0.12);
}
.nlp-tc-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid #b5c0ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #505358 !important;
  flex-shrink: 0;
}
.nlp-tc-check.on {
  background: #00ff9d;
}
.nlp-chip {
  background: #00ff9d;
  color: #505358 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.6;
}
.nlp-chip-x {
  cursor: pointer;
  font-size: 12px !important;
  line-height: 1;
}

/* ── Links ── */
.nlp-link {
  color: #505358 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  font-size: 13px !important;
}
.nlp-link-muted {
  font-size: 13px !important;
  color: #75828c !important;
  text-decoration: none !important;
}
.nlp-link-green {
  color: #00c07a !important;
  text-decoration: underline !important;
}

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

/* ── Recaptcha container ── */
.nlp-recaptcha-container {
  margin-top: 12px;
  min-height: 78px;
}

/* ── Success/message blocks ── */
.nlp-message-block {
  text-align: center;
  display: none;
  padding: 16px 0;
}
.nlp-message-block p {
  color: #505358 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* ── Chatwoot bubble offset ── */
.woot-widget-bubble {
  bottom: 70px !important;
}

/* ── Language selector ── */
.nlp-lang-selector {
  position: absolute;
  top: 20px;
  right: 32px;
  z-index: 30;
}
.nlp-lang-selector .select2-container {
  width: 42px !important;
}
/* The closed button */
.nlp-lang-selector .select2-container .select2-selection--single {
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 6px !important;
  height: 30px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nlp-lang-selector .select2-container .select2-selection__rendered {
  line-height: 30px !important;
  padding: 0 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.nlp-lang-selector .select2-container .select2-selection__arrow {
  display: none !important;
}
/* Flag icon sizing — force larger */
.nlp-lang-selector .flag-icon,
.nlp-lang-selector .flags-dropdown .flag-icon {
  display: inline-block !important;
  width: 24px !important;
  height: 18px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 2px !important;
  line-height: 18px !important;
  vertical-align: middle !important;
}
.nlp-lang-selector .flags-dropdown {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  line-height: 1 !important;
}
/* Dropdown panel */
.select2-dropdown.bigdrop-left {
  min-width: 110px !important;
  border-radius: 8px !important;
  border: 1px solid #e8ebee !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}
.select2-dropdown.bigdrop-left .select2-results__option {
  padding: 8px 12px !important;
  font-size: 13px !important;
  font-family: 'Inter', sans-serif !important;
}
.select2-dropdown.bigdrop-left .select2-results__option .flags-dropdown {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.select2-dropdown.bigdrop-left .select2-results__option .flag-icon {
  display: inline-block !important;
  width: 24px !important;
  height: 18px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-radius: 2px !important;
  flex-shrink: 0 !important;
}
.select2-dropdown.bigdrop-left .select2-results__option .name-lang {
  font-size: 13px !important;
  color: #505358 !important;
  font-weight: 500 !important;
  margin-left: 8px !important;
}
.select2-dropdown.bigdrop-left .select2-results__option--highlighted {
  background: rgba(0,255,157,0.1) !important;
  color: #505358 !important;
}

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

/* ── Password info tooltip (recovery new pass) ── */
.nlp-info-password {
  color: #00ff9d !important;
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 0;
  font-size: 14px !important;
}

/* ── Override jQuery validate error labels inside our page ── */
.new-login-page label.error {
  color: #ff4444 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  position: static !important;
  display: block !important;
  margin-top: 2px;
  transform: none !important;
}

/* ── Terms text ── */
.nlp-terms {
  font-size: 11px !important;
  color: #75828c !important;
  margin-top: 12px;
  text-align: center;
  line-height: 1.5 !important;
}

/* ── Hide Bootstrap navbar/footer on new login page ── */
.new-login-html .navbar,
.new-login-html footer {
  display: none !important;
}
.new-login-html .container,
.new-login-html .container-fluid {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Language dropdown — new globe icon style */
.nlp-lang-selector .rb-icon-btn {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 6px !important;
  color: rgba(255,255,255,0.6) !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.nlp-lang-selector .rb-icon-btn:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.nlp-lang-selector .rb-dropdown-hover {
  position: relative !important;
  display: inline-flex !important;
}

/* Hide Select2 container on login pages */
.nlp-lang-selector .select2-container {
  display: none !important;
}

.nlp-lang-selector .rb-dropdown-item:hover {
  background-color: rgba(255,255,255,0.05) !important;
  color: #fff !important;
}
