/* ==========================================================================
   DollarHuge — Modern Authentication Design System (auth.css)
   ========================================================================== */

/* ---------- Root Variables for Auth ---------- */
:root {
  --dh-primary: #4CAF50;
  --dh-primary-hover: #43A047;
  --dh-primary-dark: #2E7D32;
  --dh-primary-light: #E8F5E9;
  --dh-primary-glow: rgba(76, 175, 80, 0.25);
  
  --dh-accent-gold: #FFA000;
  --dh-accent-gold-light: #FFF8E1;

  --dh-radius-sm: 8px;
  --dh-radius-md: 12px;
  --dh-radius-lg: 18px;
  --dh-radius-full: 9999px;

  --dh-trans: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Auth Frame & Layout Tuning ---------- */
.auth-frame {
  margin-top: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .auth-frame {
    margin-top: 8px;
    margin-bottom: 32px;
  }
}

/* ---------- Modern Auth Card ---------- */
.dh-auth-card {
  border-radius: var(--dh-radius-lg) !important;
  transition: var(--dh-trans);
  position: relative;
  overflow: hidden;
  padding: 36px 32px !important;
}

@media (max-width: 576px) {
  .dh-auth-card {
    padding: 24px 20px !important;
    border-radius: var(--dh-radius-md) !important;
  }
}

/* Light Theme Card */
.theme--light .dh-auth-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 20px 40px -15px rgba(76, 175, 80, 0.05) !important;
}

/* Dark Theme Card */
.theme--dark .dh-auth-card {
  background: #242938 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 18px 45px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

/* ---------- Card Header & Badge Pill ---------- */
.dh-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.dh-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--dh-radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.theme--light .dh-auth-badge {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.22);
}

.theme--dark .dh-auth-badge {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.dh-auth-badge.badge-bonus {
  background: rgba(255, 160, 0, 0.14) !important;
  color: #e65100 !important;
  border: 1px solid rgba(255, 160, 0, 0.28) !important;
}

.theme--dark .dh-auth-badge.badge-bonus {
  background: rgba(255, 160, 0, 0.2) !important;
  color: #ffb74d !important;
  border: 1px solid rgba(255, 160, 0, 0.35) !important;
}

.dh-auth-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.4px;
}

.theme--light .dh-auth-title {
  color: #1e293b;
}

.theme--dark .dh-auth-title {
  color: #f8fafc;
}

.dh-auth-subtitle {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.theme--light .dh-auth-subtitle {
  color: #64748b;
}

.theme--dark .dh-auth-subtitle {
  color: #94a3b8;
}

/* ---------- Social Auth Row ---------- */
.dh-social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.dh-social-btn-wrap {
  position: relative;
  flex: 1 1 0;
}

@media (max-width: 480px) {
  .dh-social-row {
    flex-direction: column;
    gap: 10px;
  }
}

.dh-social-btn {
  width: 100% !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  border-radius: var(--dh-radius-md) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: var(--dh-trans) !important;
  padding: 0 16px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.dh-social-btn:hover {
  transform: translateY(-1.5px);
}

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

/* Google Button */
.theme--light .dh-btn-google {
  background: #ffffff !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}
.theme--light .dh-btn-google:hover {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.theme--dark .dh-btn-google {
  background: #2e3446 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.theme--dark .dh-btn-google:hover {
  background: #363d52 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

/* Apple Button */
.theme--light .dh-btn-apple {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
}
.theme--light .dh-btn-apple:hover {
  background: #1e293b !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.theme--dark .dh-btn-apple {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #ffffff !important;
}
.theme--dark .dh-btn-apple:hover {
  background: #f1f5f9 !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25) !important;
}

/* Google GIS Overlay */
.dh-g-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.0001;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}
.dh-g-overlay iframe {
  transform: scale(1.4);
  transform-origin: 0 0;
  cursor: pointer !important;
}

/* ---------- Separator Divider ---------- */
.dh-separator {
  position: relative;
  text-align: center;
  margin: 22px 0 20px 0;
}

.dh-separator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.theme--light .dh-separator::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.theme--dark .dh-separator::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.dh-separator span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.theme--light .dh-separator span {
  background: #ffffff;
  color: #94a3b8;
}

.theme--dark .dh-separator span {
  background: #242938;
  color: #94a3b8;
}

/* ---------- Modern Input Groups ---------- */
.dh-input-field {
  position: relative;
  margin-bottom: 18px;
}

.dh-input-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.theme--light .dh-input-label {
  color: #334155;
}

.theme--dark .dh-input-label {
  color: #cbd5e1;
}

.dh-input-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: var(--dh-radius-md);
  transition: var(--dh-trans);
}

.theme--light .dh-input-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

.theme--dark .dh-input-box {
  background: #1c212e;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.dh-input-box:focus-within {
  border-color: var(--dh-primary) !important;
  box-shadow: 0 0 0 3.5px var(--dh-primary-glow) !important;
}

.theme--light .dh-input-box:hover:not(:focus-within) {
  border-color: #cbd5e1;
}

.theme--dark .dh-input-box:hover:not(:focus-within) {
  border-color: rgba(255, 255, 255, 0.18);
}

.dh-input-icon-left {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  color: #94a3b8;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s ease;
}

.dh-input-box:focus-within .dh-input-icon-left {
  color: var(--dh-primary);
}

.dh-input {
  width: 100% !important;
  height: 46px !important;
  line-height: 46px !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 14px !important;
  font-family: inherit !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 12px 0 0 !important;
}

.dh-input-box.no-left-icon .dh-input {
  padding-left: 14px !important;
}

.theme--light .dh-input {
  color: #0f172a !important;
}

.theme--dark .dh-input {
  color: #f8fafc !important;
}

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

.theme--dark .dh-input::placeholder {
  color: #64748b;
}

/* Password Toggle Suffix */
.dh-password-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 46px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 0;
  border-radius: 0 var(--dh-radius-md) var(--dh-radius-md) 0;
}

.dh-password-toggle:hover {
  color: var(--dh-primary);
}

.dh-password-toggle i {
  font-size: 20px;
}

/* ---------- Password Strength Meter ---------- */
.dh-strength-meter {
  margin-top: 8px;
}

.dh-strength-track {
  display: flex;
  gap: 4px;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.dh-strength-bar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.theme--light .dh-strength-bar {
  background: #e2e8f0;
}

.theme--dark .dh-strength-bar {
  background: #334155;
}

.dh-strength-bar.bar-weak {
  background: #ef4444 !important;
}

.dh-strength-bar.bar-fair {
  background: #f59e0b !important;
}

.dh-strength-bar.bar-good {
  background: #3b82f6 !important;
}

.dh-strength-bar.bar-strong {
  background: #10b981 !important;
}

.dh-strength-text {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 5px;
}

.theme--light .dh-strength-text {
  color: #64748b;
}

.theme--dark .dh-strength-text {
  color: #94a3b8;
}

.dh-strength-label {
  font-weight: 600;
}

/* ---------- Checkbox & Helper Row ---------- */
.dh-form-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 13px;
}

.dh-forgot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--dh-primary) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dh-forgot-link:hover {
  text-decoration: underline;
  color: var(--dh-primary-hover) !important;
}

.dh-checkbox-label {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 6px;
  margin-bottom: 18px;
}

.dh-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: var(--dh-trans);
  flex-shrink: 0;
}

.theme--dark .dh-checkbox-label input[type="checkbox"] {
  border-color: rgba(255, 255, 255, 0.25);
}

.dh-checkbox-label input[type="checkbox"]:checked {
  background: var(--dh-primary);
  border-color: var(--dh-primary);
}

.dh-checkbox-label input[type="checkbox"]:checked::before {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.dh-checkbox-label [type="checkbox"] + span:not(.lever),
.dh-checkbox-label span {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  height: auto !important;
  min-height: 20px;
  padding-left: 28px !important;
  display: inline-block;
  font-weight: 500;
}

.theme--light .dh-checkbox-label [type="checkbox"] + span:not(.lever),
.theme--light .dh-checkbox-label span {
  color: #475569;
}

.theme--dark .dh-checkbox-label [type="checkbox"] + span:not(.lever),
.theme--dark .dh-checkbox-label span {
  color: #94a3b8;
}

.dh-checkbox-label a {
  color: var(--dh-primary) !important;
  font-weight: 600;
  text-decoration: none;
}

.dh-checkbox-label a:hover {
  text-decoration: underline;
}

/* ---------- Alert & Notification Banner (Replaced by Toasts) ---------- */
.dh-alert {
  display: none !important;
}

.dh-alert i {
  font-size: 18px;
  flex-shrink: 0;
}

/* Alert Variations */
.dh-alert.alert-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

.theme--dark .dh-alert.alert-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.dh-alert.alert-success {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

.theme--dark .dh-alert.alert-success {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34d399 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.dh-alert.alert-info {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #2563eb !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
}

.theme--dark .dh-alert.alert-info {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

/* ---------- Primary CTA Button ---------- */
.dh-btn-submit {
  width: 100% !important;
  height: 48px !important;
  border-radius: var(--dh-radius-md) !important;
  background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: var(--dh-trans) !important;
}

.dh-btn-submit:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45) !important;
  background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%) !important;
}

.dh-btn-submit:disabled {
  opacity: 0.75 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.dh-btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: dhSpin 0.75s linear infinite;
}

@keyframes dhSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Card Switch Link (Bottom of card) ---------- */
.dh-auth-switch {
  text-align: center;
  margin-top: 22px;
  font-size: 13.5px;
}

.theme--light .dh-auth-switch {
  color: #64748b;
}

.theme--dark .dh-auth-switch {
  color: #94a3b8;
}

.dh-auth-switch a {
  color: var(--dh-primary) !important;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.dh-auth-switch a:hover {
  text-decoration: underline;
}

/* ---------- Right-Column Showcase & Benefits ---------- */
.dh-showcase-wrap {
  padding: 16px 20px 20px 32px;
}

@media (max-width: 991px) {
  .dh-showcase-wrap {
    display: none;
  }
}

.dh-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--dh-radius-full);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}

.theme--light .dh-showcase-badge {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.theme--dark .dh-showcase-badge {
  background: rgba(76, 175, 80, 0.18);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.dh-showcase-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.5px;
}

.theme--light .dh-showcase-title {
  color: #0f172a;
}

.theme--dark .dh-showcase-title {
  color: #f8fafc;
}

.dh-showcase-desc {
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.theme--light .dh-showcase-desc {
  color: #475569;
}

.theme--dark .dh-showcase-desc {
  color: #94a3b8;
}

/* Feature Benefit Chips */
.dh-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.dh-benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--dh-radius-md);
  transition: var(--dh-trans);
}

.theme--light .dh-benefit-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.theme--dark .dh-benefit-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dh-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.dh-benefit-icon.icon-green {
  background: rgba(76, 175, 80, 0.15);
  color: #4CAF50;
}

.dh-benefit-icon.icon-gold {
  background: rgba(255, 160, 0, 0.15);
  color: #FFA000;
}

.dh-benefit-icon.icon-blue {
  background: rgba(33, 150, 243, 0.15);
  color: #2196F3;
}

.dh-benefit-text h5 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 0 0 2px 0 !important;
}

.theme--light .dh-benefit-text h5 {
  color: #1e293b;
}

.theme--dark .dh-benefit-text h5 {
  color: #f1f5f9;
}

.dh-benefit-text p {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.theme--light .dh-benefit-text p {
  color: #64748b;
}

.theme--dark .dh-benefit-text p {
  color: #94a3b8;
}

/* 3D Fintech Art Wrapper */
.dh-showcase-art {
  text-align: center;
  margin-top: 10px;
}

.dh-showcase-art img {
  max-width: 82%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
  animation: dhFloat 4s ease-in-out infinite;
}

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

/* ---------- 3-Step Recovery Guide (Forgot Password) ---------- */
.dh-recovery-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.dh-recovery-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--dh-radius-md);
}

.theme--light .dh-recovery-step {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.theme--dark .dh-recovery-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dh-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dh-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dh-step-content h6 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 0 0 2px 0 !important;
}

.theme--light .dh-step-content h6 {
  color: #1e293b;
}

.theme--dark .dh-step-content h6 {
  color: #f1f5f9;
}

.dh-step-content p {
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
}

.theme--light .dh-step-content p {
  color: #64748b;
}

.theme--dark .dh-step-content p {
  color: #94a3b8;
}
