/* =========================
   ScanWin — login.css
   -------------------------
   Page-specific styles for the Login page (index.html).
   Includes the showcase panel, form panel, and the page's
   responsive overrides. Shared globals live in style.css.
========================= */


/* =========================
   Login Page — Showcase Panel Start
   (left side, dark)
========================= */
.sw-showcase {
  background: var(--sw-bg-dark);
  color: #fff;
  padding: 64px;
  min-height: 100vh;
}

/* On lg+ pin the showcase to the viewport so the column doesn't
   stretch to match a tall form column (login is taller than
   forgot-password). Without this, the 3 showcase rows would
   redistribute via justify-content-between and appear to "jump"
   when switching between auth pages. Below 992px the showcase
   is hidden via d-none, so the rule is scoped to lg+. */
@media (min-width: 992px) {
  .sw-showcase {
    height: 100vh;
    min-height: 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}

/* Live-now pill */
.sw-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}

.sw-live-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--sw-lime);
  box-shadow: 0 0 0 4px rgba(212, 255, 63, 0.15);
}

/* Glass testimonial card */
.sw-testimonial {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 592px;
}

.sw-testimonial__quote {
  font-size: 80px;
  line-height: 56px;
  font-weight: 700;
  color: var(--sw-lime);
  margin: 0 0 28px 0;
}

.sw-testimonial__text {
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.11px;
  margin: 0 0 28px 0;
  color: #fff;
}

.sw-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--sw-violet);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sw-testimonial__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.sw-testimonial__meta {
  font-size: 12px;
  opacity: 0.6;
  line-height: 1.2;
}

/* Proof-stat pills (bottom of showcase) */
.sw-proof-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 180px;
}

.sw-proof-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.sw-proof-stat__dot--lime  { background: var(--sw-lime); }
.sw-proof-stat__dot--green { background: #34d399; }
.sw-proof-stat__dot--pink  { background: #f472b6; }

.sw-proof-stat__label {
  font-size: 12px;
  opacity: 0.7;
  font-weight: 500;
}

.sw-proof-stat__value {
  font-size: 13px;
  font-weight: 600;
}
/* =========================
   Login Page — Showcase Panel End
========================= */


/* =========================
   Login Page — Form Panel Start
   (right side, light)
========================= */
.sw-form-panel {
  background: var(--sw-bg-app);
  padding: 56px 96px 25px;
  min-height: 100vh;
}

/* Constrains form column width — Bootstrap has no 528px utility */
.sw-form-narrow {
  max-width: 528px;
}

/* Brand mark + wordmark at top */
.sw-brand__mark {
  width: 29px;
  height: 29px;
}

.sw-brand__name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #0f1020;
}

/* Heading block */
.sw-form-heading h1 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.88px;
  line-height: 48px;
  color: var(--sw-text);
  margin: 0 0 8px;
}

.sw-form-heading p {
  font-size: 14px;
  color: var(--sw-text-muted);
  margin: 0;
}

/* Inputs with leading icon (Figma design — icon inside the field) */
.sw-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sw-border);
  border-radius: 10px;
  padding: 0 16px;
  height: 52px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.sw-input-group:focus-within {
  border-color: var(--sw-violet);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.15);
}

.sw-input-group__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.6;
  margin-right: 12px;
}

.sw-input-group__icon--right {
  margin-left: 12px;
  margin-right: 0;
  cursor: pointer;
}

.sw-input-group input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--sw-text);
  height: 100%;
}

.sw-input-group input::placeholder {
  color: var(--sw-text-faint);
  font-size: 14px;
}

.sw-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--sw-text);
  margin-bottom: 8px;
}

/* Custom violet checkbox (Figma square + check, not Bootstrap default) */
.sw-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  cursor: pointer;
}

.sw-check input { display: none; }

.sw-check__box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--sw-violet);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.sw-check__box svg {
  margin-top: 1px;
}

.sw-check input:not(:checked) + .sw-check__box {
  background: #fff;
  border: 1.5px solid var(--sw-border-strong);
  color: transparent;
}

.sw-check__label {
  font-size: 13px;
  color: var(--sw-text-muted);
  font-weight: 500;
}

/* Primary submit button — taller than Bootstrap default per Figma */
.sw-btn-submit {
  height: 56px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
}

/* Divider with text in the middle */
.sw-divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sw-divider hr {
  flex: 1;
  border: 0;
  border-top: 1px solid #929089;
  margin: 0;
}

.sw-divider span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.88px;
  color: var(--sw-text-faint);
  text-transform: uppercase;
}

/* Social login buttons (3 across on every viewport per Figma) */
.sw-social-btn {
  height: 48px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sw-border-strong);
  color: var(--sw-text);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.sw-social-btn:hover {
  background: #f5f5f7;
  border-color: #c9c4b6;
}

.sw-social-btn img {
  width: 20px;
  height: 20px;
}

/* Inline error message under the form */
.sw-form-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin: -8px 0 0;
}

/* Footer (legal links) */
.sw-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sw-text-faint);
}

.sw-legal a {
  color: var(--sw-text-muted);
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
}

.sw-legal a:hover {
  color: var(--sw-violet);
}
/* =========================
   Login Page — Form Panel End
========================= */


/* =========================
   Login Page Responsive Start
========================= */

/* Tablet & small desktop — stack the two-column layout */
@media (max-width: 991.98px) {
  .sw-showcase {
    padding: 40px 24px;
    min-height: auto;
  }

  .sw-form-panel {
    padding: 40px 24px;
    min-height: auto;
  }

  .sw-form-heading h1 {
    font-size: 32px;
    line-height: 1.15;
  }

  .sw-testimonial {
    padding: 24px;
  }

  .sw-testimonial__text {
    font-size: 18px;
    line-height: 26px;
  }
}

/* Phones — tighten paddings and stack legal footer */
@media (max-width: 575.98px) {
  .sw-showcase {
    padding: 32px 20px;
  }

  .sw-form-panel {
    padding: 32px 20px;
  }

  .sw-proof-stat {
    min-width: 100%;
  }

  .sw-social-btn {
    font-size: 13px;
    gap: 6px;
  }

  .sw-social-btn img {
    width: 18px;
    height: 18px;
  }

  .sw-legal {
    flex-direction: column;
    gap: 12px;
  }

  .sw-legal a {
    margin-left: 12px;
  }

  .sw-legal a:first-child {
    margin-left: 0;
  }
}
/* =========================
   Login Page Responsive End
========================= */

/* =========================================================
   Choose-profile modal
========================================================= */
.sw-cp-page {
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #12111f;
}
.sw-cp-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sw-cp-modal[hidden] { display: none; }
.sw-cp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 31, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sw-cp-modal.is-open .sw-cp-modal__backdrop { opacity: 1; }
.sw-cp-modal__dialog {
  position: relative;
  width: 600px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--sw-border, #ece9e0);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 15, 31, 0.28);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sw-cp-modal.is-open .sw-cp-modal__dialog {
  transform: none;
  opacity: 1;
}
.sw-cp-modal__close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--sw-text-muted, #6b6f7b);
  border-radius: 8px;
  cursor: pointer;
}
.sw-cp-modal__close:hover { background: #f4f4f7; }
.sw-cp-modal__close svg {
  width: 20px;
  height: 20px;
}
.sw-cp-modal__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--sw-text, #1a1232);
  margin: 0;
  padding-right: 28px;
}
.sw-cp-modal__sub {
  font-size: 14px;
  color: var(--sw-text-muted, #6b6f7b);
  margin: 6px 0 0;
}
.sw-cp-form {
  display: contents;
}
.sw-cp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}
.sw-cp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  align-self: start;
  text-align: left;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--sw-border, #ece9e0);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.sw-cp-card:hover:not(:disabled) {
  border-color: #d7d2ee;
  background: #fbfaff;
}
.sw-cp-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sw-cp-card:focus-visible {
  outline: none;
  border-color: var(--sw-violet, #6e5df8);
  box-shadow: 0 0 0 3px rgba(110, 93, 248, 0.18);
}
.sw-cp-card.is-selected {
  background: #f6f5ff;
  border-color: var(--sw-violet, #6e5df8);
  border-width: 1.5px;
  padding: 17.5px;
}
.sw-cp-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sw-cp-card__icon svg {
  width: 22px;
  height: 22px;
}
.sw-cp-card__icon--influencer { background: #fceef6; color: #d63384; }
.sw-cp-card__icon--merchant { background: #e9fbf3; color: #16a34a; }
.sw-cp-card__icon--retail { background: #eeedfe; color: #6e5df8; }
.sw-cp-card__icon--advertiser { background: #fff3e6; color: #e08a1e; }
.sw-cp-card__icon--admin { background: #eef2ff; color: #4f46e5; }
.sw-cp-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sw-cp-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--sw-text, #1a1232);
}
.sw-cp-card__desc {
  font-size: 13px;
  color: var(--sw-text-muted, #6b6f7b);
}
.sw-cp-card__check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sw-violet, #6e5df8);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.sw-cp-card__check svg {
  width: 13px;
  height: 13px;
}
.sw-cp-card.is-selected .sw-cp-card__check { display: inline-flex; }
.sw-cp-continue {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--sw-violet, #6e5df8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.sw-cp-continue:hover:not(:disabled) { background: var(--sw-violet-600, #5b4ae0); }
.sw-cp-continue:disabled {
  background: #c9c4e8;
  cursor: not-allowed;
}
.sw-cp-modal__foot {
  text-align: center;
  font-size: 13px;
  color: #999ea8;
  margin: 0;
}
.sw-cp-modal__dialog:focus { outline: none; }
.sw-cp-modal__grip { display: none; }

@media (max-width: 767.98px) {
  .sw-cp-modal {
    align-items: flex-end;
    padding: 0;
  }
  .sw-cp-modal__dialog {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    padding: 10px 20px 24px;
    gap: 20px;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .sw-cp-modal.is-open .sw-cp-modal__dialog { transform: translateY(0); }
  .sw-cp-modal__dialog > * { flex-shrink: 0; }
  .sw-cp-modal__grip {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e2e4ea;
    margin: 0 auto;
  }
  .sw-cp-modal__close {
    top: 14px;
    right: 16px;
  }
}

@media (max-width: 575.98px) {
  .sw-cp-grid { grid-template-columns: 1fr; }
  .sw-cp-modal__title { font-size: 21px; }
}
