/* ==========================================================================
   DHProduct Auth Layout Grid & Core Styles (Shared)
   ========================================================================== */

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

:root {
  --dp-font: 'Inter', sans-serif;
  --dp-font-display: 'Outfit', sans-serif;
  --dp-radius-lg: 24px;
  --dp-radius-md: 12px;
  --dp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --dp-header-height: 80px;
  --dp-space-3xl: 48px;
  --dp-space-xl: 32px;
  --dp-space-lg: 24px;
  --dp-space-md: 16px;
}

.dhp-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  background: var(--dp-bg);
  font-family: var(--dp-font);
  color: var(--dp-text);
  overflow-x: hidden;
  box-sizing: border-box;
}

.dhp-auth-page * {
  box-sizing: border-box;
}

/* Responsive grid viewports */
@media (max-width: 991px) {
  .dhp-auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  /* Mobile UX: the sign-in form is the reason a visitor opened this page —
     show it before the marketing hero, not after a full screen of scrolling. */
  .dhp-auth-form-col {
    order: 1;
  }
  .dhp-auth-brand {
    order: 2;
    display: flex !important;
    padding: 30px 24px 20px 24px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--dp-border) !important;
    border-bottom-left-radius: 36px !important;
    border-bottom-right-radius: 36px !important;
    min-height: auto !important;
  }
  .dhp-auth-brand-footer {
    display: none !important;
  }
  .dhp-brand-top-nav {
    display: none !important;
  }
  /* The form card is now first on mobile (see .dhp-auth-form-col order above),
     so its own Sign In/Sign Up tablist is what greets the visitor — keep that
     one, and hide the brand block's redundant copy since it's now below the fold. */
  .dhp-auth-header-tabs {
    display: none !important;
  }
  .dhp-auth-tabs {
    display: flex !important;
  }
  .dhp-brand-illustration {
    margin-top: 24px !important;
    max-height: 220px !important;
  }
  .dhp-brand-illustration-img {
    max-width: 240px !important;
    max-height: 200px !important;
    margin: 0 auto !important;
  }
  .dhp-auth-form-col {
    padding: 24px 16px !important;
  }
  .dhp-auth-card {
    margin: 0 auto !important;
    max-width: 100% !important;
    box-shadow: var(--dp-shadow-card) !important;
  }
}

/* Header tabs for mobile view */
.dhp-auth-header-tabs {
  display: none;
  align-items: center;
  gap: 16px;
}

.dhp-auth-header-tab {
  background: none;
  border: none;
  font-family: var(--dp-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  transition: var(--dp-transition);
}

.dhp-auth-header-tab:hover {
  color: #ffffff;
}

.dhp-auth-header-tab.active {
  color: var(--dp-primary) !important;
}

.dhp-auth-header-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dp-primary);
  border-radius: 2px;
}

/* Theme-specific overrides for header tab colors in light themes */
.dhp-theme-theme-2 .dhp-auth-header-tab,
.dhp-theme-theme-4 .dhp-auth-header-tab,
.dhp-theme-theme-5 .dhp-auth-header-tab,
.dhp-theme-theme-7 .dhp-auth-header-tab,
.dhp-theme-theme-8 .dhp-auth-header-tab,
.dhp-theme-theme-10 .dhp-auth-header-tab {
  color: var(--dp-text-secondary);
}

.dhp-theme-theme-2 .dhp-auth-header-tab:hover,
.dhp-theme-theme-4 .dhp-auth-header-tab:hover,
.dhp-theme-theme-5 .dhp-auth-header-tab:hover,
.dhp-theme-theme-7 .dhp-auth-header-tab:hover,
.dhp-theme-theme-8 .dhp-auth-header-tab:hover,
.dhp-theme-theme-10 .dhp-auth-header-tab:hover {
  color: var(--dp-text);
}

.dhp-theme-theme-2 .dhp-auth-header-tab.active,
.dhp-theme-theme-4 .dhp-auth-header-tab.active,
.dhp-theme-theme-5 .dhp-auth-header-tab.active,
.dhp-theme-theme-7 .dhp-auth-header-tab.active,
.dhp-theme-theme-8 .dhp-auth-header-tab.active,
.dhp-theme-theme-10 .dhp-auth-header-tab.active {
  color: var(--dp-primary) !important;
}


/* Left side brand column */
.dhp-auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 60px 80px 0 80px;
  position: relative;
  overflow: hidden;
}

.dhp-auth-brand__inner {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dhp-auth-brand__logo-wrap {
  margin-bottom: 24px;
  text-align: left;
}

.dhp-auth-brand__logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}
/* Dark brand panels (themes 1, 3, 6, 9) render the transparent logo in solid
   white for contrast; the light themes keep the original green/gold logo. */
.dhp-theme-theme-1 .dhp-auth-brand__logo-img,
.dhp-theme-theme-3 .dhp-auth-brand__logo-img,
.dhp-theme-theme-6 .dhp-auth-brand__logo-img,
.dhp-theme-theme-9 .dhp-auth-brand__logo-img {
  filter: brightness(0) invert(1);
}

.dhp-auth-brand__headline {
  font-family: var(--dp-font-display);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dp-text-inverse, #ffffff);
  margin-bottom: 16px;
  text-align: left;
}

.dhp-auth-brand__sub {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 28px;
  color: var(--dp-text-inverse, #ffffff);
  line-height: 1.5;
  text-align: left;
}

/* Features List styling */
.dhp-auth-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px 0;
  padding: 0;
  max-width: 100%;
}

.dhp-auth-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  opacity: 0.95;
  color: var(--dp-text-inverse, #ffffff);
}

.dhp-auth-features span {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Brand Illustration container */
.dhp-brand-illustration {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: auto;
  max-height: 380px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.dhp-brand-illustration-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  margin-bottom: 0;
  display: block;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4));
}

/* Right side form column */
.dhp-auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--dp-bg);
  position: relative;
  z-index: 2;
}

/* High-end glassmorphism card */
.dhp-auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--dp-bg-card);
  border: 1px solid var(--dp-glass-border);
  padding: 40px;
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  transition: var(--dp-transition);
}

@media (max-width: 480px) {
  .dhp-auth-card {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .dhp-auth-brand {
    padding: 40px 24px 0;
  }
}

/* Tabs switcher styling (Sign In vs Sign Up) */
.dhp-auth-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--dp-border) !important;
  border-radius: 0 !important;
}

.dhp-auth-tab {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: transparent !important;
  font-family: var(--dp-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--dp-transition);
  color: var(--dp-text-secondary);
  text-align: center;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
}

.dhp-auth-tab:hover {
  color: var(--dp-text);
}

.dhp-auth-tab.active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--dp-primary) !important;
  border-bottom: 3px solid var(--dp-primary) !important;
}

/* Switcher portal navigation buttons */
.dhp-portal-selector-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  width: 100%;
  background: var(--dp-surface);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--dp-glass-border);
}

.dhp-portal-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--dp-text-secondary);
  cursor: pointer;
  transition: var(--dp-transition);
  text-decoration: none;
  text-align: center;
}

.dhp-portal-btn:hover {
  color: var(--dp-primary);
}

.dhp-portal-btn.active {
  background: var(--dp-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Form Inputs, Labels, Fields */
.dhp-field {
  margin-bottom: 20px;
  position: relative;
}

.dhp-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dp-text-secondary);
  text-align: left;
}

.dhp-input-icon-wrap {
  position: relative;
  width: 100%;
}

.dhp-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dp-text-secondary);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 5;
}

.dhp-input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  background: var(--dp-surface);
  border: 1px solid var(--dp-glass-border);
  border-radius: 12px;
  color: var(--dp-text);
  font-size: 0.92rem;
  transition: var(--dp-transition);
  outline: none;
}

/* Input polish: the site-wide neumorphic inset (style.css --dp-shadow-in) looks
   too heavy on the auth cards — replace it with the clean, soft field look of
   the reference designs. Scoped to auth pages only so the 3D style elsewhere
   is untouched. */
.dhp-auth-page .dhp-input,
.dhp-auth-page select.dhp-input,
.dhp-auth-page textarea.dhp-input {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dhp-input:focus {
  border-color: var(--dp-primary);
  box-shadow: 0 0 0 1px var(--dp-primary), 0 0 12px rgba(255, 255, 255, 0.05);
}

.dhp-toggle-pw {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dp-text-secondary);
  font-size: 0.95rem;
  z-index: 5;
  padding: 0;
}

/* Buttons */
.dhp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--dp-transition);
  border: none;
  width: 100%;
  padding: 14px 24px;
  font-size: 0.95rem;
}

.dhp-btn--primary {
  background: var(--dp-primary);
  color: var(--dp-on-primary, #ffffff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.dhp-btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.dhp-btn--primary:active {
  transform: translateY(1px);
}

.dhp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  margin: 16px 0 24px 0;
  color: var(--dp-text-secondary);
  text-align: left;
}

.dhp-checkbox-label input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--dp-primary);
}

.dhp-link-btn {
  color: var(--dp-primary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--dp-transition);
}

.dhp-link-btn:hover {
  filter: brightness(1.2);
  text-decoration: underline;
}

/* Social Buttons */
.dhp-social-login-wrapper {
  margin-top: 28px;
}

.dhp-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--dp-text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dhp-auth-divider::before,
.dhp-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--dp-glass-border);
}

.dhp-social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dhp-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--dp-glass-border);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--dp-surface);
  color: var(--dp-text);
  cursor: pointer;
  transition: var(--dp-transition);
}

.dhp-social-btn:hover {
  background: var(--dp-surface-alt);
  border-color: var(--dp-text-secondary);
}

/* Mobile bottom glass navigation */
@media (max-width: 767px) {
  .dhp-mobile-glass-nav {
    display: flex;
  }
  .dhp-auth-page {
    padding-bottom: 90px !important;
  }
}

/* ==========================================================================
   Same-to-Same Custom Redesign Elements
   ========================================================================== */

.dhp-auth-brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.dhp-brand-logo-container {
  display: flex;
  align-items: center;
}

.dhp-brand-top-nav {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.dhp-brand-top-nav a {
  color: var(--dp-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: var(--dp-transition);
}

.dhp-brand-top-nav a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

.dhp-auth-brand-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  margin-bottom: 30px;
  gap: 16px;
  position: relative;
  z-index: 10;
}

.dhp-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.dhp-footer-item i {
  font-size: 1.35rem;
  color: var(--dp-primary);
}

.dhp-footer-text h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.dhp-footer-text p {
  margin: 2px 0 0 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

@media (max-width: 1199px) {
  .dhp-auth-brand-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .dhp-footer-item {
    min-width: 140px;
  }
}

.dhp-auth-feature-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 10;
}

.dhp-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.dhp-feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dhp-feature-icon-wrap i {
  font-size: 1.15rem;
  color: var(--dp-primary);
}

.dhp-feature-text-wrap h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.dhp-feature-text-wrap p {
  margin: 4px 0 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Light brand panels (themes 2, 4, 5, 7, 8, 10): the default white feature text
   and sub-text are invisible, so switch them to dark and give the icon circle a
   visible tint. */
.dhp-theme-theme-2 .dhp-feature-text-wrap h3, .dhp-theme-theme-2 .dhp-auth-brand__sub,
.dhp-theme-theme-4 .dhp-feature-text-wrap h3, .dhp-theme-theme-4 .dhp-auth-brand__sub,
.dhp-theme-theme-5 .dhp-feature-text-wrap h3, .dhp-theme-theme-5 .dhp-auth-brand__sub,
.dhp-theme-theme-7 .dhp-feature-text-wrap h3, .dhp-theme-theme-7 .dhp-auth-brand__sub,
.dhp-theme-theme-8 .dhp-feature-text-wrap h3, .dhp-theme-theme-8 .dhp-auth-brand__sub,
.dhp-theme-theme-10 .dhp-feature-text-wrap h3, .dhp-theme-theme-10 .dhp-auth-brand__sub {
  color: #16281c;
}
.dhp-theme-theme-2 .dhp-feature-text-wrap p,
.dhp-theme-theme-4 .dhp-feature-text-wrap p,
.dhp-theme-theme-5 .dhp-feature-text-wrap p,
.dhp-theme-theme-7 .dhp-feature-text-wrap p,
.dhp-theme-theme-8 .dhp-feature-text-wrap p,
.dhp-theme-theme-10 .dhp-feature-text-wrap p {
  color: rgba(20, 40, 26, 0.62);
}
.dhp-theme-theme-2 .dhp-feature-icon-wrap, .dhp-theme-theme-4 .dhp-feature-icon-wrap,
.dhp-theme-theme-5 .dhp-feature-icon-wrap, .dhp-theme-theme-7 .dhp-feature-icon-wrap,
.dhp-theme-theme-8 .dhp-feature-icon-wrap, .dhp-theme-theme-10 .dhp-feature-icon-wrap {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.dhp-highlight {
  color: var(--dp-brand-highlight, var(--dp-primary));
}

/* Custom dropdown role selector */
.dhp-portal-select-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px !important;
}

/* Custom social button layout */
.dhp-social-btn-google {
  background: #ffffff !important;
  color: #1f2937 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dhp-social-btn-facebook {
  background: #1877f2 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(24, 119, 242, 0.2);
}

.dhp-social-btn-google:hover {
  background: #f9fafb !important;
}

.dhp-social-btn-facebook:hover {
  background: #166fe5 !important;
}

/* Helper flex utilities */
.dhp-flex {
  display: flex !important;
}
.dhp-justify-between {
  justify-content: space-between !important;
}
.dhp-items-center {
  align-items: center !important;
}

/* Inner Login Mode Switcher (Chaldal Style Tabs) */
.dhp-login-mode-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.dhp-login-mode-btn {
  flex: 1;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--dp-border) !important;
  border-radius: 12px !important;
  font-family: var(--dp-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dp-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--dp-transition);
}

.dhp-login-mode-btn:hover {
  border-color: var(--dp-primary) !important;
  color: var(--dp-text);
}

.dhp-login-mode-btn.active {
  background: var(--dp-primary) !important;
  color: #ffffff !important;
  border-color: var(--dp-primary) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.dhp-theme-theme-9 .dhp-login-mode-btn.active,
.dhp-theme-theme-2 .dhp-login-mode-btn.active,
.dhp-theme-theme-4 .dhp-login-mode-btn.active,
.dhp-theme-theme-5 .dhp-login-mode-btn.active,
.dhp-theme-theme-7 .dhp-login-mode-btn.active,
.dhp-theme-theme-8 .dhp-login-mode-btn.active,
.dhp-theme-theme-10 .dhp-login-mode-btn.active {
  color: var(--dp-text-inverse) !important;
}

/* Full Width Footer Bar styling */
.dhp-auth-page-footer {
  grid-column: span 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 24px 80px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--dp-border);
  width: 100%;
  position: relative;
  z-index: 10;
}

.dhp-theme-theme-2 .dhp-auth-page-footer,
.dhp-theme-theme-4 .dhp-auth-page-footer,
.dhp-theme-theme-5 .dhp-auth-page-footer,
.dhp-theme-theme-7 .dhp-auth-page-footer,
.dhp-theme-theme-8 .dhp-auth-page-footer,
.dhp-theme-theme-10 .dhp-auth-page-footer {
  background: rgba(255, 255, 255, 0.45);
}

.dhp-auth-page-footer .dhp-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dhp-auth-page-footer .dhp-footer-item i {
  font-size: 1.5rem;
  color: var(--dp-primary);
}

.dhp-auth-page-footer .dhp-footer-text h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 750;
  color: var(--dp-text);
  letter-spacing: 0.5px;
}

.dhp-auth-page-footer .dhp-footer-text p {
  margin: 2px 0 0 0;
  font-size: 0.75rem;
  color: var(--dp-text-secondary);
  opacity: 0.85;
  line-height: 1.2;
}

/* Hide footer on mobile screens to match screenshots */
@media (max-width: 991px) {
  .dhp-auth-page-footer {
    display: none !important;
  }
}

/* Select input options styling for clean aesthetics */
.dhp-input option {
  background-color: var(--dp-bg) !important;
  color: var(--dp-text) !important;
}

.dhp-theme-theme-2 .dhp-input option,
.dhp-theme-theme-4 .dhp-input option,
.dhp-theme-theme-5 .dhp-input option,
.dhp-theme-theme-7 .dhp-input option,
.dhp-theme-theme-8 .dhp-input option,
.dhp-theme-theme-10 .dhp-input option {
  background-color: #ffffff !important;
  color: var(--dp-text) !important;
}







/* ── B-13: utility classes replacing repeated inline styles ── */
.dhp-flex-between{display:flex;justify-content:space-between;align-items:center;}
.dhp-flex-center{display:flex;align-items:center;gap:6px;}
.dhp-mt-lg{margin-top:30px;}
.dhp-mt-md{margin-top:var(--dp-space-md,16px);}
.dhp-mb-md{margin-bottom:var(--dp-space-md,16px);}
.dhp-text-center{text-align:center;}
.dhp-small-muted{font-size:.82rem;color:var(--dp-text-secondary,#667);}
.dhp-link-strong{color:var(--dp-primary,#1f9d3c);font-weight:700;text-decoration:none;}
.dhp-checkbox-inline{font-size:.82rem;display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--dp-text,#333);}
.dhp-input-icon-abs{position:relative;}

/* ==========================================================================
   3D PREMIUM POLISH — gorgeous auth upgrade (applies to all portals & themes)
   Uses CSS vars so every login-style-XX theme colours it automatically.
   ========================================================================== */

/* ---- Elevated floating glass card with entrance motion ---- */
@keyframes dhpCardIn {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dhp-auth-card {
  border-radius: 26px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: dhpCardIn .55s cubic-bezier(.22,.9,.35,1.1) both;
}

/* ---- Sign In / Sign Up tabs → rounded pill track with filled active ---- */
.dhp-auth-tabs {
  background: var(--dp-surface-alt) !important;
  border: 1px solid var(--dp-border) !important;
  border-bottom: 1px solid var(--dp-border) !important;
  border-radius: 16px !important;
  padding: 5px !important;
  gap: 5px;
}
.dhp-auth-tab {
  border-radius: 12px !important;
  font-size: 1rem;
  padding: 11px 0;
}
.dhp-auth-tab.active {
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* ---- Panel title with a gradient accent bar ---- */
.dhp-panel-title { position: relative; padding-bottom: 10px; }
.dhp-panel-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 46px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--dp-primary), var(--dp-primary-dark, var(--dp-primary)));
}

/* ---- Inputs: soft hover + comfy feel ---- */
.dhp-auth-page .dhp-input:hover:not(:focus) { border-color: var(--dp-primary); }
.dhp-auth-page .dhp-input::placeholder { opacity: .75; }
.dhp-auth-page input[type="checkbox"] { accent-color: var(--dp-primary); }

/* ---- Primary buttons: glossy 3D press ---- */
.dhp-auth-page .dhp-btn--primary {
  position: relative;
  overflow: hidden;
  border-radius: 14px !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.dhp-auth-page .dhp-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0));
  border-radius: inherit;
  pointer-events: none;
}
.dhp-auth-page .dhp-btn--primary:hover { transform: translateY(-2px); filter: saturate(1.08); }
.dhp-auth-page .dhp-btn--primary:active { transform: translateY(1px) scale(.995); }

/* ---- Login-mode pills: soft depth ---- */
.dhp-login-mode-btn { transition: all .2s ease; }
.dhp-login-mode-btn.active { box-shadow: 0 8px 18px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.25) !important; }

/* ---- Feature list: solid theme-coloured 3D icon chips (reference style) ---- */
.dhp-feature-icon-wrap {
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-primary-dark, var(--dp-primary))) !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  transition: transform .2s ease;
}
.dhp-feature-icon-wrap i { color: #ffffff !important; }
.dhp-feature-item:hover .dhp-feature-icon-wrap { transform: translateY(-3px) scale(1.05); }

/* ---- Brand illustration: floating with depth shadow ---- */
@keyframes dhpFloatIll {
  0%   { transform: translateY(0) rotate(-.4deg); }
  100% { transform: translateY(-14px) rotate(.6deg); }
}
.dhp-brand-illustration-img {
  animation: dhpFloatIll 5.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.22));
}

/* ---- Decorative aurora orbs on the brand panel ---- */
.dhp-auth-brand::before,
.dhp-auth-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .30;
  pointer-events: none;
  z-index: 0;
  background: var(--dp-primary);
}
.dhp-auth-brand::before { width: 320px; height: 320px; top: -90px; left: -80px; animation: dhpFloatIll 9s ease-in-out infinite alternate; }
.dhp-auth-brand::after  { width: 260px; height: 260px; bottom: -70px; right: -60px; opacity: .18; animation: dhpFloatIll 11s ease-in-out infinite alternate-reverse; }

/* ---- OTP verification boxes: big friendly 3D squares ---- */
.dhp-otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 14px 0; }
.dhp-otp-input {
  width: 48px !important;
  height: 54px;
  padding: 0 !important;
  text-align: center;
  font-size: 1.35rem !important;
  font-weight: 800;
  border-radius: 12px !important;
  border: 1.5px solid var(--dp-glass-border);
  background: var(--dp-surface);
  color: var(--dp-text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
  transition: all .18s ease;
  outline: none;
}
.dhp-otp-input:focus {
  border-color: var(--dp-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06), 0 6px 14px rgba(0,0,0,.10);
  transform: translateY(-2px);
}

/* ---- Password visibility toggle ---- */
.dhp-toggle-pw { color: var(--dp-text-secondary); transition: color .15s ease; }
.dhp-toggle-pw:hover { color: var(--dp-primary); }

/* ---- Social buttons: gentle lift ---- */
.dhp-social-login a { transition: transform .16s ease, box-shadow .16s ease; }
.dhp-social-login a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.12); }

/* ---- Respect reduced-motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  .dhp-auth-card, .dhp-brand-illustration-img,
  .dhp-auth-brand::before, .dhp-auth-brand::after { animation: none !important; }
}

/* ============================================================
   Audit V2 — C-6: Login-mode panel visibility.
   The Password / OTP panels toggle only via the .active class;
   this rule was missing, so BOTH forms rendered stacked.
   ============================================================ */
.dhp-login-mode-panel {
  display: none;
}
.dhp-login-mode-panel.active {
  display: block;
  animation: dhpModeFade 0.25s ease;
}
@keyframes dhpModeFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Segmented-tab underline polish for the mode switcher */
.dhp-login-mode-switcher {
  position: relative;
  background: var(--dp-surface-alt, rgba(0,0,0,0.04)) !important;
  border-radius: 14px !important;
  padding: 5px !important;
  gap: 6px;
}
.dhp-login-mode-btn {
  border: 1px solid transparent !important;
  border-radius: 10px !important;
}
.dhp-login-mode-btn.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Audit V2 — H-5: File-uploader drop boxes (dealer / employee /
   seller KYC uploads). Class existed in markup with no styling.
   ============================================================ */
.dhp-file-uploader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 22px 16px;
  background: var(--dp-surface-alt, rgba(0,0,0,0.03));
  border: 2px dashed var(--dp-border);
  border-radius: 14px;
  cursor: pointer;
  transition: var(--dp-transition, all 0.2s ease);
}
.dhp-file-uploader-box:hover,
.dhp-file-uploader-box:focus-visible,
.dhp-file-uploader-box.dhp-dragover {
  border-color: var(--dp-primary);
  background: color-mix(in srgb, var(--dp-primary) 8%, transparent);
  transform: translateY(-2px);
}
.dhp-file-uploader-box.dhp-has-file {
  border-style: solid;
  border-color: var(--dp-primary);
}

/* ==========================================================================
   GORGEOUS LAYER v2 — floating product chips, card shine, headline glow
   ========================================================================== */

/* Floating glass product chips around the illustration (reference-style) */
.dhp-brand-illustration::before,
.dhp-brand-illustration::after {
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  pointer-events: none;
}
.dhp-brand-illustration::before {
  content: '🍎';
  top: 6%;
  left: 4%;
  animation: dhpFloatIll 6s ease-in-out infinite alternate;
}
.dhp-brand-illustration::after {
  content: '🚚';
  top: 18%;
  right: 5%;
  animation: dhpFloatIll 7.5s ease-in-out infinite alternate-reverse;
}
/* Dark panels: darker glass so the chips sit naturally */
.dhp-theme-theme-1 .dhp-brand-illustration::before, .dhp-theme-theme-1 .dhp-brand-illustration::after,
.dhp-theme-theme-3 .dhp-brand-illustration::before, .dhp-theme-theme-3 .dhp-brand-illustration::after,
.dhp-theme-theme-6 .dhp-brand-illustration::before, .dhp-theme-theme-6 .dhp-brand-illustration::after,
.dhp-theme-theme-9 .dhp-brand-illustration::before, .dhp-theme-theme-9 .dhp-brand-illustration::after {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Gentle shine sweep across the card on hover */
.dhp-auth-card { overflow: hidden; position: relative; }
.dhp-auth-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  transform: skewX(-18deg);
  transition: left .8s ease;
  pointer-events: none;
}
.dhp-auth-card:hover::after { left: 130%; }

/* Dark-theme headlines get a soft neon glow for depth */
.dhp-theme-theme-1 .dhp-auth-brand__headline,
.dhp-theme-theme-3 .dhp-auth-brand__headline,
.dhp-theme-theme-6 .dhp-auth-brand__headline,
.dhp-theme-theme-9 .dhp-auth-brand__headline {
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.14), 0 2px 4px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .dhp-brand-illustration::before, .dhp-brand-illustration::after { animation: none !important; }
  .dhp-auth-card::after { display: none; }
}
@media (max-width: 640px) {
  .dhp-brand-illustration::before, .dhp-brand-illustration::after { width: 46px; height: 46px; font-size: 1.25rem; }
}

/* Ghost buttons (Resend OTP / Change / secondary actions): the site-wide
   neumorphic shadow + inverse text bleed through on auth cards — give them a
   clean outlined look that follows each theme's palette. */
.dhp-auth-page .dhp-btn--ghost {
  background: transparent !important;
  border: 1.5px solid var(--dp-border) !important;
  color: var(--dp-text-secondary) !important;
  box-shadow: none !important;
  border-radius: 12px !important;
  transition: all .18s ease;
}
.dhp-auth-page .dhp-btn--ghost:hover:not(:disabled) {
  border-color: var(--dp-primary) !important;
  color: var(--dp-primary) !important;
}
.dhp-auth-page .dhp-btn--ghost:disabled { opacity: .55; cursor: not-allowed; }
