:root {
    --dark-blue1: #0b335a;
    --dark-blue2: #1f5e9d;
    --hover-blue1: #1761a0;
    --hover-blue2: #0b4a83;
  }

  /* Auth Modal Container */
  .auth-modal {
    max-width: 500px;
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    font-family: satoshi;
    background: #fff;
    box-shadow: 0 5px 18px rgba(11, 51, 90, 0.3);
    position: relative;
    overflow: hidden;
  }

  .auth-modal input:focus,
  .auth-modal textarea:focus,
  .auth-modal select:focus {
    outline: none;
    box-shadow: none;
    border: 1px solid #042b56;
  }

  /* Top gradient bar for auth modal */
  #modal-auth .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #042b56 0%, #0dc3f4 100%);
    border-top-left-radius: 12px;
    /* match auth modal radius */
    border-top-right-radius: 12px;
    z-index: 2;
  }

  /* Toggle link top-right */
  .auth-toggle {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 0.85rem;
    font-family: satoshi;
  }

  .step-indicator {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    color: #042b56;
  }

  #auth-toggle-link,
  .auth-toggle a {
    color: #042b56;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    /* required for transform */
    transition:
      transform 0.2s ease,
      text-decoration 0.2s ease;
  }

  #auth-toggle-link:hover,
  .auth-toggle a:hover {
    transform: translateY(-1px);
    /* moves UP */
    text-decoration: underline;
  }

  /* Auth Form */
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* OAuth Buttons */
  .oauth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
  }

  .google-btn,
  .linkedin-btn {
    background: #ffffff;
    color: #042b56;
    border: 1px solid #042b56;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    /* ✅ keeps both icon & text centered vertically */
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(11, 51, 90, 0.08);
    margin-bottom: -8px;
    /* keep small spacing between stacked buttons */
  }

  .google-btn:hover,
  .linkedin-btn:hover {
    transform: translateY(-1px);
  }

  /* ✅ Make icons perfectly vertically aligned */
  .google-btn img.google-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -1px;
    /* slight nudge for perfect centering */
  }

  .linkedin-btn i {
    color: #0077b5;
    font-size: 1.25rem;
    position: relative;
    top: -1px;
    /* aligns LinkedIn icon to same visual baseline as text */
  }

  /* Divider */
  .divider {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 7px;
  }

  /* Signup fields */
  .signup-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .signup-fields input {
    flex: 1;
    min-width: 48%;
  }

  /* Common inputs */
  .auth-form input {
    padding: 12px 14px;
    border: 1.6px solid #aabcd4;
    border-radius: 10px;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0 0 0;
    color: #042b56;
  }

  /* ── Email validation (matches register/login/forgot pages) ── */
  #email-format-error {
    font-size: 13px;
    color: #d93025;
    text-align: left;
    margin: 0 2px;
    display: none;
    align-items: center;
    gap: 5px;
  }
  #email-format-error.visible {
    display: flex;
    margin-bottom: 2px;
  }
  #email-format-error.visible::before {
    content: "⚠";
    font-size: 12px;
  }
  .auth-form input.input-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.12) !important;
  }

  /* Login extra section */
  .login-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
  }

  .forgot-link {
    color: #042b56;
    text-decoration: none;
  }

  /* Submit button */
  .primary-btn {
    background: linear-gradient(90deg, #0B335A, #1f5e9d);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(11, 51, 90, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 51, 90, 0.35);
    opacity: 0.92;
  }

  .primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  /* Terms */
  .terms {
    font-size: 0.75rem;
    text-align: center;
    color: #64748b;
    margin: 0;
  }

  /* Email + Verify button row */
  .vam-email-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 0;
  }

  .vam-email-row input {
    flex: 1;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
  }

  .vendor-verify-email-btn {
    width: 100px;
    height: 46px;
    padding: 0;
    background: linear-gradient(90deg, #0B335A, #1f5e9d);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    transition: none;
  }

  .vendor-verify-email-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  /* Responsive tweaks */
  @media (max-width: 560px) {
    .login-extra {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }

    .forgot-link {
      margin-left: 0;
    }
  }

/* ── vendor_auth_modal.html extracted styles ── */
.vam-oauth-link { text-decoration: none; display: inline-block; }

.vam-divider { position: relative; text-align: center; font-size: 0.85rem; color: #64748b; margin-top: 7px; }

.vam-divider-label { position: relative; background: #fff; padding: 0 12px; font-weight: 500; z-index: 1; }

.vam-divider-line { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #cfd6e2; z-index: 0; }

.vam-otp-row { display: flex; gap: 10px; align-items: center; margin-top: 2px; }

.vam-no-account { margin: 0; font-size: 14px; color: #042b56; }

.vam-inline-link { font-weight: 600; color: #042b56; text-decoration: none; }

.vam-forgot-wrap { margin-top: 15px; font-weight: 600; font-size: 14px; margin-bottom: -16px; }

.vam-terms-text { font-size: 13px; color: #64748b; line-height: 1.6; }

.vam-terms-link { color: #042b56; font-weight: 600; text-decoration: none; }

#agree-all-wrap {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:14px;
  cursor:pointer;
}
#agree_all {
  margin-top:3px;
  flex-shrink:0;
  width:15px;
  height:15px;
  accent-color:#042b56;
  cursor:pointer;
}
#csrf-holder {
  display:none;
}
#login-error {
  display:none;
  color:#dc2626;
  font-size:13px;
  font-weight:500;
  margin-bottom:6px;
  text-align:center;
}
#login-extra {
  text-align: center;
  margin-top: 12px;
  display: none;
}
#ob-pw-strength-wrap {
  display:none;
}
#ob-pw-weak-error {
  display:none;
  color:#dc2626;
  font-size:13px;
  margin-top:4px;
  font-weight:500;
}
#password-mismatch {
  display: none;
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}
#vendor-email-verified-badge {
  display:none;
  color:#042b56;
  font-size:13px;
  font-weight:600;
  margin-top:4px;
}
#vendor-otp-box {
  display: none;
  margin-top: 4px;
}
#vendor-otp-error {
  display:none;
  font-size:13px;
  color:#dc2626;
  margin-top:2px;
  margin-bottom:0;
  font-weight:500;
}
#vendor-otp-input {
  width: 115px;
  padding: 10px 14px;
  border: 1.6px solid #aabcd4;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #042b56;
  text-align: center;
}
#vendor-otp-strikes {
  display:none;
  font-size:12px;
  color:#64748b;
  margin-top:2px;
  margin-bottom:0;
}
#vendor-otp-timer {
  font-size: 13px;
  color: #042b56;
  margin-top: 4px;
  margin-bottom: 0;
}
#vendorVerifyOtpBtn {
  padding: 12px 18px;
  background: linear-gradient(90deg, #0B335A, #1f5e9d);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(11, 51, 90, 0.2);
}