:root {
  --sp-primary-color: #0f0f0f;
  --sp-btn-color: #111111;
}

/* Hide default WC login/register form */
.woocommerce form.login,
.woocommerce form.register {
  display: none !important;
}

#customer_login {
    display: none;
}
/* Static SlackPass inside My Account */
.woocommerce-account #slackpass-overlay {
  position: static;
  background: transparent;
  /*display: block !important;*/
}

.woocommerce-account .nm-page-load-overlay { display:none; }


.woocommerce-account #sp-close{
      display: none;
  }

.grecaptcha-badge {
  visibility: hidden;
}

/* =========================
   TRUECALLER PRIMARY BUTTON
   ========================= */

/* =========================
   TRUECALLER (MINIMAL PRO)
   ========================= */

.sp-truecaller-btn {
  position: relative;
  width: 100%;
  height: 56px; /* SAME as other buttons */
  background: white;
  border: 1px solid #dbe2f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: black;
  transition: background .2s ease, border .2s ease;
}

.sp-truecaller-btn:hover {
  /*background: #2D68C4;*/
  border-color: #c9d6ff;
}

/* ICON */
.tc-icon svg {
  width: 62px;
  height: 32px;
  display: block;
}

/* TEXT */
.tc-text {
    font-size: 13px;
  white-space: nowrap;
}

/* RECOMMENDED BADGE (STUCK INSIDE) */
.tc-badge {
  position: absolute;
  top: -12px;
  right: 12px;
  background: #1c7cff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: .2px;
}

/* LOADER */
.tc-loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(28,124,255,0.25);
  border-top-color: #1c7cff;
  border-radius: 50%;
  animation: tc-spin .8s linear infinite;
  display: none;
}

/* LOADING STATE */
.sp-truecaller-btn.loading {
  pointer-events: none;
  color: transparent;
}

.sp-truecaller-btn.loading .tc-icon,
.sp-truecaller-btn.loading .tc-text {
  opacity: 0;
}

.sp-truecaller-btn.loading .tc-loader {
  display: block;
}

@keyframes tc-spin {
  to { transform: rotate(360deg); }
}





/* Text */
.tc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.tc-title {
  font-size: 15px;
  font-weight: 600;
}

.tc-sub {
  font-size: 12px;
  opacity: 0.85;
}


/* =========================
   PASSWORD STRENGTH METER
   ========================= */

.sp-password-meter {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.sp-password-meter-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* States */
.sp-pass-weak {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.sp-pass-fair {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.sp-pass-good {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.sp-pass-strong {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

#sp-password-strength-text {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}


.sp-sso-password-meter {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.sp-sso-password-meter-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* States */
.sp-sso-pass-weak {
  background: linear-gradient(90deg, #ef4444, #f87171);
}
.sp-sso-pass-fair {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.sp-sso-pass-good {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.sp-sso-pass-strong {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

#sp-sso-password-strength-text {
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}



.sp-success-card {
  text-align: center;
  padding: 40px 20px;
  animation: popIn 0.5s ease;
}

.sp-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

.sp-error-box.shake {
  animation: shake 0.35s;
}



.sp-password-hint {
  font-size: 12px;
  margin-bottom: 12px;
  color: #666;
}



.sp-error-box {
  background: rgba(255, 0, 0, 0.08);   /* soft red */
  color: #b00020;                     /* readable red */
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0 14px 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  padding-top: 10px;
}


.sp-phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.sp-country-input {
  width: 80px;
  flex-shrink: 0;
}


.sp-mobile-input {
  flex: 1;
  width: 100%;
}


#slackpass-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Inter, sans-serif;
}

#slackpass-modal {
  width: 90%;
  max-width: 1100px;
  height: 500px;
  background: #fff;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

/* LEFT */
.sp-left {
  width: 60%;
  background: var(--sp-primary-color);
  color: #fff;
  padding: 60px;
}

.sp-left h1 {
  letter-spacing: 6px;
  font-size: 32px;
  color: #fff;
}

.sp-left .tagline {
  margin: 20px 30px 40px 0;
  font-size: 18px;
}

.sp-features div {
  border: 1px solid #333;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

/* RIGHT */
.sp-right {
  width: 40%;
  padding: 24px;
  
}

.sp-right h2 {
    margin-top: 20px;
  margin-bottom: 20px;
  color: #111;
  font-size: 20px;
}

.sp-right input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 15px;
}

.checkbox {
  font-size: 14px;
  display: block;
  margin-bottom: 20px;
}

.sp-right button {
  width: 100%;
  padding: 14px;
  background: var(--sp-btn-color);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  height: 46px;
}

.terms {
  font-size: 12px;
  margin-top: 15px;
  color: #777;
}

/* =========================
   OTP INPUTS (RESPONSIVE)
   ========================= */

.otp-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-box input {
  width: clamp(42px, 12vw, 56px);
  height: clamp(42px, 12vw, 56px);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid #d1d5db;
  outline: none;
  transition: all 0.2s ease;
}

.otp-box input:focus {
  border-color: var(--sp-btn-color);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}


/* =========================
   RESEND OTP BUTTON
   ========================= */

.resend {
  font-size: 14px;
  margin: 14px auto 24px;
  cursor: pointer;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  width: fit-content;
  border: 1px dashed #d1d5db;
  color: #374151;
  transition: all 0.2s ease;
}

.resend:hover {
  background: #f3f4f6;
}

.resend.disabled {
  opacity: 0.6;
  pointer-events: none;
}


.terms {
    display: none;
  }

/* CLOSE */
#sp-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 22px;
  cursor: pointer;
}
#sp-close:hover {
  color: #777;
}

 .sp-divider {
              display: flex;
              align-items: center;
              margin: 24px 0 16px 0;
              color: #bbb;
              font-size: 14px;
            }
            .sp-divider::before,
            .sp-divider::after {
              content: "";
              flex: 1;
              height: 1px;
              background: #e0e0e0;
              margin: 0 8px;
            }
            
             .sp-divider-truecaller {
              display: flex;
              align-items: center;
              margin: 24px 0 16px 0;
              color: #bbb;
              font-size: 14px;
            }
            .sp-divider-truecaller::before,
            .sp-divider-truecaller::after {
              content: "";
              flex: 1;
              height: 1px;
              background: #e0e0e0;
              margin: 0 8px;
            }
            
            .sp-alt-login {
              display: flex;
              gap: 16px;
              justify-content: center;
              margin-bottom: 8px;
            }
            .sp-alt-cell {
              background: #f5f6fa;
              border-radius: 8px;
              padding: 10px 24px;
              font-weight: 500;
              color: #333;
              cursor: pointer;
              transition: background 0.2s, box-shadow 0.2s;
              box-shadow: 0 1px 4px rgba(0,0,0,0.04);
              border: 1px solid #e0e0e0;
              text-align: center;
              min-width: 90px;
              display: flex;
              align-items: center;
              gap: 8px;
              justify-content: center;
            }
            .sp-alt-cell svg {
              width: 20px;
              height: 20px;
              display: inline-block;
              vertical-align: middle;
            }
            .sp-alt-cell:hover {
              background: #e9ecef;
              box-shadow: 0 2px 8px rgba(0,0,0,0.06);
            }


        

         

/* RESPONSIVE */
@media (max-width: 768px) {
  .sp-left {
    display: none;
  }
  .sp-right {
    width: 100%;
    padding: 24px;
  }
  /* .terms {
    display: none;
  } */
  
  
  /*#slackpass-overlay {*/
  /*    background-color: white;*/
  /*}*/
  
  #sp-close{
      display: none;
  }
  
  
/*  .woocommerce-account #slackpass-overlay {*/
  /*position: fixed;*/
  /*background: white;*/
  /*display: block !important;*/
/*}*/

}


.sp-loader {
  width: 42px;
  height: 42px;
  border: 4px solid #eee;
  border-top: 4px solid #111;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 0.9s linear infinite;
}

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


@media (max-width: 480px) {

  .sp-right {
    padding: 24px;
  }

  .sp-right h2 {
    font-size: 20px;
  }

  .sp-right button {
    height: 48px;
    font-size: 15px;
  }

  .otp-box {
    gap: 8px;
  }
}


/* =========================
   UNIVERSAL BUTTON LOADING
   ========================= */

.sp-btn {
  position: relative;            /* ✅ REQUIRED */
  display: flex;
  align-items: center;
  justify-content: center;
}


.sp-btn .sp-btn-text {
  transition: opacity .2s ease;
}

.sp-btn .sp-btn-loader {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp-spin .8s linear infinite;
  display: none;
}

/* Loading state */
.sp-btn.loading {
  pointer-events: none;
}

.sp-btn.loading .sp-btn-text {
  opacity: 0;
}

.sp-btn.loading .sp-btn-loader {
  display: block;
}

@keyframes sp-spin {
  to { transform: rotate(360deg); }
}



/* =========================
   ALT LOGIN BUTTON LOADER
   ========================= */

.sp-alt-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content wrapper */
.sp-alt-content {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity .2s ease;
}

/* Loader */
.sp-alt-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #111; /* 🔥 BLACK THEME */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sp-spin .8s linear infinite;
  display: none;
  pointer-events: none;
}

/* Loading state */
.sp-alt-btn.loading {
  pointer-events: none;
}

.sp-alt-btn.loading .sp-alt-content {
  opacity: 0;
}

.sp-alt-btn.loading .sp-alt-loader {
  display: block;
}

