/* ============================================================
   DISTRIHUB AUTHENTICATION STYLES (LOGIN & SIGNUP)
   Pixel-faithful reproduction of approved DistriHub UI
   ============================================================ */

:root {
  --dh-navy-dark: #050f24;
  --dh-navy-mid: #0a1c3e;
  --dh-navy-light: #0d2a58;
  --dh-blue-primary: #0070f3;
  --dh-blue-hover: #0059e6;
  --dh-blue-glow: rgba(0, 112, 243, 0.25);
  --dh-blue-light: #29b6f6;
  --dh-orange-accent: #f59e0b;
  --dh-green-accent: #10b981;
  --dh-purple-accent: #8b5cf6;
  --dh-text-main: #0f172a;
  --dh-text-muted: #64748b;
  --dh-text-subtle: #94a3b8;
  --dh-border: #e2e8f0;
  --dh-bg-card: #ffffff;
  --dh-bg-page: #f8fafc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: var(--dh-text-main);
  background: var(--dh-bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* MAIN LAYOUT WRAPPER */
.dh-auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* ============================================================
   LEFT HERO PANEL (BRAND & VALUE PROP)
   ============================================================ */
.dh-hero-panel {
  flex: 1 1 48%;
  background: linear-gradient(145deg, #040c1e 0%, #071735 50%, #0b224d 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 56px) clamp(32px, 4.5vw, 64px);
  z-index: 1;
}

/* Warehouse & Logistics backdrop overlay */
.dh-hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(41, 182, 246, 0.12) 0%, transparent 40%),
    linear-gradient(to top, rgba(4, 12, 30, 0.95) 0%, rgba(4, 12, 30, 0.75) 45%, rgba(4, 12, 30, 0.92) 100%),
    url('../../images/app-logo.png'); /* Fallback pattern */
  background-size: cover;
  background-position: bottom center;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

/* Warehouse Illustration Graphic */
.dh-hero-warehouse-graphic {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(5, 15, 36, 0.95) 10%, rgba(5, 15, 36, 0.4) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dh-hero-warehouse-graphic svg {
  width: 100%;
  height: 100%;
  opacity: 0.28;
}

/* Top Brand Logo */
.dh-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.dh-hero-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.dh-hero-brand-text {
  display: flex;
  flex-direction: column;
}

.dh-hero-brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.dh-hero-brand-title span {
  color: #29b6f6;
}

.dh-hero-brand-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Center Content */
.dh-hero-body {
  margin: 36px 0;
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.dh-hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 16px;
}

.dh-hero-headline {
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.dh-hero-headline .highlight-blue {
  color: #38bdf8;
}

.dh-hero-description {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 32px;
}

/* Feature Badges List */
.dh-hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dh-hero-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dh-feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease;
}

.dh-hero-feature-item:hover .dh-feature-icon-circle {
  transform: scale(1.08);
}

.dh-feature-icon-circle.orange {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.dh-feature-icon-circle.blue {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.dh-feature-icon-circle.green {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.dh-feature-icon-circle.purple {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  color: #a78bfa;
}

.dh-feature-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.dh-feature-info span {
  font-size: 13px;
  color: #94a3b8;
}

/* Bottom Footer */
.dh-hero-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  max-width: 480px;
}

.dh-hero-footer-line {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.dh-hero-footer-sub {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ============================================================
   CURVED TWO-WAVE CENTER DIVIDER
   ============================================================ */
.dh-wave-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 72px;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.dh-wave-divider svg {
  height: 100%;
  width: 100%;
  display: block;
}

/* ============================================================
   RIGHT AUTH FORM PANEL
   ============================================================ */
.dh-form-panel {
  flex: 1 1 52%;
  background: var(--dh-bg-page);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

/* Top Switcher Bar */
.dh-top-switcher {
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--dh-text-muted);
}

.dh-top-btn {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--dh-blue-primary);
  color: var(--dh-blue-primary);
  background: transparent;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dh-top-btn:hover {
  background: rgba(0, 112, 243, 0.08);
}

/* Main Card */
.dh-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--dh-bg-card);
  border-radius: 24px;
  padding: clamp(32px, 3.5vw, 42px) clamp(28px, 3.5vw, 40px);
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(226, 232, 240, 0.8);
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dh-card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dh-card-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dh-text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.dh-card-subtitle {
  font-size: 14px;
  color: var(--dh-text-muted);
  margin-bottom: 24px;
}

/* ============================================================
   SIGNUP STEP INDICATOR (3 STEPS)
   ============================================================ */
.dh-stepper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.dh-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dh-text-subtle);
  position: relative;
  z-index: 2;
}

.dh-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--dh-text-subtle);
  border: 1px solid var(--dh-border);
  transition: all 0.2s ease;
}

.dh-step-item.active .dh-step-badge {
  background: var(--dh-blue-primary);
  color: #ffffff;
  border-color: var(--dh-blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.18);
}

.dh-step-item.active {
  color: var(--dh-blue-primary);
}

.dh-step-item.completed .dh-step-badge {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.dh-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  z-index: 1;
}

.dh-step-line.active {
  background: var(--dh-blue-primary);
}

/* ============================================================
   FORM FIELDS & INPUTS
   ============================================================ */
.dh-form {
  width: 100%;
  text-align: left;
}

.dh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dh-field-group {
  margin-bottom: 16px;
  width: 100%;
}

.dh-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.dh-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.dh-input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-input-wrapper input,
.dh-input-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  color: var(--dh-text-main);
  background: #ffffff;
  border: 1.5px solid var(--dh-border);
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
}

.dh-input-wrapper input::placeholder {
  color: #94a3b8;
}

.dh-input-wrapper input:focus,
.dh-input-wrapper select:focus {
  border-color: var(--dh-blue-primary);
  box-shadow: 0 0 0 3.5px rgba(0, 112, 243, 0.12);
}

.dh-input-wrapper.error input {
  border-color: #ef4444;
  background: #fffafa;
}

.dh-field-error {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.dh-field-error.visible {
  display: block;
}

/* ============================================================
   PRIMARY ACTION BUTTON
   ============================================================ */
.dh-btn-primary {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #0077ff 0%, #005ce6 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 8px 20px -4px rgba(0, 102, 255, 0.35);
  margin-top: 6px;
}

.dh-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(0, 102, 255, 0.45);
}

.dh-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.dh-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   OR DIVIDER
   ============================================================ */
.dh-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 20px 0;
  color: var(--dh-text-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.dh-divider::before,
.dh-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--dh-border);
}

/* ============================================================
   SOCIAL OAUTH BUTTONS (GOOGLE & MICROSOFT)
   ============================================================ */
.dh-social-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.dh-btn-social {
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid var(--dh-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.dh-btn-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dh-btn-social:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.dh-btn-social:active {
  background: #f1f5f9;
}

/* Terms Agreement Note */
.dh-terms-note {
  font-size: 12px;
  color: var(--dh-text-muted);
  margin-top: 18px;
  line-height: 1.5;
}

.dh-terms-note a {
  color: var(--dh-blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.dh-terms-note a:hover {
  text-decoration: underline;
}

/* ============================================================
   OTP VERIFICATION BOXES & CONTROLS
   ============================================================ */
.dh-otp-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 16px;
  width: 100%;
}

.dh-otp-input {
  width: 48px;
  height: 54px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--dh-text-main);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.dh-otp-input:focus {
  border-color: var(--dh-blue-primary);
  box-shadow: 0 0 0 3.5px rgba(0, 112, 243, 0.15);
}

.dh-otp-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dh-text-muted);
  margin-bottom: 20px;
}

.dh-resend-link {
  color: var(--dh-blue-primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
}

.dh-resend-link:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.dh-change-dest {
  color: #64748b;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
}

/* ============================================================
   BOTTOM TRUST BADGES & SUPPORT
   ============================================================ */
.dh-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 520px;
  margin-top: 10px;
  text-align: center;
}

.dh-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dh-trust-icon {
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dh-trust-item strong {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.dh-trust-item span {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.dh-support-footer {
  font-size: 13px;
  color: var(--dh-text-muted);
  margin-top: 16px;
}

.dh-support-footer a {
  color: var(--dh-blue-primary);
  font-weight: 600;
  text-decoration: none;
}

.dh-support-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   TOAST NOTIFICATION (ERROR / SUCCESS)
   ============================================================ */
.dh-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dh-toast.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dh-toast.error {
  background: #dc2626;
}

.dh-toast.success {
  background: #059669;
}

/* ============================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 980px) {
  .dh-auth-container {
    flex-direction: column;
  }

  .dh-hero-panel {
    flex: 0 0 auto;
    padding: 32px 24px;
  }

  .dh-wave-divider {
    display: none;
  }

  .dh-hero-features {
    display: none;
  }

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

  .dh-trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================================================
   DISTRIHUB SIGNUP â€” CURRENT HTML UI POLISH
   CSS ONLY â€” NO HTML / JS CHANGES
   ========================================================= */

/* ---------------------------------------------------------
   Signup page base
   --------------------------------------------------------- */

body:has(#signupStep1) {
    margin: 0;
    min-height: 100vh;
    background: #f5f8fc;
    color: #10244a;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body:has(#signupStep1) * {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Main signup content
   --------------------------------------------------------- */

body:has(#signupStep1) .dh-auth-right,
body:has(#signupStep1) .auth-right {
    min-height: 100vh;
}

body:has(#signupStep1) .dh-auth-card,
body:has(#signupStep1) .signup-card {
    background: #ffffff;
    border: 1px solid #e4ebf4;
    border-radius: 24px;
    box-shadow:
        0 18px 50px rgba(15, 35, 70, 0.08),
        0 4px 14px rgba(15, 35, 70, 0.04);
}


/* ---------------------------------------------------------
   Signup title
   --------------------------------------------------------- */

body:has(#signupStep1) h1 {
    color: #10244a;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body:has(#signupStep1) h2,
body:has(#signupStep1) h3 {
    color: #10244a;
    font-weight: 750;
}


/* ---------------------------------------------------------
   Stepper
   --------------------------------------------------------- */

body:has(#signupStep1) .dh-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin: 28px 0 36px;
}

body:has(#signupStep1) .dh-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

body:has(#signupStep1) .dh-step-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef2f7;
    color: #66758c;

    font-size: 15px;
    font-weight: 700;

    border: 1px solid #dce4ee;
}

body:has(#signupStep1) .dh-step.active .dh-step-number,
body:has(#signupStep1) .dh-step.current .dh-step-number {
    background: linear-gradient(135deg, #1264f5, #08a8f7);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 7px 18px rgba(18, 100, 245, 0.25);
}

body:has(#signupStep1) .dh-step-label {
    margin-top: 9px;
    color: #70809a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

body:has(#signupStep1) .dh-step.active .dh-step-label,
body:has(#signupStep1) .dh-step.current .dh-step-label {
    color: #1264f5;
}


/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */

body:has(#signupStep1) form {
    width: 100%;
}

body:has(#signupStep1) label {
    display: block;
    margin-bottom: 7px;

    color: #172b4d;
    font-size: 14px;
    font-weight: 650;
}


/* ---------------------------------------------------------
   Inputs / Select / Textarea
   --------------------------------------------------------- */

body:has(#signupStep1) input:not([type="checkbox"]):not([type="radio"]),
body:has(#signupStep1) select,
body:has(#signupStep1) textarea {
    width: 100%;
    min-height: 48px;

    padding: 0 15px;

    border: 1px solid #d7e0eb;
    border-radius: 10px;

    background: #ffffff;
    color: #172b4d;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

body:has(#signupStep1) textarea {
    min-height: 92px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

body:has(#signupStep1) input:not([type="checkbox"]):not([type="radio"])::placeholder,
body:has(#signupStep1) textarea::placeholder {
    color: #9aa7b8;
}

body:has(#signupStep1) input:not([type="checkbox"]):not([type="radio"]):hover,
body:has(#signupStep1) select:hover,
body:has(#signupStep1) textarea:hover {
    border-color: #b9c8da;
}

body:has(#signupStep1) input:not([type="checkbox"]):not([type="radio"]):focus,
body:has(#signupStep1) select:focus,
body:has(#signupStep1) textarea:focus {
    border-color: #1677ff;

    box-shadow:
        0 0 0 3px rgba(22, 119, 255, 0.10);

    background: #ffffff;
}


/* ---------------------------------------------------------
   Form spacing
   --------------------------------------------------------- */

body:has(#signupStep1) .form-group,
body:has(#signupStep1) .field,
body:has(#signupStep1) .form-field {
    margin-bottom: 18px;
}

body:has(#signupStep1) .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


/* ---------------------------------------------------------
   Checkboxes
   --------------------------------------------------------- */

body:has(#signupStep1) input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;

    accent-color: #1264f5;
    vertical-align: middle;
}

body:has(#signupStep1) input[type="checkbox"] + label {
    display: inline;
    margin: 0;
    font-weight: 500;
}


/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

body:has(#signupStep1) button {
    min-height: 46px;

    padding: 0 20px;

    border: 1px solid #d5dfeb;
    border-radius: 9px;

    background: #ffffff;
    color: #17315a;

    font-family: inherit;
    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

body:has(#signupStep1) button:hover {
    border-color: #9db4d1;
    box-shadow: 0 5px 14px rgba(20, 45, 80, 0.08);
}

body:has(#signupStep1) button:active {
    transform: translateY(1px);
}


/* Primary buttons */

body:has(#signupStep1) button[type="submit"],
body:has(#signupStep1) .btn-primary,
body:has(#signupStep1) .primary-btn {
    border: 0;

    background: linear-gradient(
        135deg,
        #1264f5,
        #08a8f7
    );

    color: #ffffff;

    box-shadow:
        0 8px 20px rgba(18, 100, 245, 0.20);
}

body:has(#signupStep1) button[type="submit"]:hover,
body:has(#signupStep1) .btn-primary:hover,
body:has(#signupStep1) .primary-btn:hover {
    border-color: transparent;

    box-shadow:
        0 10px 24px rgba(18, 100, 245, 0.28);
}


/* ---------------------------------------------------------
   Step sections
   --------------------------------------------------------- */

body:has(#signupStep1) #signupStep1,
body:has(#signupStep1) #signupStep2,
body:has(#signupStep1) #signupStep3,
body:has(#signupStep1) #signupStep4 {
    width: 100%;
}

body:has(#signupStep1) #signupStep1 h2,
body:has(#signupStep1) #signupStep2 h2,
body:has(#signupStep1) #signupStep3 h2,
body:has(#signupStep1) #signupStep4 h2 {
    margin-bottom: 6px;
}


/* ---------------------------------------------------------
   OTP area
   --------------------------------------------------------- */

body:has(#signupStep1) #signupStep2 input {
    text-align: center;
    letter-spacing: 0.25em;
    font-weight: 700;
    font-size: 18px;
}

body:has(#signupStep1) #signupStep2 button {
    margin-right: 8px;
}


/* ---------------------------------------------------------
   GST / Tax Profile
   --------------------------------------------------------- */

body:has(#signupStep1) #signupStep4 {
    color: #172b4d;
}

body:has(#signupStep1) #signupGSTIN {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

    body:has(#signupStep1) .form-row {
        grid-template-columns: 1fr;
    }

    body:has(#signupStep1) .dh-step {
        min-width: 80px;
    }

    body:has(#signupStep1) .dh-step-label {
        font-size: 12px;
    }
}

@media (max-width: 700px) {

    body:has(#signupStep1) .dh-stepper {
        margin-bottom: 25px;
    }

    body:has(#signupStep1) .dh-step {
        min-width: 65px;
    }

    body:has(#signupStep1) .dh-step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }

    body:has(#signupStep1) .dh-step-label {
        font-size: 11px;
    }
}

/* =========================================================
   SIGNUP STEP VISIBILITY
   Only the active signup step is visible.
   JS controls which step receives .active.
   ========================================================= */

.signup-step {
    display: none;
}

.signup-step.active {
    display: block;
}

/* =========================================================
   DISTRIHUB SIGNUP â€” STEP 1 COMPACT DESKTOP LAYOUT
   APPEND ONLY â€” DO NOT REMOVE EXISTING CSS
   ========================================================= */

@media (min-width: 1000px) {

    /* -----------------------------------------------------
       Prevent unnecessary page scrolling on signup
       ----------------------------------------------------- */

    html,
    body {
        min-height: 100%;
        height: 100%;
        overflow: hidden;
    }

    body {
        margin: 0;
    }

    /* -----------------------------------------------------
       Give the form side more horizontal space
       ----------------------------------------------------- */

    .dh-form-panel {
        width: 55%;
        min-width: 0;
        padding: 28px 34px 24px;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* -----------------------------------------------------
       Signup card
       ----------------------------------------------------- */

    .dh-form-panel .signup-card,
    .dh-form-panel .auth-card,
    .dh-form-panel .signup-form-card {
        width: min(100%, 760px);
        max-width: 760px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    /* -----------------------------------------------------
       Reduce top spacing around signup header
       ----------------------------------------------------- */

    .dh-form-panel .signup-logo,
    .dh-form-panel .auth-logo {
        margin-bottom: 10px;
    }

    .dh-form-panel .signup-step {
        margin-top: 0;
        padding-top: 0;
    }

    /* -----------------------------------------------------
       Main signup heading
       ----------------------------------------------------- */

    #signupStep1 .step-title {
        margin-bottom: 16px;
    }

    #signupStep1 .step-title h2 {
        margin: 0 0 5px;
        font-size: 27px;
        line-height: 1.15;
    }

    #signupStep1 .step-title p {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    /* -----------------------------------------------------
       FORM GRID
       
       Full Name
       ------------------------------
       Email             Mobile
       ------------------------------
       Terms / Privacy
       Continue
       ----------------------------------------------------- */

    #signupStep1 form,
    #signupStep1 .signup-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 18px;
        row-gap: 10px;
        width: 100%;
    }

    /* Full name should occupy entire row */

    #signupStep1 #signupFullName {
        grid-column: 1 / -1;
    }

    #signupStep1 #signupFullName + *,
    #signupStep1 #signupEmail,
    #signupStep1 #signupMobile {
        min-width: 0;
    }

    /* -----------------------------------------------------
       Field containers
       ----------------------------------------------------- */

    #signupStep1 .dh-field,
    #signupStep1 .form-group,
    #signupStep1 .field-group {
        margin-bottom: 8px;
    }

    /* -----------------------------------------------------
       Labels
       ----------------------------------------------------- */

    #signupStep1 label {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 1.2;
    }

    /* -----------------------------------------------------
       Inputs
       ----------------------------------------------------- */

    #signupStep1 input[type="text"],
    #signupStep1 input[type="email"],
    #signupStep1 input[type="tel"],
    #signupStep1 input[type="number"] {
        width: 100%;
        height: 48px;
        min-height: 48px;
        padding: 0 14px;
        box-sizing: border-box;
        border-radius: 10px;
        font-size: 14px;
    }

    /* -----------------------------------------------------
       Email + Mobile side-by-side
       ----------------------------------------------------- */

    #signupStep1 #signupEmail,
    #signupStep1 #signupMobile {
        width: 100%;
    }

    /* -----------------------------------------------------
       Terms / Privacy
       ----------------------------------------------------- */

    #signupStep1 .signup-consent,
    #signupStep1 .terms-section,
    #signupStep1 .consent-section {
        grid-column: 1 / -1;
        margin-top: 2px;
        margin-bottom: 4px;
    }

    #signupStep1 .signup-consent label,
    #signupStep1 .terms-section label,
    #signupStep1 .consent-section label {
        margin-bottom: 4px;
        font-size: 13px;
        line-height: 1.25;
    }

    #signupStep1 input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin-right: 7px;
    }

    /* -----------------------------------------------------
       Continue button
       ----------------------------------------------------- */

    #signupStep1 #signupSendOtpBtn {
        grid-column: 1 / -1;
        width: 150px;
        height: 46px;
        min-height: 46px;
        margin: 4px auto 0;
        padding: 0 24px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
    }

    /* -----------------------------------------------------
       If existing markup uses signup-actions
       ----------------------------------------------------- */

    #signupStep1 .signup-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        margin-top: 4px;
    }

    #signupStep1 .signup-actions button {
        height: 46px;
        min-height: 46px;
    }

    /* -----------------------------------------------------
       Progress indicator
       ----------------------------------------------------- */

    .signup-progress,
    .dh-signup-progress {
        margin-top: 12px;
        margin-bottom: 18px;
    }

    .signup-progress-item,
    .dh-step {
        font-size: 13px;
    }

    /* -----------------------------------------------------
       Compact logo / top area
       ----------------------------------------------------- */

    .dh-form-panel > * {
        box-sizing: border-box;
    }
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (min-width: 1000px) and (max-height: 850px) {

    .dh-form-panel {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    #signupStep1 .step-title {
        margin-bottom: 10px;
    }

    #signupStep1 .step-title h2 {
        font-size: 25px;
    }

    .signup-progress,
    .dh-signup-progress {
        margin-top: 8px;
        margin-bottom: 12px;
    }

    #signupStep1 .dh-field,
    #signupStep1 .form-group,
    #signupStep1 .field-group {
        margin-bottom: 5px;
    }

    #signupStep1 input[type="text"],
    #signupStep1 input[type="email"],
    #signupStep1 input[type="tel"],
    #signupStep1 input[type="number"] {
        height: 44px;
        min-height: 44px;
    }

    #signupStep1 #signupSendOtpBtn {
        height: 43px;
        min-height: 43px;
        margin-top: 2px;
    }
}

/* =========================================================
   DISTRIHUB SIGNUP â€” FINAL SINGLE SCREEN OVERRIDE
   ========================================================= */

@media (min-width: 900px) {

    /* =====================================================
       PAGE â€” EXACTLY ONE VIEWPORT
       ===================================================== */

    body:has(#signupStep1) {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    body:has(#signupStep1) .dh-form-panel {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding: 18px 30px;
        box-sizing: border-box;
    }


    /* =====================================================
       LEFT SIDE
       ===================================================== */

    body:has(#signupStep1) .dh-hero-panel {
        width: 49%;
        min-width: 49%;
    }

    body:has(#signupStep1) .dh-hero-content {
        padding-top: 20px;
        padding-bottom: 20px;
    }


    /* =====================================================
       RIGHT SIGNUP CARD
       ===================================================== */

    body:has(#signupStep1) #signupStep1 {
        width: min(100%, 670px);
        max-width: 670px;

        margin: 0 auto;

        padding: 24px 38px 20px;

        box-sizing: border-box;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    body:has(#signupStep1) #signupStep1 h1 {
        font-size: 28px;
        line-height: 1.15;

        margin-top: 5px;
        margin-bottom: 4px;
    }

    body:has(#signupStep1) #signupStep1 h1 + p {
        margin-top: 4px;
        margin-bottom: 12px;

        font-size: 14px;
        line-height: 1.35;
    }


    /* =====================================================
       PROGRESS
       ===================================================== */

    body:has(#signupStep1) .signup-progress {
        margin-top: 8px;
        margin-bottom: 17px;

        transform: scale(.92);
        transform-origin: center;
    }


    /* =====================================================
       PERSONAL ACCOUNT
       ===================================================== */

    body:has(#signupStep1) #signupStep1 h2 {
        margin-top: 0;
        margin-bottom: 2px;

        font-size: 23px;
        line-height: 1.2;
    }

    body:has(#signupStep1) #signupStep1 h2 + p {
        margin-top: 3px;
        margin-bottom: 14px;

        font-size: 14px;
    }


    /* =====================================================
       FORM GRID

       Row 1  â†’ Full Name
       Row 2  â†’ Email | Mobile
       Row 3  â†’ Terms
       Row 4  â†’ Privacy
       Row 5  â†’ Continue
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form {
        display: grid;

        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

        column-gap: 12px;
        row-gap: 9px;

        width: 100%;
    }


    /* =====================================================
       FULL NAME â€” FULL WIDTH
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form > *:has(#signupFullName) {
        grid-column: 1 / -1;
    }


    /* =====================================================
       EMAIL â€” LEFT
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form > *:has(#signupEmail) {
        grid-column: 1;
    }


    /* =====================================================
       MOBILE â€” RIGHT
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form > *:has(#signupMobile) {
        grid-column: 2;
    }


    /* =====================================================
       TERMS + PRIVACY â€” FULL WIDTH
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form > *:has(
        input[type="checkbox"]
    ) {
        grid-column: 1 / -1;

        margin: 0;
    }


    /* =====================================================
       ALL FORM LABELS
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form label {
        font-size: 13px;
        line-height: 1.2;

        margin-bottom: 5px;
    }


    /* =====================================================
       TEXT INPUTS
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form input:not(
        [type="checkbox"]
    ) {
        width: 100%;
        height: 42px;
        min-height: 42px;

        padding: 0 13px;

        box-sizing: border-box;

        font-size: 14px;

        border-radius: 9px;
    }


    /* =====================================================
       CHECKBOX ROWS
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form label:has(
        input[type="checkbox"]
    ) {
        display: flex;

        align-items: flex-start;

        gap: 9px;

        margin: 0;

        font-size: 13px;
        line-height: 1.35;

        width: 100%;
    }

    body:has(#signupStep1) #signupStep1 form input[type="checkbox"] {
        flex: 0 0 auto;

        width: 17px;
        height: 17px;
        min-height: 17px;

        margin: 0;
    }


    /* =====================================================
       SEND OTP / CONTINUE
       ===================================================== */

    body:has(#signupStep1) #signupSendOtpBtn {
        grid-column: 1 / -1;

        width: 100%;
        height: 43px;
        min-height: 43px;

        margin-top: 3px;

        border-radius: 9px;

        font-size: 14px;
    }


    /* =====================================================
       REMOVE EXCESSIVE FORM MARGINS
       ===================================================== */

    body:has(#signupStep1) #signupStep1 form > * {
        margin-bottom: 0;
    }



}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 899px) {

    body:has(#signupStep1) {
        overflow-x: hidden;
    }

    body:has(#signupStep1) #signupStep1 form {
        display: block;
    }

    body:has(#signupStep1) #signupStep1 form > * {
        width: 100%;
        margin-bottom: 12px;
    }

    body:has(#signupStep1) #signupStep1 form input:not(
        [type="checkbox"]
    ) {
        width: 100%;
    }
}

/* =========================================================
   DISTRIHUB SIGNUP STEP 1 â€” FINAL DESKTOP COMPACT LAYOUT
   ========================================================= */

@media (min-width: 900px) {

    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    /* -----------------------------------------
       STEP 1 CONTAINER
       ----------------------------------------- */

    #signupStep1 {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }

    /* -----------------------------------------
       TITLE
       ----------------------------------------- */

    #signupStep1 .step-title {
        width: 100%;
        margin: 0 auto 14px;
        text-align: center;
    }

    #signupStep1 .step-title h2 {
        margin: 0 0 4px;
    }

    #signupStep1 .step-title p {
        margin: 0;
    }

    /* -----------------------------------------
       FORM â€” FORCE FULL AVAILABLE WIDTH
       ----------------------------------------- */

    #signupStep1Form {
        display: block !important;
        width: 100% !important;
        max-width: 540px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* -----------------------------------------
       FORM GRID
       ----------------------------------------- */

    #signupStep1Form .form-grid {
        display: grid !important;

        width: 100% !important;
        max-width: 540px !important;
        min-width: 0 !important;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr) !important;

        column-gap: 14px !important;
        row-gap: 9px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        box-sizing: border-box;
    }

    /* -----------------------------------------
       FORM GROUPS
       ----------------------------------------- */

    #signupStep1Form .form-group {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* FULL NAME = COMPLETE ROW */
    #signupStep1Form .form-group.full {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    /* -----------------------------------------
       LABELS
       ----------------------------------------- */

    #signupStep1Form .form-group label {
        display: block !important;

        width: 100% !important;

        margin: 0 0 4px !important;

        line-height: 1.2 !important;

        box-sizing: border-box;
    }

    /* -----------------------------------------
       INPUTS
       ----------------------------------------- */

    #signupStep1Form .form-group input {
        display: block !important;

        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        height: 42px !important;
        min-height: 42px !important;

        margin: 0 !important;

        padding: 0 14px !important;

        box-sizing: border-box !important;
    }

    /* -----------------------------------------
       TERMS + PRIVACY
       FORCE SAME ROW
       ----------------------------------------- */

    #signupStep1Form .checkbox-row {
        display: inline-flex !important;

        width: auto !important;
        max-width: none !important;

        align-items: center !important;

        gap: 7px !important;

        margin: 12px 20px 0 0 !important;
        padding: 0 !important;

        vertical-align: middle !important;

        box-sizing: border-box;
    }

    #signupStep1Form .checkbox-row input {
        flex: 0 0 18px !important;

        width: 18px !important;
        height: 18px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    #signupStep1Form .checkbox-row label {
        width: auto !important;

        margin: 0 !important;

        white-space: nowrap !important;

        line-height: 1.2 !important;
    }

    /* -----------------------------------------
       ACTION
       ----------------------------------------- */

    #signupStep1Form .signup-actions {
        display: flex !important;

        width: 100% !important;

        justify-content: center !important;
        align-items: center !important;

        margin: 13px 0 0 !important;
        padding: 0 !important;

        box-sizing: border-box;
    }

    #signupStep1Form .signup-actions span {
        display: none !important;
    }

    #signupStep1Form #signupSendOtpBtn {
        display: block !important;

        width: 100% !important;
        max-width: none !important;

        height: 44px !important;
        min-height: 44px !important;

        margin: 0 !important;
    }
}


/* =========================================================
   LAPTOP / SHORT SCREEN COMPRESSION
   ========================================================= */

@media (min-width: 900px) and (max-height: 850px) {

    #signupStep1 .step-title {
        margin-bottom: 10px !important;
    }

    #signupStep1Form .form-grid {
        row-gap: 7px !important;
    }

    #signupStep1Form .form-group label {
        margin-bottom: 3px !important;
    }

    #signupStep1Form .form-group input {
        height: 39px !important;
        min-height: 39px !important;
    }

    #signupStep1Form .checkbox-row {
        margin-top: 9px !important;
    }

    #signupStep1Form .signup-actions {
        margin-top: 9px !important;
    }

    #signupStep1Form #signupSendOtpBtn {
        height: 41px !important;
        min-height: 41px !important;
    }
}

/* ============================================================
   DISTRIHUB SIGNUP â€” FINAL 4-STEP LAYOUT OVERRIDE
   CSS ONLY
   ============================================================ */

/* ------------------------------------------------------------
   RIGHT AUTH PANEL
   ------------------------------------------------------------ */

.dh-auth-container {
    overflow: hidden;
}

.dh-auth-container > .dh-auth-panel {
    min-width: 0;
}


/* ------------------------------------------------------------
   GIVE THE RIGHT CONTENT MORE BREATHING ROOM
   ------------------------------------------------------------ */

.dh-auth-card {
    width: min(760px, calc(100% - 40px));
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------------------------------------
   4-STEP STEPPER
   ------------------------------------------------------------ */

.dh-stepper {
    width: 100%;
    display: grid;

    /*
       Step / line / step / line / step / line / step
    */
    grid-template-columns:
        minmax(115px, 1fr)
        minmax(35px, 70px)
        minmax(115px, 1fr)
        minmax(35px, 70px)
        minmax(115px, 1fr)
        minmax(35px, 70px)
        minmax(115px, 1fr);

    align-items: center;
    column-gap: 0;

    margin: 34px auto 48px;
}


/* ------------------------------------------------------------
   INDIVIDUAL STEP
   ------------------------------------------------------------ */

.dh-step-item {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    white-space: nowrap;
}


/* ------------------------------------------------------------
   STEP NUMBER
   ------------------------------------------------------------ */

.dh-step-badge {
    width: 36px;
    height: 36px;

    min-width: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 700;

    background: #f1f5f9;
    color: #94a3b8;

    border: 1px solid #e2e8f0;

    box-sizing: border-box;
}


/* ACTIVE NUMBER */

.dh-step-item.active .dh-step-badge {
    background: #087df5;
    color: #ffffff;

    border-color: #087df5;

    box-shadow:
        0 0 0 5px rgba(8, 125, 245, 0.14);
}


/* ------------------------------------------------------------
   STEP LABEL
   ------------------------------------------------------------ */

.dh-step-item > span {
    display: block;

    font-size: 14px;
    line-height: 1.2;

    color: #94a3b8;

    font-weight: 500;

    text-align: left;
}

.dh-step-item.active > span {
    color: #087df5;
    font-weight: 700;
}


/* ------------------------------------------------------------
   CONNECTING LINES
   IMPORTANT:
   Lines now sit vertically through the CENTER of the circles.
   ------------------------------------------------------------ */

.dh-step-line {
    display: block;

    width: 100%;
    height: 2px;

    background: #e2e8f0;

    align-self: center;
}


/* ------------------------------------------------------------
   FORM WIDTH
   ------------------------------------------------------------ */

#signupStep1Form {
    width: 100%;
    max-width: 680px;

    margin-left: auto;
    margin-right: auto;
}


/* ------------------------------------------------------------
   FORM GRID
   ------------------------------------------------------------ */

#signupStep1Form .form-grid {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px 20px;
}


/* Full-width name */

#signupStep1Form .form-group.full {
    grid-column: 1 / -1;
}


/* ------------------------------------------------------------
   INPUTS
   ------------------------------------------------------------ */

#signupStep1Form input[type="text"],
#signupStep1Form input[type="email"],
#signupStep1Form input[type="tel"] {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    border-radius: 10px;

    padding: 0 16px;

    font-size: 15px;
}


/* ------------------------------------------------------------
   CHECKBOX AREA
   ------------------------------------------------------------ */

#signupStep1Form .checkbox-row {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 14px;
}

#signupStep1Form .checkbox-row label {
    margin: 0;

    font-size: 14px;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   CONTINUE BUTTON
   ------------------------------------------------------------ */

#signupStep1Form .signup-actions {
    width: 100%;

    margin-top: 22px;
}

#signupStep1Form #signupSendOtpBtn {
    width: 100%;
    height: 50px;

    border-radius: 10px;
}


/* ------------------------------------------------------------
   STEP TITLE
   ------------------------------------------------------------ */

#signupStep1 .step-title {
    text-align: center;

    margin-bottom: 24px;
}

#signupStep1 .step-title h2 {
    margin-bottom: 6px;
}

#signupStep1 .step-title p {
    margin: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {

    .dh-auth-card {
        width: calc(100% - 32px);
    }

    .dh-stepper {
        grid-template-columns:
            minmax(100px, 1fr)
            30px
            minmax(100px, 1fr)
            30px
            minmax(100px, 1fr)
            30px
            minmax(100px, 1fr);
    }

    .dh-step-item {
        gap: 7px;
    }

    .dh-step-badge {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .dh-step-item > span {
        font-size: 13px;
    }
}


/* ------------------------------------------------------------
   SMALL DESKTOP / TABLET
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .dh-stepper {
        grid-template-columns:
            repeat(4, 1fr);
        gap: 12px;
    }

    .dh-step-line {
        display: none;
    }

    .dh-step-item {
        flex-direction: column;
        text-align: center;
    }

    .dh-step-item > span {
        text-align: center;
    }
}

/* ============================================================
   SIGNUP â€” TIGHTEN VERTICAL SPACING
   ============================================================ */

/* Reduce gap between subtitle and stepper */
.dh-card-subtitle {
    margin-bottom: 18px !important;
}

/* Bring stepper upward and reduce space below it */
.dh-stepper {
    margin-top: 18px !important;
    margin-bottom: 28px !important;
}

/* Bring Personal Account closer to stepper */
#signupStep1 .step-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

/* Keep title/subtitle internally compact */
#signupStep1 .step-title h2 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
}

#signupStep1 .step-title p {
    margin-top: 0 !important;
}
/* ============================================================
   DISTRIHUB SIGNUP â€” FINAL VISUAL SPACING + WIDTH OVERRIDE
   Added after all previous signup rules so these values win.
   ============================================================ */

body:has(#signupStep1) .dh-auth-container {
    grid-template-columns: 46% 54%;
}

/* RIGHT SIDE PANEL */
body:has(#signupStep1) .dh-auth-container > .dh-auth-panel:last-child,
body:has(#signupStep1) .dh-auth-right {
    width: 100%;
    min-width: 0;
}

/* WIDER INNER SIGNUP CARD */
body:has(#signupStep1) .dh-auth-card {
    width: min(100%, 780px);
    max-width: 780px;
    margin: 0 auto;
    padding-left: 42px;
    padding-right: 42px;
}

/* TITLE */
body:has(#signupStep1) .dh-card-title {
    margin-bottom: 6px;
}

body:has(#signupStep1) .dh-card-subtitle {
    margin-top: 0;
    margin-bottom: 14px;
}

/* ============================================================
   4-STEP STEPPER
   ============================================================ */

body:has(#signupStep1) .dh-stepper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* EACH STEP */
body:has(#signupStep1) .dh-step-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
}

/* NUMBER CIRCLE */
body:has(#signupStep1) .dh-step-badge {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* LABEL */
body:has(#signupStep1) .dh-step-item > span {
    display: block;
    white-space: nowrap;
    line-height: 1.15;
    margin: 0;
}

/* CONNECTING LINE */
body:has(#signupStep1) .dh-step-line {
    flex: 1 1 auto;
    height: 2px;
    min-width: 28px;
    max-width: 70px;
    margin: 0 12px;
    align-self: center;
}

/* ============================================================
   PERSONAL ACCOUNT â€” BRING IT CLOSER TO STEPPER
   ============================================================ */

body:has(#signupStep1) #signupStep1 {
    margin-top: 0;
    padding-top: 0;
}

body:has(#signupStep1) #signupStep1 .step-title {
    margin-top: 0;
    margin-bottom: 16px;
}

body:has(#signupStep1) #signupStep1 .step-title h2 {
    margin-top: 0;
    margin-bottom: 4px;
}

body:has(#signupStep1) #signupStep1 .step-title p {
    margin-top: 0;
    margin-bottom: 0;
}

/* ============================================================
   FORM COMPACTNESS
   ============================================================ */

body:has(#signupStep1) #signupStep1Form .form-grid {
    gap: 10px 20px;
}

body:has(#signupStep1) #signupStep1Form .form-group {
    margin-bottom: 0;
}

body:has(#signupStep1) #signupStep1Form .form-group label {
    margin-bottom: 5px;
}

body:has(#signupStep1) #signupStep1Form input[type="text"],
body:has(#signupStep1) #signupStep1Form input[type="email"],
body:has(#signupStep1) #signupStep1Form input[type="tel"] {
    height: 54px;
}

/* CONSENTS */
body:has(#signupStep1) #signupStep1Form .checkbox-row {
    margin-top: 8px;
    margin-bottom: 0;
}

/* CONTINUE */
body:has(#signupStep1) #signupStep1Form .signup-actions {
    margin-top: 12px;
}

body:has(#signupStep1) #signupStep1Form #signupSendOtpBtn {
    min-height: 48px;
}

/* ============================================================
   DESKTOP â€” KEEP EVERYTHING VISIBLE
   ============================================================ */

@media (min-width: 1100px) {

    body:has(#signupStep1) .dh-auth-card {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    body:has(#signupStep1) .dh-card-icon {
        margin-bottom: 8px;
    }

    body:has(#signupStep1) .dh-card-icon img {
        width: 58px;
        height: 58px;
    }

    body:has(#signupStep1) .dh-card-title {
        font-size: 32px;
        line-height: 1.15;
    }

    body:has(#signupStep1) .dh-card-subtitle {
        font-size: 17px;
    }

    body:has(#signupStep1) .dh-stepper {
        margin-top: 8px;
        margin-bottom: 22px;
    }

    body:has(#signupStep1) #signupStep1 .step-title h2 {
        font-size: 30px;
        line-height: 1.15;
    }
}

/* ============================================================
   4-STEP LABEL SAFETY
   ============================================================ */

body:has(#signupStep1) #stepIndicator1 > span,
body:has(#signupStep1) #stepIndicator2 > span,
body:has(#signupStep1) #stepIndicator3 > span,
body:has(#signupStep1) #stepIndicator4 > span {
    white-space: nowrap;
}


/* ============================================================
   FINAL SIGNUP LAYOUT FIX
   - Keep all left hero content visible
   - Compact vertical spacing
   - Fit complete 4-step signup progress
   - Prevent right-side overflow
   ============================================================ */

/* ---------- RIGHT SIGNUP CARD ---------- */

.dh-card {
    overflow: hidden;
}

.dh-card-subtitle {
    margin-bottom: 22px !important;
}

/* Complete 4-step progress inside available width */
.dh-stepper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    display: grid !important;

    grid-template-columns:
        auto
        minmax(24px, 1fr)
        auto
        minmax(24px, 1fr)
        auto
        minmax(24px, 1fr)
        auto !important;

    align-items: center !important;
    column-gap: 8px !important;

    margin: 0 auto 34px auto !important;
    padding: 0 !important;
}

.dh-step-item {
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 8px !important;
    white-space: nowrap !important;
}

.dh-step-item span {
    font-size: 16px !important;
    line-height: 1.15 !important;
}

.dh-step-badge {
    flex: 0 0 auto !important;
}

.dh-step-line {
    width: 100% !important;
    min-width: 20px !important;
    height: 2px !important;
}

/* Keep the final label inside the card */
#stepIndicator4 {
    min-width: 0 !important;
}

#stepIndicator4 span {
    white-space: normal !important;
    text-align: left !important;
    max-width: 78px !important;
}

/* ---------- PERSONAL ACCOUNT ---------- */

.signup-step .step-title {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

.signup-step .step-title h2 {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

.signup-step .step-title p {
    margin-top: 0 !important;
}

/* ---------- LEFT HERO ---------- */

/*
   The hero was vertically overflowing.
   Compress the content instead of hiding the lower features.
*/

.dh-hero-panel {
    overflow: hidden !important;
}

.dh-hero-body {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.dh-hero-badge {
    margin-bottom: 18px !important;
}

.dh-hero-headline {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    line-height: 0.98 !important;
}

.dh-hero-description {
    margin-top: 0 !important;
    margin-bottom: 28px !important;
    line-height: 1.5 !important;
}

/* Fit all four feature rows */
.dh-hero-features {
    gap: 14px !important;
}

.dh-hero-feature-item {
    margin: 0 !important;
    min-height: 58px !important;
}

.dh-feature-info {
    gap: 3px !important;
}

.dh-feature-info strong {
    line-height: 1.15 !important;
}

.dh-feature-info span {
    line-height: 1.2 !important;
}

/* ---------- DESKTOP HEIGHT COMPRESSION ---------- */

@media (min-width: 1100px) and (max-height: 900px) {

    .dh-hero-brand {
        margin-bottom: 8px !important;
    }

    .dh-hero-body {
        padding-top: 8px !important;
    }

    .dh-hero-badge {
        margin-bottom: 12px !important;
    }

    .dh-hero-headline {
        font-size: clamp(42px, 4vw, 62px) !important;
        margin-bottom: 14px !important;
    }

    .dh-hero-description {
        font-size: 17px !important;
        margin-bottom: 20px !important;
    }

    .dh-hero-features {
        gap: 10px !important;
    }

    .dh-hero-feature-item {
        min-height: 52px !important;
    }

    .dh-feature-icon-circle {
        width: 54px !important;
        height: 54px !important;
    }

    .dh-feature-info strong {
        font-size: 17px !important;
    }

    .dh-feature-info span {
        font-size: 14px !important;
    }

    .dh-stepper {
        margin-bottom: 26px !important;
    }
}

/* ---------- EXTRA-WIDE SCREEN ---------- */

@media (min-width: 1400px) {

    .dh-stepper {
        column-gap: 10px !important;
    }

    .dh-step-item span {
        font-size: 16px !important;
    }
}


/* ============================================================
   SIGNUP - COMPACT DESKTOP FIT
   ============================================================ */

@media (min-width: 1000px) {

    /* RIGHT SIDE */

    .dh-card-title {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }

    .dh-card-subtitle {
        font-size: 17px !important;
        margin-bottom: 18px !important;
    }

    .dh-stepper {
        margin-bottom: 24px !important;
        column-gap: 6px !important;
    }

    .dh-step-item {
        gap: 6px !important;
    }

    .dh-step-item span {
        font-size: 14px !important;
    }

    .dh-step-badge {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        font-size: 15px !important;
    }

    .dh-step-line {
        min-width: 14px !important;
    }

    #stepIndicator4 span {
        max-width: 70px !important;
        font-size: 13px !important;
    }

    /* PERSONAL ACCOUNT */

    .signup-step .step-title {
        margin-bottom: 16px !important;
    }

    .signup-step .step-title h2 {
        font-size: 28px !important;
        margin-bottom: 4px !important;
    }

    .signup-step .step-title p {
        font-size: 15px !important;
    }

    /* FORM */

    .form-group label {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .form-group input {
        height: 48px !important;
        font-size: 15px !important;
        padding: 0 14px !important;
    }

    .form-grid {
        row-gap: 12px !important;
    }

    .checkbox-row {
        margin-top: 8px !important;
        font-size: 14px !important;
    }

    .checkbox-row input {
        width: 20px !important;
        height: 20px !important;
    }

    .signup-actions {
        margin-top: 12px !important;
    }

    .signup-actions button {
        height: 48px !important;
        font-size: 16px !important;
    }


    /* LEFT SIDE */

    .dh-hero-brand-title {
        font-size: 30px !important;
    }

    .dh-hero-brand-tagline {
        font-size: 13px !important;
    }

    .dh-hero-badge {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    .dh-hero-headline {
        font-size: 46px !important;
        line-height: 0.98 !important;
        margin-bottom: 14px !important;
    }

    .dh-hero-description {
        font-size: 15px !important;
        line-height: 1.45 !important;
        margin-bottom: 18px !important;
        max-width: 620px !important;
    }

    .dh-hero-features {
        gap: 9px !important;
    }

    .dh-hero-feature-item {
        min-height: 48px !important;
    }

    .dh-feature-icon-circle {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
    }

    .dh-feature-info strong {
        font-size: 15px !important;
    }

    .dh-feature-info span {
        font-size: 13px !important;
    }
}


/* ============================================================
   VERY SHORT DESKTOP SCREENS
   ============================================================ */

@media (min-width: 1000px) and (max-height: 850px) {

    .dh-card-title {
        font-size: 29px !important;
    }

    .dh-card-subtitle {
        font-size: 15px !important;
        margin-bottom: 14px !important;
    }

    .dh-stepper {
        margin-bottom: 18px !important;
    }

    .dh-step-badge {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .signup-step .step-title h2 {
        font-size: 25px !important;
    }

    .signup-step .step-title {
        margin-bottom: 12px !important;
    }

    .dh-hero-headline {
        font-size: 42px !important;
    }

    .dh-hero-description {
        font-size: 14px !important;
        margin-bottom: 14px !important;
    }

    .dh-hero-features {
        gap: 6px !important;
    }

    .dh-hero-feature-item {
        min-height: 44px !important;
    }

    .dh-feature-icon-circle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
}


/* ============================================================
   DISTRIHUB SIGNUP â€” FINAL COMPACT LAYOUT OVERRIDES
   Visual-only correction
   ============================================================ */

/* ---------- LEFT HERO ---------- */

.dh-hero-headline {
    font-size: 48px !important;
    line-height: 0.98 !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
}

/* Make "Built for Distributors." visible against navy */
.dh-hero-headline {
    color: #ffffff !important;
}

.dh-hero-headline .highlight-blue {
    color: #35bdf4 !important;
}

.dh-hero-description {
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin-bottom: 22px !important;
    max-width: 690px !important;
}

.dh-hero-badge {
    font-size: 15px !important;
    letter-spacing: 2px !important;
    margin-bottom: 8px !important;
}

.dh-hero-features {
    gap: 12px !important;
}

.dh-hero-feature-item {
    min-height: 54px !important;
    margin-bottom: 0 !important;
}

.dh-feature-icon-circle {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
}

.dh-feature-info strong {
    font-size: 17px !important;
    line-height: 1.15 !important;
}

.dh-feature-info span {
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* ---------- RIGHT SIGNUP CARD ---------- */

/* Reduce gap below subtitle */
.dh-card-subtitle {
    margin-bottom: 28px !important;
}

/* Make the 4-step row compact */
.dh-stepper {
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto 28px auto !important;
    gap: 10px !important;
    transform: scale(0.94);
    transform-origin: center top;
}

/* Smaller step circles */
.dh-step-badge {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 16px !important;
}

/* Compact step labels */
.dh-step-item span {
    font-size: 15px !important;
    line-height: 1.15 !important;
}

/* Keep connectors thin and compact */
.dh-step-line {
    height: 2px !important;
    flex: 1 !important;
    min-width: 18px !important;
}

/* Reduce space before Personal Account */
.signup-step {
    margin-top: 0 !important;
}

.step-title {
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

.step-title h2 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    margin-bottom: 8px !important;
}

.step-title p {
    font-size: 17px !important;
    line-height: 1.3 !important;
}

/* ---------- FORM COMPRESSION ---------- */

.form-grid {
    row-gap: 12px !important;
}

.form-group {
    margin-bottom: 0 !important;
}

.form-group label {
    margin-bottom: 7px !important;
}

.form-group input {
    height: 54px !important;
}

.checkbox-row {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.signup-actions {
    margin-top: 12px !important;
}

.signup-actions button {
    height: 56px !important;
}

/* ---------- RESPONSIVE SAFETY ---------- */

@media (max-height: 850px) and (min-width: 1000px) {

    .dh-hero-headline {
        font-size: 42px !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important;
    }

    .dh-hero-description {
        font-size: 15px !important;
        margin-bottom: 14px !important;
    }

    .dh-hero-features {
        gap: 8px !important;
    }

    .dh-hero-feature-item {
        min-height: 48px !important;
    }

    .dh-feature-icon-circle {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    .dh-feature-info strong {
        font-size: 15px !important;
    }

    .dh-feature-info span {
        font-size: 13px !important;
    }

    .dh-stepper {
        margin-bottom: 20px !important;
        transform: scale(0.90);
    }

    .step-title h2 {
        font-size: 30px !important;
    }

    .step-title {
        margin-bottom: 16px !important;
    }
}


/* ============================================================
   DISTRIHUB SIGNUP â€” DESKTOP COMPACT FIT
   Final viewport-density adjustment
   ============================================================ */

@media (min-width: 900px) {

    /* --------------------------------------------------------
       MAIN AUTH LAYOUT
       -------------------------------------------------------- */

    .dh-auth-container {
        min-height: 100vh;
        height: 100vh;
        overflow: hidden;
    }

    .dh-hero-panel {
        height: 100vh;
        overflow: hidden;
    }


    /* --------------------------------------------------------
       LEFT HERO â€” FIT ALL CONTENT
       -------------------------------------------------------- */

    .dh-hero-brand {
        margin-bottom: 28px;
    }

    .dh-hero-body {
        transform: translateY(-4px);
    }

    .dh-hero-badge {
        font-size: 13px;
        letter-spacing: 1.8px;
        margin-bottom: 14px;
    }

    .dh-hero-headline {
        font-size: clamp(34px, 3vw, 52px);
        line-height: 0.98;
        margin-bottom: 16px;
    }

    .dh-hero-description {
        font-size: 15px;
        line-height: 1.45;
        max-width: 680px;
        margin-bottom: 22px;
    }

    .dh-hero-features {
        gap: 13px;
    }

    .dh-hero-feature-item {
        min-height: 43px;
    }

    .dh-feature-icon-circle {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .dh-feature-info strong {
        font-size: 15px;
        line-height: 1.1;
    }

    .dh-feature-info span {
        font-size: 12px;
        line-height: 1.2;
    }


    /* --------------------------------------------------------
       RIGHT SIDE
       -------------------------------------------------------- */

    .dh-auth-container > *:last-child {
        min-width: 0;
    }

    .dh-card {
        width: min(92%, 820px);
        max-width: 820px;
        padding: 28px 42px 30px;
        margin: 0 auto;
    }


    /* --------------------------------------------------------
       TOP LOGO + TITLE
       -------------------------------------------------------- */

    .dh-card-logo {
        margin-bottom: 12px;
    }

    .dh-card-logo img {
        width: 52px;
        height: 52px;
    }

    .dh-card-title {
        font-size: 30px;
        line-height: 1.12;
        margin-bottom: 8px;
    }

    .dh-card-subtitle {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 20px;
    }


    /* --------------------------------------------------------
       4 STEP SIGNUP PROGRESS
       -------------------------------------------------------- */

    .dh-stepper {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 6px;

        margin-top: 2px;
        margin-bottom: 24px;

        min-height: 42px;
    }

    .dh-step-item {
        display: flex;
        align-items: center;
        gap: 8px;

        flex: 0 0 auto;

        white-space: nowrap;
    }

    .dh-step-badge {
        width: 38px;
        height: 38px;
        min-width: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 14px;
        font-weight: 700;
    }

    .dh-step-item span {
        font-size: 14px;
        line-height: 1.05;
    }

    .dh-step-line {
        flex: 1 1 auto;
        min-width: 20px;
        height: 2px;
    }


    /* --------------------------------------------------------
       STEP CONTENT
       -------------------------------------------------------- */

    .signup-step {
        margin-top: 0;
    }

    .step-title {
        margin-bottom: 18px;
    }

    .step-title h2 {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 6px;
    }

    .step-title p {
        font-size: 15px;
        line-height: 1.35;
    }


    /* --------------------------------------------------------
       FORM
       -------------------------------------------------------- */

    .form-grid {
        gap: 14px 18px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        height: 48px;
        min-height: 48px;

        padding: 0 14px;

        font-size: 14px;
    }

    .checkbox-row {
        margin-top: 10px;
        gap: 8px;
    }

    .checkbox-row label {
        font-size: 14px;
        line-height: 1.2;
    }

    .checkbox-row input {
        width: 18px;
        height: 18px;
    }

    .signup-actions {
        margin-top: 16px;
    }

    .signup-actions button {
        height: 46px;
        min-height: 46px;

        font-size: 16px;
    }
}


/* ============================================================
   VERY TALL / LARGE DESKTOP
   Give the card a little more breathing room
   ============================================================ */

@media (min-width: 1200px) and (min-height: 850px) {

    .dh-card {
        padding-top: 30px;
        padding-bottom: 32px;
    }

    .dh-card-title {
        font-size: 32px;
    }

    .dh-stepper {
        margin-bottom: 26px;
    }
}


/* ============================================================
   SHORT DESKTOP / LAPTOP
   Force compact mode so nothing disappears below viewport
   ============================================================ */

@media (min-width: 900px) and (max-height: 800px) {

    .dh-card {
        padding-top: 20px;
        padding-bottom: 22px;
    }

    .dh-card-logo {
        margin-bottom: 8px;
    }

    .dh-card-logo img {
        width: 46px;
        height: 46px;
    }

    .dh-card-title {
        font-size: 27px;
        margin-bottom: 5px;
    }

    .dh-card-subtitle {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .dh-stepper {
        margin-bottom: 16px;
        min-height: 38px;
    }

    .dh-step-badge {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 13px;
    }

    .dh-step-item span {
        font-size: 13px;
    }

    .step-title {
        margin-bottom: 13px;
    }

    .step-title h2 {
        font-size: 25px;
    }

    .step-title p {
        font-size: 14px;
    }

    .form-grid {
        gap: 10px 16px;
    }

    .form-group input,
    .form-group select {
        height: 44px;
        min-height: 44px;
    }

    .checkbox-row {
        margin-top: 7px;
    }

    .signup-actions {
        margin-top: 11px;
    }

    .signup-actions button {
        height: 42px;
        min-height: 42px;
    }
}


/* ================================================================
   DISTRIHUB SIGNUP â€” CLEAN 90% CONTENT SCALE
   Scale only the signup content, not the page/layout.
   ================================================================ */

@media (min-width: 900px) {

    body:has(#signupStep1) .dh-auth-card {
        zoom: 0.82 !important;
    }

}

/* ================================================================
   END CLEAN 90% CONTENT SCALE
   ================================================================ */

/* ============================================================
   DISTRIHUB SIGNUP â€” LEFT PANEL SLIGHT COMPRESSION
   RIGHT SIDE UNTOUCHED
   ============================================================ */

@media (min-width: 900px) {

    /* LEFT HERO HEADLINE */
    body:has(#signupStep1) .dh-hero-headline {
        font-size: 0.94em !important;
    }

    /* LEFT HERO BADGE */
    body:has(#signupStep1) .dh-hero-badge {
        font-size: 0.94em !important;
    }

    /* LEFT HERO DESCRIPTION */
    body:has(#signupStep1) .dh-hero-description {
        font-size: 0.94em !important;
    }

    /* LEFT FEATURE ICONS */
    body:has(#signupStep1) .dh-feature-icon-circle {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }

    /* LEFT FEATURE TITLES */
    body:has(#signupStep1) .dh-feature-info strong {
        font-size: 0.94em !important;
    }

    /* LEFT FEATURE DESCRIPTIONS */
    body:has(#signupStep1) .dh-feature-info span {
        font-size: 0.94em !important;
    }

    /* LEFT FEATURE SPACING */
    body:has(#signupStep1) .dh-hero-features {
        gap: 10px !important;
    }

    body:has(#signupStep1) .dh-hero-feature-item {
        min-height: 50px !important;
    }

}


/* LEFT HERO TAG LOGO */
@media (min-width: 900px) {
    body:has(#signupStep1) .dh-hero-tag-logo img {
        width: 280px;
        height: auto;
        display: block;
    }
}

/* ============================================================
   DISTRIHUB LEFT TAG LOGO â€” SIZE FIX
   Right signup panel intentionally untouched
   ============================================================ */

.dh-hero-tag-logo {
    display: block !important;
    width: 320px !important;
    height: auto !important;
    max-width: 320px !important;
    object-fit: contain !important;
    margin: 0 !important;
}


/* ============================================================
   DISTRIHUB SIGNUP — STEP 2 VERIFICATION UI
   VISUAL PATCH ONLY
   No HTML / JS behaviour changes
   ============================================================ */

#signupStep2 {
    width: 100%;
}

#signupStep2 .step-title {
    text-align: center;
    margin-bottom: 18px !important;
}

#signupStep2 .step-title h2 {
    margin-bottom: 6px !important;
}

#signupStep2 .step-title p {
    margin-bottom: 0 !important;
}

/* ------------------------------------------------------------
   OTP CONTAINER
   ------------------------------------------------------------ */

#signupStep2 .otp-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

/* ------------------------------------------------------------
   EMAIL / MOBILE METHOD ROWS
   ------------------------------------------------------------ */

#signupStep2 .verification-methods {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 12px;
}

#signupStep2 .verification-method {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 12px 18px;

    border: 1px solid #dbe4ef;
    border-radius: 12px;

    background: #ffffff;
    color: #0f2f5f;

    font-size: 15px;
    font-weight: 700;

    text-align: left;

    box-shadow: 0 2px 8px rgba(15, 47, 95, 0.04);

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

#signupStep2 .verification-method:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(15, 47, 95, 0.08);
}

#signupStep2 .verification-method.active {
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

/* ------------------------------------------------------------
   DESTINATION MESSAGE
   ------------------------------------------------------------ */

#signupStep2 #verificationDestination {
    margin: 4px 0 10px;

    text-align: center;

    font-size: 13px;
    line-height: 1.4;

    color: #64748b;
}

/* ------------------------------------------------------------
   VERIFICATION STATUS
   ------------------------------------------------------------ */

#signupStep2 .verification-status {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin: 0 0 18px;
}

#signupStep2 .verification-status-item {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 9px 12px;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    background: #f8fafc;

    color: #64748b;

    font-size: 13px;
    font-weight: 600;

    text-align: center;
}

#signupStep2 .verification-status-item .status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    font-size: 13px;
}

#signupStep2 .verification-status-item.verified {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

#signupStep2 .verification-status-item.verified .status-icon {
    color: #16a34a;
    font-weight: 700;
}

/* ------------------------------------------------------------
   OTP INPUT
   ------------------------------------------------------------ */

#signupStep2 .otp-input {
    width: 100%;
    height: 54px;
    min-height: 54px;

    margin: 4px 0 14px;

    box-sizing: border-box;

    border: 1px solid #d7e0eb;
    border-radius: 12px;

    background: #ffffff;

    text-align: center;

    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.28em;

    color: #0f2f5f;
}

#signupStep2 .otp-input::placeholder {
    color: #94a3b8;
    opacity: 1;
    letter-spacing: 0.25em;
}

#signupStep2 .otp-input:focus {
    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ------------------------------------------------------------
   RESEND / CHANGE METHOD
   ------------------------------------------------------------ */

#signupStep2 .otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0 0 14px;
}

#signupStep2 .otp-actions button {
    min-height: 44px;

    padding: 0 18px;

    border: 1px solid #dbe4ef;
    border-radius: 10px;

    background: #ffffff;
    color: #12345b;

    font-size: 14px;
    font-weight: 700;
}

#signupStep2 .otp-actions button:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

/* ------------------------------------------------------------
   BACK / VERIFY & CONTINUE
   ------------------------------------------------------------ */

#signupStep2 .signup-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 4px;
}

#signupStep2 .signup-actions span {
    display: none !important;
}

#signupStep2 .signup-actions button {
    min-height: 46px;

    padding: 0 22px;

    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;
}

#signupStep2 #signupVerifyBackBtn {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    color: #12345b;
}

#signupStep2 #signupVerifyBtn {
    border: 1px solid #2563eb;
}

/* ------------------------------------------------------------
   REMOVE OPTIONAL SECURITY / TRUST CARD IF PRESENT
   This intentionally targets only Step 2.
   ------------------------------------------------------------ */

#signupStep2 .verification-security-card,
#signupStep2 .otp-security-card,
#signupStep2 .verification-trust-card,
#signupStep2 .otp-trust-card,
#signupStep2 .information-safe-card,
#signupStep2 .safe-information-card {
    display: none !important;
}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 899px) {

    #signupStep2 .otp-container {
        max-width: 100%;
    }

    #signupStep2 .verification-status {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #signupStep2 .verification-status-item {
        justify-content: flex-start;
        text-align: left;
    }

    #signupStep2 .otp-actions {
        flex-wrap: wrap;
    }

    #signupStep2 .signup-actions {
        flex-wrap: wrap;
    }

    #signupStep2 .signup-actions button {
        flex: 1 1 140px;
    }
}

/* ============================================================
   END STEP 2 VERIFICATION UI PATCH
   ============================================================ */




/* ============================================================
   DISTRIHUB STEP 2 DUAL OTP MOCKUP OVERRIDE
   Email + Mobile verification
   ============================================================ */

#signupStep2 {
    width: 100%;
}

#signupStep2 .step-title {
    text-align: center;
    margin-bottom: 20px;
}

#signupStep2 .step-title h2 {
    margin-bottom: 6px;
}

#signupStep2 .step-title p {
    margin: 0;
}

.signup-verification-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0 0;
}

.signup-verification-card {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
    padding: 22px 24px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.signup-verification-card.verified {
    border-color: #86efac;
    background: #fafffb;
}

.verification-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.verification-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon-email {
    background: #eff6ff;
    color: #2563eb;
}

.verification-icon-mobile {
    background: #f0fdf4;
    color: #16a34a;
}

.verification-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.verification-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.verification-card-info h3 {
    margin: 0 0 3px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.verification-card-info .verification-subtext {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.verification-card-info .verification-destination {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    word-break: break-all;
}

.verification-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #eff6ff;
    color: #2563eb;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.verification-change-btn:hover {
    background: #dbeafe;
}

.verification-change-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.signup-verification-card .dh-otp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 16px 0 16px;
}

.signup-verification-card .dh-otp-input {
    width: 54px;
    height: 56px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.signup-verification-card .dh-otp-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.signup-verification-card .dh-otp-input:disabled {
    background: #f8fafc;
    border-color: #86efac;
    color: #166534;
    cursor: default;
}

.verification-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.verification-footer-prompt {
    color: #64748b;
}

.verification-resend-link {
    background: transparent;
    border: none;
    padding: 0;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.verification-resend-link:hover:not(:disabled) {
    text-decoration: underline;
}

.verification-resend-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.verification-footer-bullet {
    color: #94a3b8;
    font-size: 14px;
}

.verification-footer-timer {
    color: #64748b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.verification-badge-verified {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.verification-badge-verified svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
}

.signup-verification-card.verified .verification-change-btn {
    display: none !important;
}

.signup-verification-card.verified .verification-badge-verified {
    display: inline-flex !important;
}

.verification-success-msg {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.verification-success-msg svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
}

.signup-verification-card.verified .verification-card-footer {
    display: none !important;
}

.signup-verification-card.verified .verification-success-msg {
    display: flex !important;
}

#signupStep2 .verification-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    width: 100%;
}

#signupStep2 .verification-actions-row .dh-btn-text {
    display: inline !important;
}

#signupStep2 #signupVerifyBackBtn {
    min-width: 140px;
    height: 50px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#signupStep2 #signupVerifyBackBtn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

#signupStep2 #signupVerifyBtn {
    flex: 1;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: #1668e8;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(22, 104, 232, 0.25);
    transition: background 0.15s ease;
}

#signupStep2 #signupVerifyBtn:hover {
    background: #1255c2;
}

#signupStep2 #signupVerifyBtn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.verification-otp-button {
    min-width: 116px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #0879f9;
    border-radius: 7px;
    background: #0879f9;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.verification-otp-button:disabled {
    border-color: #d4dce8;
    background: #eef2f7;
    color: #94a3b8;
    cursor: default;
}

.signup-verification-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    margin: 4px 0 16px;
    border-radius: 8px;
    background: #eaf4ff;
    color: #234f91;
    font-size: 13px;
    line-height: 1.35;
}

.signup-verification-notice svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.signup-step2-actions {
    margin-top: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

#signupStep2 .signup-step2-actions button {
    min-width: 116px;
    height: 46px;
}

#signupStep2 #signupVerifyBtn {
    min-width: 240px;
}

#signupStep2 #signupVerifyBtn:disabled {
    opacity: 0.55;
    cursor: default;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 899px) {

    .verification-card-header {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .verification-icon {
        width: 48px;
        height: 48px;
    }

    .verification-status-badge {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }

    .signup-otp-group {
        gap: 6px;
    }

    .signup-otp-group .dh-otp-input {
        width: 42px;
        min-width: 42px;
        height: 48px;
    }

    .verification-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .verification-otp-button {
        width: 100%;
    }

    .signup-step2-actions {
        flex-direction: row !important;
    }

    #signupStep2 #signupVerifyBtn {
        min-width: 0;
        flex: 1;
    }
}

/* ============================================================
   SIGNUP STEP 3 -- COMPACT HORIZONTAL FORM LAYOUT
   Label on the left (190px) + Input on the right (1fr)
   ============================================================ */

#signupStep3 .step-title {
    margin-bottom: 14px !important;
}

#signupStep3 .step-title h2 {
    font-size: 24px !important;
    margin-bottom: 4px !important;
}

#signupStep3 .step-title p {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
}

#signupStep3 .business-form-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

#signupStep3 .business-field-row {
    display: grid !important;
    grid-template-columns: 190px 1fr !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

#signupStep3 .business-field-row.address-row {
    align-items: flex-start !important;
}

#signupStep3 .business-field-row.address-row label {
    padding-top: 8px !important;
}

#signupStep3 .business-field-row label {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-align: left !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 3px !important;
}

#signupStep3 .business-field-row label .required {
    color: #ef4444 !important;
    font-weight: 700 !important;
}

#signupStep3 .business-field-row input,
#signupStep3 .business-field-row select {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0 12px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#signupStep3 .business-field-row textarea {
    width: 100% !important;
    height: 56px !important;
    min-height: 48px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    box-sizing: border-box !important;
    outline: none !important;
    resize: vertical !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#signupStep3 .business-field-row input:focus,
#signupStep3 .business-field-row select:focus,
#signupStep3 .business-field-row textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

#signupStep3 .business-field-row input::placeholder,
#signupStep3 .business-field-row textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* Custom styled dropdown arrow */
#signupStep3 .business-field-row select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

/* Action buttons */
#signupStep3 .business-actions-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    margin-top: 14px !important;
    width: 100% !important;
}

#signupStep3 #signupBusinessBackBtn {
    min-width: 110px !important;
    height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

#signupStep3 #signupBusinessBackBtn:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
}

#signupStep3 #signupBusinessNextBtn {
    min-width: 140px !important;
    height: 42px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #1668e8 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 3px 10px rgba(22, 104, 232, 0.22) !important;
    transition: background 0.15s ease !important;
}

#signupStep3 #signupBusinessNextBtn:hover {
    background: #1255c2 !important;
}

#signupStep3 #signupBusinessNextBtn svg {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.5 !important;
}

/* Mobile responsive layout */
@media (max-width: 640px) {
    #signupStep3 .business-field-row {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
    }

    #signupStep3 .business-field-row.address-row {
        align-items: stretch !important;
    }

    #signupStep3 .business-field-row.address-row label {
        padding-top: 0 !important;
    }

    #signupStep3 .business-actions-row {
        justify-content: stretch !important;
        margin-top: 12px !important;
    }

    #signupStep3 #signupBusinessBackBtn,
    #signupStep3 #signupBusinessNextBtn {
        flex: 1 !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   SIGNUP STEP 2 -- DESKTOP VERTICAL SCROLL
   Keep the form readable; scroll only the right panel.
   ========================================================= */

@media (min-width: 900px) {

    body:has(#signupStep1) {
        overflow: hidden;
    }

    body:has(#signupStep1) .dh-form-panel {
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    body:has(#signupStep1) .dh-form-panel .signup-step {
        max-width: 100%;
    }

    /* Keep scrollbar clean */
    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar {
        width: 7px;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.18);
        border-radius: 10px;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.30);
    }
}

/* =========================================================
   SIGNUP STEP 2 -- DESKTOP PANEL POSITION + SCROLL FIX
   ========================================================= */

@media (min-width: 900px) {

    body:has(#signupStep1) .dh-form-panel {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        overflow-x: hidden;

        /* IMPORTANT:
           Do not vertically center oversized signup content */
        justify-content: flex-start;
        align-items: stretch;

        box-sizing: border-box;
    }

    body:has(#signupStep1) .dh-form-panel > * {
        flex-shrink: 0;
    }

    body:has(#signupStep1) .dh-form-panel .signup-step {
        margin-top: 0;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar {
        width: 7px;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-track {
        background: transparent;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.18);
        border-radius: 10px;
    }

    body:has(#signupStep1) .dh-form-panel::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.30);
    }
}

/* ============================================================
   DISTRIHUB UNIFIED HERO BRAND LOGO
   Consistent 250px centered white tag logo for Login & Signup
   ============================================================ */
@media (min-width: 900px) {
    .dh-hero-panel .dh-hero-brand {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .dh-hero-panel .dh-hero-tag-logo {
        width: 250px !important;
        max-width: 250px !important;
        height: auto !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============================================================
   DISTRIHUB LOGIN -- COMPACT VIEWPORT FIT & ZERO VERTICAL CROPPING
   Pixel-perfect balance for 1366x768, 1536x864, and laptops
   ============================================================ */

body:has(#loginForm) {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: var(--dh-bg-page);
}

body:has(#loginForm) .dh-auth-container {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

body:has(#loginForm) .dh-hero-panel {
    height: 100vh;
    box-sizing: border-box;
    padding: clamp(20px, 3vh, 44px) clamp(28px, 3.5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body:has(#loginForm) .dh-hero-brand {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-shrink: 0;
}

body:has(#loginForm) .dh-hero-tag-logo {
    width: 250px !important;
    max-width: 250px !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

body:has(#loginForm) .dh-hero-body {
    margin: 8px 0 16px !important;
    flex-shrink: 0;
}

body:has(#loginForm) .dh-hero-badge {
    margin-bottom: 10px;
    font-size: 11px;
}

body:has(#loginForm) .dh-hero-headline {
    font-size: 22px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.3px !important;
    white-space: nowrap !important;
    margin-bottom: 10px !important;
}

body:has(#loginForm) .dh-hero-headline .highlight-blue {
    font-size: inherit !important;
}

body:has(#loginForm) .dh-hero-description {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 18px !important;
    color: #94a3b8;
}

body:has(#loginForm) .dh-hero-features {
    gap: 12px !important;
}

body:has(#loginForm) .dh-feature-icon-circle {
    width: 38px !important;
    height: 38px !important;
}

body:has(#loginForm) .dh-feature-info strong {
    font-size: 13px !important;
}

body:has(#loginForm) .dh-feature-info span {
    font-size: 12px !important;
}

body:has(#loginForm) .dh-hero-footer {
    flex-shrink: 0;
    padding-top: 12px;
}

/* RIGHT AUTH FORM PANEL */
body:has(#loginForm) .dh-form-panel {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: clamp(14px, 2vh, 28px) clamp(24px, 3vw, 48px);
}

body:has(#loginForm) .dh-top-switcher {
    flex-shrink: 0;
    font-size: 13.5px;
}

body:has(#loginForm) .dh-support-footer {
    flex-shrink: 0;
    margin-top: 8px;
    font-size: 12.5px;
}

/* CENTER AUTH CARD */
body:has(#loginForm) .dh-auth-card {
    flex-shrink: 0;
    margin: auto 0;
    width: 100%;
    max-width: 440px;
    padding: clamp(18px, 2.4vh, 28px) clamp(24px, 3vw, 36px);
    border-radius: 20px;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(226, 232, 240, 0.8);
    box-sizing: border-box;
}

body:has(#loginForm) .dh-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

body:has(#loginForm) .dh-card-title {
    font-size: 23px;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

body:has(#loginForm) .dh-card-subtitle {
    font-size: 13px;
    margin-bottom: 16px;
}

body:has(#loginForm) .dh-field-group {
    margin-bottom: 12px;
}

body:has(#loginForm) .dh-field-label {
    font-size: 12.5px;
    margin-bottom: 5px;
}

body:has(#loginForm) .dh-input-wrapper input {
    padding: 10px 14px 10px 40px;
    font-size: 13.5px;
    border-radius: 10px;
}

body:has(#loginForm) .dh-btn-primary {
    padding: 11px 18px;
    font-size: 14px;
    border-radius: 10px;
    margin-top: 4px;
}

body:has(#loginForm) .dh-divider {
    margin: 12px 0;
    font-size: 11.5px;
}

body:has(#loginForm) .dh-social-group {
    gap: 10px;
}

body:has(#loginForm) .dh-btn-social {
    padding: 8.5px 12px;
    font-size: 12.5px;
    border-radius: 10px;
}

body:has(#loginForm) .dh-trust-badge {
    margin-top: 14px !important;
    font-size: 12px !important;
}

/* OTP VIEW IN LOGIN */
body:has(#loginForm) #loginOtpSection {
    padding-top: 2px;
}

body:has(#loginForm) #loginOtpSection p {
    font-size: 13px !important;
    margin-bottom: 10px !important;
}

body:has(#loginForm) .dh-otp-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 12px;
}

body:has(#loginForm) .dh-otp-input {
    width: 54px;
    height: 54px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    text-align: center;
}

body:has(#loginForm) .dh-otp-input:focus {
    border-color: var(--dh-blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.15);
}

body:has(#loginForm) .dh-otp-meta {
    gap: 6px;
    margin-bottom: 16px;
    font-size: 12px;
}

/* SCROLLBAR REFINEMENT FOR LOGIN PANEL */
body:has(#loginForm) .dh-form-panel::-webkit-scrollbar {
    width: 6px;
}

body:has(#loginForm) .dh-form-panel::-webkit-scrollbar-track {
    background: transparent;
}

body:has(#loginForm) .dh-form-panel::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
    border-radius: 10px;
}

/* TIGHT VIEWPORT FALLBACK (<640px height) */
@media (max-height: 640px) {
    body:has(#loginForm) .dh-form-panel {
        justify-content: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body:has(#loginForm) .dh-auth-card {
        margin: 8px 0;
        padding: 16px 22px;
    }

    body:has(#loginForm) .dh-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 6px;
    }

    body:has(#loginForm) .dh-card-title {
        font-size: 21px;
    }

    body:has(#loginForm) .dh-card-subtitle {
        margin-bottom: 10px;
    }

    body:has(#loginForm) .dh-hero-body {
        margin: 4px 0 10px !important;
    }

    body:has(#loginForm) .dh-hero-features {
        gap: 6px !important;
    }
}

/* ============================================================
   DEVICE ACTIVATION LIMIT MODAL
   ============================================================ */
.dh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: dhModalFadeIn 0.2s ease-out;
}

@keyframes dhModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dh-modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  animation: dhModalCardPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dhModalCardPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dh-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dh-modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dh-modal-icon-badge i,
.dh-modal-icon-badge svg {
  width: 22px;
  height: 22px;
}

.dh-modal-header-text {
  flex: 1;
}

.dh-modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.dh-modal-subtitle {
  margin: 3px 0 0 0;
  font-size: 13px;
  color: #64748b;
}

.dh-modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #94a3b8;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.dh-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dh-modal-close i,
.dh-modal-close svg {
  width: 18px;
  height: 18px;
}

.dh-modal-body {
  margin-bottom: 20px;
}

.dh-modal-description {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
}

.dh-device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 14px;
}

.dh-device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dh-device-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.dh-device-card.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.dh-device-radio {
  accent-color: #2563eb;
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.dh-device-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dh-device-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dh-device-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.dh-device-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.dh-device-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dh-modal-alert-error {
  padding: 10px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
}

.dh-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.dh-modal-btn-secondary {
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dh-modal-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  color: #1e293b;
  border-color: #94a3b8;
}

.dh-modal-btn-primary {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0077ff 0%, #005ce6 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px -2px rgba(0, 102, 255, 0.35);
  transition: all 0.15s ease;
}

.dh-modal-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -2px rgba(0, 102, 255, 0.45);
}

.dh-modal-btn-primary:disabled,
.dh-modal-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


