/* ==========================================================================
   Auth (Register / Login / OTP) + Onboarding — styles
   Mobile/tablet: matches the Figma screens closely.
   Desktop (>=1024px): restructured as a real website — split-screen
   layout (branding panel + form panel) rather than a stretched phone
   screen, per explicit instruction.
   ========================================================================== */

.ll-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.ll-auth-header {
  padding: 20px 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ll-auth-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.ll-auth-subtitle {
  padding: 0 20px 22px;
  font-size: 13px;
  color: var(--ll-text-secondary);
  line-height: 1.5;
  margin: -14px 0 0;
}

.ll-auth-form-wrap {
  flex: 1;
  background: var(--ll-bg);
  border-radius: 28px 28px 0 0;
  padding: 26px 20px 40px;
}

.ll-auth-form-wrap.no-card {
  background: transparent;
  border-radius: 0;
  padding: 0 20px 40px;
}

.ll-auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--ll-text-secondary);
  margin-top: 18px;
}

.ll-auth-footer-link a {
  color: var(--ll-primary);
  font-weight: 700;
}

.ll-auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px 0 20px;
}

.ll-auth-remember-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ll-text-primary);
}

.ll-auth-forgot-link {
  font-size: 13px;
  color: var(--ll-text-primary);
  text-decoration: underline;
}

.ll-password-toggle-wrap {
  position: relative;
}

.ll-password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ll-text-muted);
  font-size: 16px;
  padding: 4px;
}

/* ---- Phone input row (phonecode Choices.js + number field) ---- */

.ll-phone-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ll-phonecode-choices {
  width: 128px;
  flex-shrink: 0;
}

.ll-phone-input-row .ll-form-control {
  flex: 1;
}

.choices__inner {
  border: 1.5px solid var(--ll-border) !important;
  border-radius: var(--ll-radius-sm) !important;
  background: var(--ll-bg-subtle) !important;
  min-height: unset !important;
  padding: 12px 8px 12px 12px !important;
  font-family: var(--ll-font);
  font-size: 14px !important;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--ll-primary) !important;
}

.choices__list--dropdown {
  border-color: var(--ll-border) !important;
  border-radius: var(--ll-radius-sm) !important;
  font-family: var(--ll-font);
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: var(--ll-primary-soft) !important;
  color: var(--ll-primary-dark) !important;
}

.choices__flag-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.choices__flag-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- Terms checkbox row ---- */

.ll-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--ll-text-secondary);
  line-height: 1.5;
}

.ll-terms-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ll-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ll-terms-row a {
  color: var(--ll-primary);
  font-weight: 600;
}

/* ==========================================================================
   OTP screen
   ========================================================================== */

.ll-otp-subtitle {
  text-align: center;
  padding: 0 20px 26px;
  font-size: 13px;
  color: var(--ll-text-secondary);
  line-height: 1.5;
}

.ll-otp-subtitle strong {
  color: var(--ll-text-primary);
}

.ll-otp-input-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 8px;
}

.ll-otp-digit {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-sm);
  background: var(--ll-bg-subtle);
  font-family: var(--ll-font);
}

.ll-otp-digit:focus {
  outline: none;
  border-color: var(--ll-primary);
  background: var(--ll-bg);
}

.ll-otp-digit.filled {
  border-color: var(--ll-primary);
  background: var(--ll-bg);
}

.ll-otp-resend-row {
  text-align: center;
  font-size: 12.5px;
  color: var(--ll-text-secondary);
  margin: 16px 0 30px;
}

.ll-otp-resend-row a {
  color: var(--ll-text-primary);
  font-weight: 700;
  text-decoration: underline;
}

.ll-otp-resend-row a.is-disabled {
  color: var(--ll-text-muted);
  pointer-events: none;
  text-decoration: none;
}

/* DEV MODE banner showing the OTP on-screen — visually distinct so it's
   obvious this is a development affordance, not part of the real design. */
.ll-otp-dev-banner {
  margin: 0 20px 20px;
  background: var(--ll-warning-soft);
  border: 1px dashed #E4A93D;
  border-radius: var(--ll-radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-size: 12.5px;
  color: #8A6415;
}

.ll-otp-dev-banner strong {
  font-size: 18px;
  letter-spacing: 4px;
  display: block;
  margin-top: 4px;
  color: #7A5410;
}

/* ==========================================================================
   OTP success screen
   ========================================================================== */

.ll-otp-success-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.ll-otp-success-card {
  background: var(--ll-bg);
  border-radius: var(--ll-radius-lg);
  padding: 40px 28px;
  text-align: center;
  max-width: 360px;
  box-shadow: var(--ll-shadow-md);
}

.ll-otp-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: var(--ll-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  transform: rotate(8deg);
}

.ll-otp-success-icon i {
  transform: rotate(-8deg);
}

.ll-otp-success-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.4;
}

.ll-otp-success-card p {
  font-size: 13px;
  color: var(--ll-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Onboarding — About You / Category / Preferences / Support Network /
   Permissions / Done
   ========================================================================== */

.ll-onboard-avatar-upload {
  display: flex;
  justify-content: center;
  margin: 10px 0 26px;
}

.ll-onboard-avatar-circle {
  position: relative;
  width: 96px;
  height: 96px;
}

.ll-onboard-avatar-circle img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--ll-bg-subtle);
  border: 1px solid var(--ll-border);
}

.ll-onboard-avatar-upload-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ll-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 3px solid var(--ll-bg);
  cursor: pointer;
}

/* ---- Category / options selection cards ---- */

.ll-select-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  background: var(--ll-bg);
}

.ll-select-card.active {
  background: var(--ll-primary-soft);
  border-color: var(--ll-primary);
}

.ll-select-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.ll-select-card-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.ll-select-card-info p {
  font-size: 12px;
  color: var(--ll-text-muted);
  margin: 0;
}

/* ---- Preference checkbox rows (mental health / addiction recovery) ---- */

.ll-pref-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--ll-bg);
}

.ll-pref-row.active {
  border-color: var(--ll-primary);
}

.ll-pref-row-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ll-pref-row-info {
  flex: 1;
  min-width: 0;
}

.ll-pref-row-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 1px;
}

.ll-pref-row-info p {
  font-size: 11.5px;
  color: var(--ll-text-muted);
  margin: 0;
}

.ll-pref-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--ll-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 13px;
}

.ll-pref-row.active .ll-pref-checkbox {
  background: var(--ll-primary);
  border-color: var(--ll-primary);
  color: #fff;
}

/* ---- Support network (STATIC) ---- */

.ll-support-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--ll-bg);
}

.ll-support-row-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ll-radius-sm);
  background: var(--ll-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.ll-support-row h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.ll-onboard-skip-link {
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ll-primary);
}

/* ---- Permissions (built, hidden from flow) ---- */

.ll-permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1.5px solid var(--ll-border);
  border-radius: var(--ll-radius-md);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--ll-bg);
}

.ll-permission-row h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.ll-permission-row p {
  font-size: 11.5px;
  color: var(--ll-text-muted);
  margin: 0;
}

/* ---- Done screen ---- */

.ll-onboard-done-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 30px;
}

.ll-onboard-done-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ll-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin-bottom: 24px;
}

.ll-onboard-done-wrap h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ll-onboard-done-wrap p {
  font-size: 13.5px;
  color: var(--ll-text-secondary);
  margin: 0 0 34px;
}

.ll-onboard-done-wrap .ll-btn {
  max-width: 320px;
}

/* ==========================================================================
   RESPONSIVE — Tablet stays close to mobile; Desktop becomes a real
   website (split-screen), per explicit instruction.
   ========================================================================== */

@media (min-width: 150px) {
/* @media (min-width: 1024px) { */
  .ll-auth-shell {
    flex-direction: row;
    align-items: stretch;
  }

  /* Left branding panel — replaces the mobile gradient header block */
  .ll-auth-branding-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 44%;
    max-width: 560px;
    padding: 60px 56px;
    background: #fff;
    color: #000;
  }

  .ll-auth-branding-panel .ll-auth-brand-mark {
  
        width: 235px;
        /* height: 7; */
        border-radius: 16px;
        /* background: rgba(255, 255, 255, 0.18); */
        display: flex;
        align-items: center;
        justify-content: flex-start;
        font-size: 22px;
        /* margin-bottom: 50px; */
  }
  .ll-auth-branding-panel .ll-auth-brand-mark img{
    width: 100%;
    height: 100%; margin-left: -20px;
  }
  .ll-auth-branding-panel h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    max-width: 400px; color:black;
  }

  .ll-auth-branding-panel p {
    font-size: 15px; color: black;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 380px;
    margin: 0;
  }

  /* Mobile-only header (icon-button back, gradient bg) is hidden on desktop —
     the branding panel replaces it entirely. */
  .ll-auth-header,
  .ll-auth-subtitle {
    display: none;
  }

  .ll-auth-desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
  }

  .ll-auth-desktop-header a {
    color: var(--ll-text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  /* Right form panel */
  .ll-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ll-bg);
    padding: 40px;
  }

  .ll-auth-form-wrap,
  .ll-auth-form-wrap.no-card {
    max-width: 440px;
    width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .ll-auth-desktop-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
  }

  .ll-auth-desktop-subtitle {
    font-size: 14px;
    color: var(--ll-text-secondary);
    margin: 0 0 32px;
    line-height: 1.5;
  }

  .ll-otp-success-wrap {
    background: var(--ll-bg);
  }

  /* Onboarding on desktop: centered card instead of full-bleed mobile flow */
  .ll-onboard-desktop-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 20px;
  }

  .ll-onboard-desktop-card {
    background: var(--ll-bg);
    border: 1px solid var(--ll-border);
    border-radius: var(--ll-radius-lg);
    padding: 44px 48px;
    box-shadow: var(--ll-shadow-md);
  }

  .ll-select-card,
  .ll-pref-row {
    padding: 18px 20px;
  }
}
