
* {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
  }
  
  /* Base root font-size scales up on larger viewports so every rem-based
     value in the card (via clamp()) grows proportionally on big screens
     instead of staying pinned at mobile/tablet size. */
  html {
    font-size: 16px;
  }
  
  @media (min-width: 1440px) {
    html { font-size: 17px; }
  }
  
  @media (min-width: 1920px) {
    html { font-size: 18.5px; }
  }
  
  @media (min-width: 2560px) {
    html { font-size: 21px; }
  }
  
  .secure-crm-login-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #0a2540;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* =====================================================================
     BACKGROUND DECORATION
     ===================================================================== */
  
  .secure-crm-login-page-background-decoration-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
  }
  
  .secure-crm-login-page-background-ribbon-svg {
    position: absolute;
    top: 0;
    right: -5%;
    width: 100%;
    height: 100%;
    min-width: 900px;
  }
  
  /* Top hairline like Stripe's header divider */
  .secure-crm-login-page-main-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e3e8ee;
    z-index: 3;
  }
  
  /* =====================================================================
     MAIN CONTAINER / LAYOUT
     ===================================================================== */
  
  .secure-crm-login-page-main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 4rem) clamp(16px, 5vw, 5rem);
  }
  
  .secure-crm-login-page-card-outer-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* =====================================================================
     CARD
     ===================================================================== */
  
  .secure-crm-login-page-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 26.5rem;
    border-radius: 8px;
    box-shadow:
      0 15px 35px rgba(60, 66, 87, 0.12),
      0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: secureCrmLoginPageCardFadeInAnimation 0.45s ease-out;
  }
  
  @keyframes secureCrmLoginPageCardFadeInAnimation {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* =====================================================================
     LOGO SECTION
     ===================================================================== */
  
  .secure-crm-login-page-logo-section {
    display: flex;
    justify-content: center;
    padding: clamp(28px, 5vw, 2.75rem) clamp(24px, 6vw, 2.5rem) 4px;
  }
  
  .secure-crm-login-page-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #0a2540;
    transition: opacity 0.15s ease;
    max-width: 100%;
  }
  
  .secure-crm-login-page-logo-link:hover {
    opacity: 0.82;
  }
  
  .secure-crm-login-page-logo-link:focus-visible {
    outline: 2px solid rgb(0, 33, 64);
    outline-offset: 4px;
    border-radius: 4px;
  }
  
  /* Flexible image logo: scales fluidly with viewport/card size while
     respecting the image's own aspect ratio. Swap the "src" in the HTML
     to point at your real logo file — this sizing will apply automatically. */
  .secure-crm-login-page-logo-image {
    height: clamp(28px, 6vw, 2.75rem);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
  }
  
  .secure-crm-login-page-logo-fallback-text {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  
  .secure-crm-login-page-logo-icon {
    width: clamp(26px, 5vw, 1.9rem);
    height: clamp(26px, 5vw, 1.9rem);
    flex-shrink: 0;
  }
  
  .secure-crm-login-page-logo-wordmark {
    font-size: clamp(17px, 3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0a2540;
    white-space: nowrap;
  }
  
  .secure-crm-login-page-logo-wordmark-accent {
    color: rgb(0, 33, 64);
  }
  
  /* =====================================================================
     FORM CONTENT WRAPPER
     ===================================================================== */
  
  .secure-crm-login-page-form-content-wrapper {
    padding: 12px clamp(24px, 6vw, 2.5rem) clamp(28px, 5vw, 2.25rem);
    width: 100%;
  }
  
  .secure-crm-login-page-heading-text {
    font-size: clamp(20px, 3.4vw, 1.65rem);
    font-weight: 600;
    line-height: 1.3;
    color: #0a2540;
    margin: 4px 0 clamp(20px, 4vw, 1.75rem);
    letter-spacing: -0.015em;
    text-align: left;
  }
  
  /* =====================================================================
     FORM FIELDS
     ===================================================================== */
  
  .secure-crm-login-page-signin-form {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .secure-crm-login-page-form-field-group {
    margin-bottom: 16px;
    width: 100%;
  }
  
  .secure-crm-login-page-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #425466;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
  }
  
  .secure-crm-login-page-password-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .secure-crm-login-page-forgot-password-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgb(0, 33, 64);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
    white-space: nowrap;
  }
  
  .secure-crm-login-page-forgot-password-link:hover {
    color: rgb(0, 20, 40);
    text-decoration: underline;
  }
  
  .secure-crm-login-page-forgot-password-link:focus-visible {
    outline: 2px solid rgb(0, 33, 64);
    outline-offset: 3px;
    border-radius: 3px;
  }
  
  .secure-crm-login-page-text-input-field {
    width: 100%;
    font-family: inherit;
    font-size: 0.94rem;
    line-height: 1.4;
    color: #0a2540;
    background-color: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    padding: 0.66rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  
  .secure-crm-login-page-text-input-field::placeholder {
    color: #a3acb9;
  }
  
  .secure-crm-login-page-text-input-field:hover {
    border-color: #c1c9d2;
  }
  
  .secure-crm-login-page-text-input-field:focus {
    outline: none;
    border-color: rgb(0, 33, 64);
    box-shadow: 0 0 0 4px rgba(0, 33, 64, 0.14);
  }
  
  .secure-crm-login-page-text-input-field.secure-crm-login-page-input-has-error {
    border-color: #df1b41;
  }
  
  .secure-crm-login-page-text-input-field.secure-crm-login-page-input-has-error:focus {
    box-shadow: 0 0 0 4px rgba(223, 27, 65, 0.12);
  }
  
  .secure-crm-login-page-password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .secure-crm-login-page-password-input-field {
    padding-right: 42px;
  }
  
  .secure-crm-login-page-password-toggle-visibility-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7c93;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
  }
  
  .secure-crm-login-page-password-toggle-visibility-btn:hover {
    color: #0a2540;
    background-color: #f7fafc;
  }
  
  .secure-crm-login-page-password-toggle-visibility-btn:focus-visible {
    outline: 2px solid rgb(0, 33, 64);
    outline-offset: 2px;
  }
  
  .secure-crm-login-page-password-toggle-visibility-btn svg {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .secure-crm-login-page-field-error-message {
    display: none;
    font-size: 0.78rem;
    color: #df1b41;
    margin-top: 6px;
    line-height: 1.4;
  }
  
  .secure-crm-login-page-field-error-message.secure-crm-login-page-error-visible {
    display: block;
  }
  
  /* =====================================================================
     REMEMBER ME
     ===================================================================== */
  
  .secure-crm-login-page-remember-me-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 2px 0 20px;
  }
  
  .secure-crm-login-page-checkbox-input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: rgb(0, 33, 64);
    cursor: pointer;
    flex-shrink: 0;
  }
  
  .secure-crm-login-page-checkbox-input:focus-visible {
    outline: 2px solid rgb(0, 33, 64);
    outline-offset: 2px;
  }
  
  .secure-crm-login-page-checkbox-label {
    font-size: 0.85rem;
    color: #425466;
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
  }
  
  /* =====================================================================
     SUBMIT BUTTON
     ===================================================================== */
  
  .secure-crm-login-page-primary-submit-btn {
    width: 100%;
    background-color: rgb(0, 33, 64);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 0.7rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
    box-shadow: 0 1px 2px rgba(60, 66, 87, 0.2);
    position: relative;
  }
  
  .secure-crm-login-page-primary-submit-btn:hover {
    background-color: rgb(0, 26, 51);
  }
  
  .secure-crm-login-page-primary-submit-btn:active {
    background-color: rgb(0, 20, 40);
    transform: translateY(1px);
  }
  
  .secure-crm-login-page-primary-submit-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 33, 64, 0.28);
  }
  
  .secure-crm-login-page-primary-submit-btn:disabled {
    background-color: rgb(102, 120, 140);
    cursor: not-allowed;
  }
  
  .secure-crm-login-page-btn-loading-spinner {
    display: none;
    width: 0.94rem;
    height: 0.94rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: secureCrmLoginPageSpinAnimation 0.6s linear infinite;
  }
  
  .secure-crm-login-page-primary-submit-btn.secure-crm-login-page-btn-is-loading .secure-crm-login-page-btn-loading-spinner {
    display: inline-block;
  }
  
  .secure-crm-login-page-primary-submit-btn.secure-crm-login-page-btn-is-loading .secure-crm-login-page-btn-text-label {
    opacity: 0.85;
  }
  
  @keyframes secureCrmLoginPageSpinAnimation {
    to { transform: rotate(360deg); }
  }
  
  /* =====================================================================
     FORM ALERT (general error banner)
     ===================================================================== */
  
  .secure-crm-login-page-form-alert-message {
    display: none;
    background-color: #fdf0f0;
    border: 1px solid #f5c6cb;
    color: #df1b41;
    font-size: 0.82rem;
    border-radius: 6px;
    padding: 10px 12px;
    margin-top: 14px;
    line-height: 1.45;
  }
  
  .secure-crm-login-page-form-alert-message.secure-crm-login-page-alert-visible {
    display: block;
    animation: secureCrmLoginPageAlertFadeInAnimation 0.2s ease-out;
  }
  
  @keyframes secureCrmLoginPageAlertFadeInAnimation {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* =====================================================================
     DIVIDER
     ===================================================================== */
  
  .secure-crm-login-page-divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
  }
  
  .secure-crm-login-page-divider-line {
    flex: 1;
    height: 1px;
    background-color: #e3e8ee;
  }
  
  .secure-crm-login-page-divider-text {
    font-size: 0.78rem;
    color: #8792a2;
    white-space: nowrap;
  }
  
  /* =====================================================================
     ALTERNATE SIGN-IN OPTIONS
     ===================================================================== */
  
  .secure-crm-login-page-alt-signin-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .secure-crm-login-page-alt-signin-option-btn {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    padding: 0.62rem 0.875rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #425466;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  }
  
  .secure-crm-login-page-alt-signin-option-btn:hover {
    border-color: #c1c9d2;
    background-color: #fafbfc;
  }
  
  .secure-crm-login-page-alt-signin-option-btn:active {
    background-color: #f4f5f7;
  }
  
  .secure-crm-login-page-alt-signin-option-btn:focus-visible {
    outline: none;
    border-color: rgb(0, 33, 64);
    box-shadow: 0 0 0 4px rgba(0, 33, 64, 0.14);
  }
  
  .secure-crm-login-page-alt-signin-icon {
    width: 1.06rem;
    height: 1.06rem;
    flex-shrink: 0;
  }
  
  .secure-crm-login-page-alt-signin-label-text {
    line-height: 1;
  }
  
  /* =====================================================================
     FOOTER
     ===================================================================== */
  
  .secure-crm-login-page-footer-section {
    background-color: #f6f9fc;
    border-top: 1px solid #e3e8ee;
    padding: 1rem clamp(24px, 6vw, 2.5rem);
    text-align: center;
  }
  
  .secure-crm-login-page-footer-text {
    font-size: 0.85rem;
    color: #425466;
  }
  
  .secure-crm-login-page-create-account-link {
    color: rgb(0, 33, 64);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
  }
  
  .secure-crm-login-page-create-account-link:hover {
    color: rgb(0, 20, 40);
    text-decoration: underline;
  }
  
  .secure-crm-login-page-create-account-link:focus-visible {
    outline: 2px solid rgb(0, 33, 64);
    outline-offset: 3px;
    border-radius: 3px;
  }
  
  /* =====================================================================
     TRUST FOOTNOTE
     ===================================================================== */
  
  .secure-crm-login-page-trust-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.78rem;
    color: #fff;
    text-align: center;
    padding: 0 16px;
  }
  
  .secure-crm-login-page-trust-lock-icon {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
  }
  
  /* =====================================================================
     RESPONSIVE BREAKPOINTS
     ===================================================================== */
  
  /* Large desktop / wide screens — card grows and the root font-size
     media queries above (html { font-size: ... }) make every rem-based
     value (headings, labels, inputs, buttons, icons) grow along with it. */
  @media (min-width: 1440px) {
    .secure-crm-login-page-card {
      max-width: 29rem;
    }
    .secure-crm-login-page-background-ribbon-svg {
      right: 0%;
    }
  }
  
  /* Extra-large / high-res desktop monitors */
  @media (min-width: 1920px) {
    .secure-crm-login-page-card {
      max-width: 32rem;
    }
  }
  
  /* Ultra-wide / 4K monitors */
  @media (min-width: 2560px) {
    .secure-crm-login-page-card {
      max-width: 36rem;
    }
    .secure-crm-login-page-trust-footnote {
      margin-top: 28px;
    }
  }
  
  /* Tablets (portrait & landscape) */
  @media (max-width: 991px) {
    .secure-crm-login-page-card {
      max-width: 400px;
    }
    .secure-crm-login-page-background-ribbon-svg {
      opacity: 0.85;
    }
  }
  
  /* Small tablets / large phones */
  @media (max-width: 767px) {
    .secure-crm-login-page-main-container {
      padding: 20px 16px;
      min-height: 100vh;
    }
    .secure-crm-login-page-card {
      max-width: 100%;
      box-shadow:
        0 10px 25px rgba(60, 66, 87, 0.10),
        0 3px 10px rgba(0, 0, 0, 0.06);
    }
    .secure-crm-login-page-background-ribbon-svg {
      min-width: 700px;
      opacity: 0.55;
    }
    .secure-crm-login-page-trust-footnote {
      margin-top: 16px;
    }
  }
  
  /* Mobile phones */
  @media (max-width: 480px) {
    .secure-crm-login-page-main-container {
      padding: 12px;
    }
    .secure-crm-login-page-logo-section {
      padding: 24px 20px 2px;
    }
    .secure-crm-login-page-form-content-wrapper {
      padding: 10px 20px 24px;
    }
    .secure-crm-login-page-footer-section {
      padding: 14px 20px;
    }
    .secure-crm-login-page-heading-text {
      margin-bottom: 20px;
    }
    .secure-crm-login-page-password-label-row {
      flex-direction: row;
    }
    .secure-crm-login-page-background-ribbon-svg {
      min-width: 600px;
      opacity: 0.4;
    }
    .secure-crm-login-page-trust-footnote {
      font-size: 11.5px;
    }
  }
  
  /* Very small phones */
  @media (max-width: 360px) {
    .secure-crm-login-page-heading-text {
      font-size: 19px;
    }
    .secure-crm-login-page-text-input-field {
      font-size: 14px;
      padding: 9px 10px;
    }
    .secure-crm-login-page-primary-submit-btn {
      font-size: 14px;
    }
  }
  
  /* Landscape phones with limited height */
  @media (max-height: 600px) and (orientation: landscape) {
    .secure-crm-login-page-main-container {
      align-items: flex-start;
      padding-top: 24px;
      padding-bottom: 24px;
    }
    .secure-crm-login-page-trust-footnote {
      display: none;
    }
  }
  
  /* Reduced motion preference */
  @media (prefers-reduced-motion: reduce) {
    .secure-crm-login-page-card {
      animation: none;
    }
    .secure-crm-login-page-btn-loading-spinner {
      animation-duration: 1.2s;
    }
    * {
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }
  
  /* High-DPI / print safety fallback */
  @media print {
    .secure-crm-login-page-background-decoration-wrapper {
      display: none;
    }
  }


  .secure-crm-login-image{
    height: 70px;
    width: auto;
  }


  /* =====================================================================
   ADDITIONS — append these to the end of auth.css
   Needed by confirm-password, forgot-password, verify-email, register
   ===================================================================== */

   .secure-crm-login-page-helper-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background-color: #eef4fb;
    border: 1px solid #cfe0f3;
    border-radius: 6px;
    color: #1a4971;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 12px 14px;
    margin: 4px 0 clamp(20px, 4vw, 1.5rem);
  }
  
  .secure-crm-login-page-helper-text-icon {
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 1px;
    color: #2f6fad;
  }
.secure-crm-login-page-dual-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.secure-crm-login-page-dual-action-row form:first-child {
  flex: 1;
}

.secure-crm-login-page-dual-action-row .secure-crm-login-page-primary-submit-btn {
  width: auto;
  padding: 0.62rem 1.25rem;
}

.secure-crm-login-page-plain-btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.secure-crm-login-page-already-registered-row {
  text-align: center;
  margin-top: 16px;
}

.secure-crm-login-page-form-alert-message.secure-crm-login-page-alert-success {
  background-color: #eefaf1;
  border-color: #b7e4c7;
  color: #1a7f4b;
  margin-top: 0;
  margin-bottom: 16px;
}