@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

.leadflow-auth,
.leadflow-auth * {
  box-sizing: border-box;
}

.leadflow-auth {
  --lf-blue: #2563eb;
  --lf-blue-dark: #1d4ed8;
  --lf-cyan: #06b6d4;
  --lf-green: #10b981;
  --lf-text: #0f172a;
  --lf-text-mid: #334155;
  --lf-text-soft: #64748b;
  --lf-text-muted: #94a3b8;
  --lf-border: #e2e8f0;
  --lf-danger: #ef4444;
  --lf-radius-sm: 8px;
  --lf-radius-lg: 20px;
  --lf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --lf-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --lf-shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.06);
  width: 100%;
  min-height: calc(100vh - 130px);
  display: flex;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  color: var(--lf-text);
  font-family: "DM Sans", "Manrope", "Segoe UI", sans-serif;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.1);
}

.leadflow-auth__left {
  flex: 0 0 48%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 48px 56px;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a6e 45%, #1e4db7 80%, #2563eb 100%);
}

.leadflow-auth--register .leadflow-auth__left {
  background: linear-gradient(145deg, #0f172a 0%, #1e3a6e 45%, #0e7490 80%, #06b6d4 100%);
}

.leadflow-auth__left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 10%, rgba(6, 182, 212, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 400px 500px at -10% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 110% 60%, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.leadflow-auth__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.leadflow-auth__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: lfOrbFloat 8s ease-in-out infinite;
}

.leadflow-auth__orb--one {
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  background: rgba(6, 182, 212, 0.2);
}

.leadflow-auth__orb--two {
  width: 200px;
  height: 200px;
  bottom: 80px;
  left: -60px;
  background: rgba(37, 99, 235, 0.25);
  animation-delay: -3s;
}

.leadflow-auth__orb--three {
  width: 150px;
  height: 150px;
  right: 40px;
  bottom: 200px;
  background: rgba(16, 185, 129, 0.18);
  animation-delay: -5s;
}

@keyframes lfOrbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-24px) scale(1.05);
  }
}

.leadflow-auth__brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: auto;
}

.leadflow-auth__brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

.leadflow-auth__brand-icon svg {
  width: 20px;
  height: 20px;
}

.leadflow-auth__brand-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.leadflow-auth__panel-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}

.leadflow-auth:not(.leadflow-auth--register) .leadflow-auth__panel-content {
  padding-left: min(70px, 5vw);
}

.leadflow-auth__tagline,
.leadflow-auth__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--lf-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leadflow-auth__eyebrow {
  margin-bottom: 8px;
  color: var(--lf-blue);
  letter-spacing: 0.1em;
}

.leadflow-auth--register .leadflow-auth__eyebrow {
  color: var(--lf-cyan);
}

.leadflow-auth__tagline::before,
.leadflow-auth__eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.leadflow-auth__eyebrow::before {
  width: 16px;
}

.leadflow-auth__headline {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.leadflow-auth--register .leadflow-auth__headline {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.leadflow-auth__headline span {
  background: linear-gradient(90deg, #06b6d4, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.leadflow-auth__desc {
  max-width: 390px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.975rem;
  line-height: 1.7;
}

.leadflow-auth__mockup {
  position: relative;
  max-width: 420px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--lf-radius-lg);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  animation: lfCardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leadflow-auth__mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leadflow-auth__mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.leadflow-auth__mock-dot--red {
  background: #ff6b6b;
}

.leadflow-auth__mock-dot--yellow {
  background: #ffd93d;
}

.leadflow-auth__mock-dot--green {
  background: #6bcb77;
}

.leadflow-auth__mock-title,
.leadflow-auth__bar-title {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.leadflow-auth__mock-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.leadflow-auth__mock-stat {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.leadflow-auth__mock-value {
  display: block;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

.leadflow-auth__mock-label {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.65rem;
}

.leadflow-auth__mock-up {
  color: var(--lf-green);
  font-size: 0.62rem;
  font-weight: 600;
}

.leadflow-auth__bar-title {
  margin: 0 0 10px;
  font-size: 0.68rem;
}

.leadflow-auth__bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.leadflow-auth__bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leadflow-auth__bar-label {
  width: 54px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
}

.leadflow-auth__bar-track {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.leadflow-auth__bar-fill {
  height: 100%;
  border-radius: inherit;
}

.leadflow-auth__bar-fill--one {
  width: 78%;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.leadflow-auth__bar-fill--two {
  width: 55%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
}

.leadflow-auth__bar-fill--three {
  width: 88%;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.leadflow-auth__bar-fill--four {
  width: 42%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.leadflow-auth__bar-pct {
  width: 28px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.62rem;
  text-align: right;
}

.leadflow-auth__float-pill {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
  white-space: nowrap;
  animation: lfPillFloat 6s ease-in-out infinite;
}

.leadflow-auth__float-pill--one {
    right: 369px;
    bottom: 227px;
}

.leadflow-auth__float-pill--two {
    top: 59%;
    right: -69px;
    transform: translateY(-50%);
    animation-name: lfPillFloatTwo;
    animation-delay: -2s;
}

.leadflow-auth__float-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
}

.leadflow-auth__float-text {
  color: var(--lf-text);
  font-size: 0.72rem;
  font-weight: 600;
}

@keyframes lfPillFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes lfPillFloatTwo {
  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 8px));
  }
}

.leadflow-auth__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 430px;
}

.leadflow-auth__feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.leadflow-auth__feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.leadflow-auth__feature-icon--blue {
  background: rgba(37, 99, 235, 0.25);
}

.leadflow-auth__feature-icon--cyan {
  background: rgba(6, 182, 212, 0.25);
}

.leadflow-auth__feature-icon--green {
  background: rgba(16, 185, 129, 0.25);
}

.leadflow-auth__feature-icon svg {
  width: 18px;
  height: 18px;
}

.leadflow-auth__feature-title {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
}

.leadflow-auth__feature-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.75rem;
  line-height: 1.4;
}

.leadflow-auth__right {
  position: relative;
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 40px;
  background: #ffffff;
}

.leadflow-auth--register .leadflow-auth__right {
  align-items: flex-start;
  padding-top: 38px;
  overflow-y: auto;
}

.leadflow-auth__right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 400px at 100% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 0% 100%, rgba(6, 182, 212, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.leadflow-auth__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 44px 40px;
  border-radius: var(--lf-radius-lg);
  animation: lfCardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.leadflow-auth--register .leadflow-auth__card {
  max-width: 604px;
  padding: 20px 40px 36px;
}

@keyframes lfCardEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.leadflow-auth__mobile-brand {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.leadflow-auth__mobile-brand .leadflow-auth__brand-name {
  color: var(--lf-text);
  font-size: 1.3rem;
}

.leadflow-auth__title {
  margin: 0 0 6px;
  color: var(--lf-text);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.leadflow-auth--register .leadflow-auth__title {
  font-size: 1.75rem;
}

.leadflow-auth__sub {
  margin: 0 0 28px;
  color: var(--lf-text-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.leadflow-auth__form {
  margin: 0;
}

.leadflow-auth__form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.leadflow-auth__field {
  position: relative;
  margin-bottom: 18px;
}

.leadflow-auth--register .leadflow-auth__field {
  margin-bottom: 16px;
}

.leadflow-auth__field--full {
  grid-column: 1 / -1;
}

.leadflow-auth__label {
  display: block;
  margin-bottom: 6px;
  color: var(--lf-text-mid);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.leadflow-auth__input-wrap {
  position: relative;
}

.leadflow-auth__input {
  width: 100%;
  min-height: 45px;
  padding: 11px 44px 11px 42px;
  border: 1.5px solid var(--lf-border);
  border-radius: var(--lf-radius-sm);
  outline: none;
  background: #ffffff;
  color: var(--lf-text);
  font: 0.9rem/1.35 "DM Sans", "Manrope", "Segoe UI", sans-serif;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.leadflow-auth--register .leadflow-auth__input {
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 0.875rem;
}

.leadflow-auth__input::placeholder {
  color: var(--lf-text-muted);
}

.leadflow-auth__input:focus {
  border-color: var(--lf-blue);
  background: #fdfeff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.leadflow-auth__input.input-validation-error {
  border-color: var(--lf-danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.leadflow-auth__icon {
  position: absolute;
  top: 50%;
  left: 13px;
  display: flex;
  color: var(--lf-text-muted);
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 0.2s ease;
}

.leadflow-auth__input-wrap:focus-within .leadflow-auth__icon {
  color: var(--lf-blue);
}

.leadflow-auth__toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--lf-text-muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.18s ease;
}

.leadflow-auth__toggle:hover {
  color: var(--lf-blue);
}

.leadflow-auth__toggle:focus-visible {
  outline: 2px solid var(--lf-blue);
  outline-offset: 2px;
}

.leadflow-auth__toggle-off {
  display: none;
}

.leadflow-auth__toggle.is-visible .leadflow-auth__toggle-on {
  display: none;
}

.leadflow-auth__toggle.is-visible .leadflow-auth__toggle-off {
  display: block;
}

.leadflow-auth__validation {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: #ef4444 !important;
  font-size: 0.75rem !important;
  font-weight: 600;
}

.leadflow-auth__summary,
.leadflow-auth .validation-summary-errors {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: 12px;
  background: rgba(254, 226, 226, 0.72);
  color: #991b1b;
  font-size: 0.84rem;
  box-shadow: none;
}

.leadflow-auth .validation-summary-valid {
  display: none;
}

.leadflow-auth__summary ul,
.leadflow-auth .validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.leadflow-auth__helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.leadflow-auth__mini-note {
  margin: 0;
  color: var(--lf-text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.leadflow-auth__link {
  color: var(--lf-blue);
  font-weight: 600;
  text-decoration: none;
}

.leadflow-auth__link:hover {
  color: var(--lf-blue-dark);
  text-decoration: underline;
}

.leadflow-auth__primary {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 49px;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--lf-radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  cursor: pointer;
  font: 600 0.95rem/1.2 "DM Sans", "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35), 0 1px 3px rgba(37, 99, 235, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.leadflow-auth--register .leadflow-auth__primary {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3), 0 1px 3px rgba(37, 99, 235, 0.2);
}

.leadflow-auth__primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.leadflow-auth__primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.4), 0 4px 12px rgba(37, 99, 235, 0.2);
}

.leadflow-auth__primary:hover::before {
  opacity: 1;
}

.leadflow-auth__primary:focus-visible {
  outline: 2px solid var(--lf-blue);
  outline-offset: 3px;
}

.leadflow-auth__footer {
  margin: 22px 0 0;
  color: var(--lf-text-soft);
  font-size: 0.85rem;
  text-align: center;
}

.leadflow-auth__strength {
  display: none;
  margin-top: 6px;
}

.leadflow-auth__strength.is-visible {
  display: block;
}

.leadflow-auth__strength-bars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.leadflow-auth__strength-segment {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--lf-border);
  transition: background 0.3s ease;
}

.leadflow-auth__strength-segment.is-weak {
  background: #ef4444;
}

.leadflow-auth__strength-segment.is-fair {
  background: #f59e0b;
}

.leadflow-auth__strength-segment.is-good {
  background: #3b82f6;
}

.leadflow-auth__strength-segment.is-strong {
  background: var(--lf-green);
}

.leadflow-auth__strength-label {
  color: var(--lf-text-muted);
  font-size: 0.68rem;
}

@media (max-width: 1024px) {
  .leadflow-auth__left {
    flex-basis: 50%;
    padding: 40px;
  }

  .leadflow-auth__right {
    flex-basis: 50%;
    padding: 40px 28px;
  }

  .leadflow-auth__card {
    padding: 36px 32px;
  }

  .leadflow-auth--register .leadflow-auth__card {
    padding: 32px 28px;
  }
}

@media (max-width: 991px) {
  .leadflow-auth {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .leadflow-auth {
    display: block;
    border-radius: 22px;
  }

  .leadflow-auth__left {
    display: none;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    min-height: calc(100vh - 120px);
    padding: 32px 20px;
  }

  .leadflow-auth__mobile-brand {
    display: flex;
  }

  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px 24px;
  }

  .leadflow-auth__title,
  .leadflow-auth--register .leadflow-auth__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .leadflow-auth {
    border-radius: 18px;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    padding: 24px 16px;
  }

  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    padding: 28px 18px;
  }

  .leadflow-auth__form-grid {
    grid-template-columns: 1fr;
  }

  .leadflow-auth__field--full {
    grid-column: auto;
  }

  .leadflow-auth__helper-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 375px) {
  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    padding: 24px 14px;
  }

  .leadflow-auth__title,
  .leadflow-auth--register .leadflow-auth__title {
    font-size: 1.4rem;
  }
}

/* Responsive hardening for authentication screens */
.leadflow-auth,
.leadflow-auth__left,
.leadflow-auth__right,
.leadflow-auth__card,
.leadflow-auth__form,
.leadflow-auth__input-wrap {
  max-width: 100%;
  min-width: 0;
}

.leadflow-auth__title,
.leadflow-auth__headline {
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.leadflow-auth__input,
.leadflow-auth__primary,
.leadflow-auth__toggle {
  touch-action: manipulation;
}

.leadflow-auth__float-pill {
  max-width: calc(100% - 2rem);
}

.leadflow-auth__float-text,
.leadflow-auth__mock-title,
.leadflow-auth__bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .leadflow-auth {
    overflow: visible;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    min-height: auto;
  }

  .leadflow-auth__input {
    min-height: 46px;
    font-size: 1rem;
  }

  .leadflow-auth__primary {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .leadflow-auth__mobile-brand {
    margin-bottom: 24px;
  }

  .leadflow-auth__title,
  .leadflow-auth--register .leadflow-auth__title {
    line-height: 1.25;
  }

  .leadflow-auth__sub {
    margin-bottom: 22px;
  }

  .leadflow-auth__input {
    padding-right: 42px;
  }

  .leadflow-auth__footer {
    line-height: 1.5;
  }
}

/* Mobile-first authentication hardening */
.guest-mode,
.guest-mode .auth-shell,
.guest-mode .auth-shell__body,
.leadflow-auth,
.leadflow-auth__left,
.leadflow-auth__right,
.leadflow-auth__card,
.leadflow-auth__panel-content,
.leadflow-auth__mockup,
.leadflow-auth__mock-grid,
.leadflow-auth__bar-row {
  max-width: 100%;
  min-width: 0;
}

.guest-mode {
  overflow-x: clip;
}

.guest-mode .auth-shell {
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.guest-mode .auth-shell__topbar {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  gap: 0.75rem;
}

.leadflow-auth__input,
.leadflow-auth__primary,
.leadflow-auth__toggle {
  min-width: 0;
}

.leadflow-auth__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  white-space: normal;
  text-align: center;
}

.leadflow-auth__mockup {
  box-sizing: border-box;
  overflow: hidden;
}

.leadflow-auth__panel-content,
.leadflow-auth__mock-title,
.leadflow-auth__stat-label,
.leadflow-auth__stat-value,
.leadflow-auth__bar-label {
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .leadflow-auth {
    min-height: auto;
  }

  .leadflow-auth__left {
    flex-basis: 42%;
    padding: 2rem;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    flex-basis: 58%;
    padding: 2rem 1.25rem;
  }

  .leadflow-auth__headline {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
  }
}

@media (max-width: 900px) {
  .leadflow-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .leadflow-auth__left {
    display: none;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    min-height: auto;
    padding: clamp(1.25rem, 4vw, 2rem);
  }

  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    width: 100%;
    max-width: 34rem;
  }
}

@media (max-width: 767.98px) {
  .guest-mode .auth-shell__topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .guest-mode .brand-mark {
    width: 100%;
  }

  .guest-mode .theme-toggle {
    align-self: flex-start;
  }

  .leadflow-auth,
  .leadflow-auth__card {
    border-radius: 8px;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    padding: 1rem;
  }

  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    padding: clamp(1.15rem, 5vw, 1.5rem);
  }

  .leadflow-auth__title,
  .leadflow-auth--register .leadflow-auth__title {
    font-size: clamp(1.35rem, 7vw, 1.7rem);
    line-height: 1.18;
  }

  .leadflow-auth__sub,
  .leadflow-auth__footer {
    overflow-wrap: anywhere;
  }

  .leadflow-auth__input {
    min-height: 48px;
    font-size: 1rem;
  }

  .leadflow-auth__primary {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  .guest-mode .auth-shell {
    padding: 0.6rem;
  }

  .guest-mode .auth-shell__topbar {
    padding: 0.8rem;
  }

  .guest-mode .brand-mark__copy small {
    display: none;
  }

  .leadflow-auth__right,
  .leadflow-auth--register .leadflow-auth__right {
    padding: 0.7rem;
  }

  .leadflow-auth__card,
  .leadflow-auth--register .leadflow-auth__card {
    padding: 1rem;
  }
}
