/**
 * KashKick Auth forms ([kashkick_login], [kashkick_register]).
 *
 * Themes only redefine the custom properties below on
 * .kk-auth-theme-{slug}; the markup is identical for every theme. To add
 * a theme, register it with the `kashkick_auth_themes` filter and add a
 * matching block of variables.
 *
 * Base values reproduce the previous Elementor login / sign-up pages
 * (Elementor page CSS, kit styles, child theme and Scripts & Styles CSS).
 */

/* ---- Themes ------------------------------------------------------------- */

.kk-auth,
.kk-auth-theme-dark {
  --kk-auth-font: "Poppins", sans-serif;
  --kk-auth-small-font: "Helvetica", sans-serif;
  --kk-auth-radius: 100px;
  --kk-auth-text: #fff;
  --kk-auth-link: #fff;
  --kk-auth-link-decoration: underline;
  --kk-auth-input-radius: var(--kk-auth-radius);
  --kk-auth-input-padding: 11px 1rem;
  --kk-auth-input-bg: #fff;
  --kk-auth-input-text: #333;
  --kk-auth-input-border: transparent;
  --kk-auth-input-placeholder: #7a7a7a;
  --kk-auth-focus-ring: rgba(0, 123, 255, 0.25);
  --kk-auth-submit-bg: #91f2b2;
  --kk-auth-submit-text: #5f1c8c;
  --kk-auth-social-bg: #fff;
  --kk-auth-social-text: #5f1c8c;
  --kk-auth-social-border: transparent;
  --kk-auth-social-font-size: 1rem;
  --kk-auth-social-weight: 700;
  --kk-auth-social-line-height: 30px;
  --kk-auth-social-padding-y: 0.5rem;
  --kk-auth-socials-gap: 20px;
  --kk-auth-divider: #fff;
  --kk-auth-divider-font: var(--kk-auth-font);
  --kk-auth-divider-text-size: 1.25rem;
  --kk-auth-divider-weight: 500;
  --kk-auth-divider-transform: none;
  --kk-auth-error-bg: #f8d7da;
  --kk-auth-error-text: #58151c;
  --kk-auth-error-border: #f1aeb5;
  --kk-auth-consent-error: #ffb3b3;
  --kk-auth-consent-error-ring: rgba(255, 179, 179, 0.85);
  --kk-auth-consent-error-bg: rgba(255, 179, 179, 0.12);

  /*
   * Per-provider social buttons. When unset, a button uses the
   * --kk-auth-social-* values above and the icon keeps its own colors.
   * Available: --kk-auth-social-{google,paypal,facebook}-{bg,text,border,icon}.
   * --kk-auth-social-paypal-icon-secondary colors the back "P" (falls back
   * to the -icon value).
   *
   * Optional, unset by default: --kk-auth-input-font-size (1rem),
   * --kk-auth-divider-text (--kk-auth-text), --kk-auth-divider-gap (20px),
   * --kk-auth-legal-text (--kk-auth-text), --kk-auth-legal-link
   * (--kk-auth-link), --kk-auth-legal-line-height (15px).
   */
}

/*
 * Landing pages (LP2): light glass panel, dark copy, colored social buttons.
 * Also the base of `black`, which only overrides what the panel color needs.
 */

.kk-auth-theme-purple,
.kk-auth-theme-black {
  --kk-auth-text: #484649;
  --kk-auth-link: #333;
  --kk-auth-link-decoration: none;
  --kk-auth-input-radius: 8px;
  --kk-auth-input-padding: 8px 16px;
  --kk-auth-submit-bg: #7629a2;
  --kk-auth-submit-text: #fff;
  --kk-auth-social-font-size: 14px;
  --kk-auth-social-weight: 600;
  --kk-auth-social-line-height: 18px;
  --kk-auth-social-padding-y: 13px;
  --kk-auth-socials-gap: 12px;
  --kk-auth-social-google-bg: #fff;
  --kk-auth-social-google-text: #3d3d3d;
  --kk-auth-social-paypal-bg: #642a8e;
  --kk-auth-social-paypal-text: #fff;
  --kk-auth-social-paypal-icon: #fff;
  --kk-auth-social-paypal-icon-secondary: color-mix(in sRGB, var(--kk-auth-social-paypal-icon) 50%, var(--kk-auth-social-paypal-bg));
  --kk-auth-social-facebook-bg: #4267b2;
  --kk-auth-social-facebook-text: #fff;
  --kk-auth-social-facebook-icon: #fff;
  --kk-auth-divider: rgba(0, 0, 0, 0.3);
  --kk-auth-divider-font: var(--kk-auth-small-font);
  --kk-auth-divider-text-size: 12px;
  --kk-auth-divider-weight: 400;
  --kk-auth-divider-transform: uppercase;
  --kk-auth-consent-error: #c62828;
  --kk-auth-consent-error-ring: rgba(198, 40, 40, 0.6);
  --kk-auth-consent-error-bg: rgba(198, 40, 40, 0.06);
}

/* Black panel of the LP3 clones: `purple` with white copy. */

.kk-auth-theme-black {
  --kk-auth-text: #fff;
  --kk-auth-link: #fff;
  --kk-auth-link-decoration: underline;
  --kk-auth-divider: rgba(255, 255, 255, 0.3);
  --kk-auth-consent-error: #ffb3b3;
  --kk-auth-consent-error-ring: rgba(255, 179, 179, 0.85);
  --kk-auth-consent-error-bg: rgba(255, 179, 179, 0.12);
}

/* White backgrounds (offerwall sign-up modal): outlined inputs, colored social buttons. */

.kk-auth-theme-light {
  --kk-auth-text: #3d3d3d;
  --kk-auth-link: #5f1c8c;
  --kk-auth-input-border: #d5d5d5;
  --kk-auth-submit-bg: #7629a2;
  --kk-auth-submit-text: #fff;
  --kk-auth-social-weight: 600;
  --kk-auth-social-google-bg: #fff;
  --kk-auth-social-google-text: #333;
  --kk-auth-social-google-border: #e0e0e0;
  --kk-auth-social-paypal-bg: #642a8e;
  --kk-auth-social-paypal-text: #fff;
  --kk-auth-social-paypal-icon: #fff;
  --kk-auth-social-facebook-bg: #4267b2;
  --kk-auth-social-facebook-text: #fff;
  --kk-auth-social-facebook-icon: #fff;
  --kk-auth-divider: #d5d5d5;
  --kk-auth-consent-error: #c62828;
  --kk-auth-consent-error-ring: rgba(198, 40, 40, 0.6);
  --kk-auth-consent-error-bg: rgba(198, 40, 40, 0.06);
}

/*
 * Grey panel of the kashkick-shortcodes sign-up modal (LP4, offerwall.css):
 * borderless inputs, colored social buttons, muted legal copy.
 */

.kk-auth-theme-grey {
  --kk-auth-text: #3d3d3d;
  --kk-auth-link: #5f1c8c;
  --kk-auth-input-radius: 12px;
  --kk-auth-input-padding: 14px 18px;
  --kk-auth-input-font-size: 15px;
  --kk-auth-focus-ring: rgba(102, 126, 234, 0.1);
  --kk-auth-submit-bg: #7629a2;
  --kk-auth-submit-text: #fff;
  --kk-auth-social-weight: 600;
  --kk-auth-social-google-bg: #fff;
  --kk-auth-social-google-text: #333;
  --kk-auth-social-google-border: #e0e0e0;
  --kk-auth-social-paypal-bg: #642a8e;
  --kk-auth-social-paypal-text: #fff;
  --kk-auth-social-paypal-icon: #fff;
  --kk-auth-social-paypal-icon-secondary: color-mix(in sRGB, var(--kk-auth-social-paypal-icon) 50%, var(--kk-auth-social-paypal-bg));
  --kk-auth-social-facebook-bg: #4267b2;
  --kk-auth-social-facebook-text: #fff;
  --kk-auth-social-facebook-icon: #fff;
  --kk-auth-divider: #7f76bb;
  --kk-auth-divider-text: #3a373f;
  --kk-auth-divider-font: var(--kk-auth-small-font);
  --kk-auth-divider-text-size: 13px;
  --kk-auth-divider-weight: 600;
  --kk-auth-divider-transform: uppercase;
  --kk-auth-divider-gap: 15px;
  --kk-auth-legal-text: #999;
  --kk-auth-legal-link: #667eea;
  --kk-auth-legal-line-height: 1.6;
  --kk-auth-consent-error: #c62828;
  --kk-auth-consent-error-ring: rgba(198, 40, 40, 0.6);
  --kk-auth-consent-error-bg: rgba(198, 40, 40, 0.06);
}

/* ---- Layout ------------------------------------------------------------- */

/*
 * No CSS containment here: `container-type: inline-size` gives the form a
 * zero intrinsic width, so it collapses to 0px inside shrink-to-fit parents
 * (e.g. an Elementor container with "Align items: center").
 */

.kk-auth {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  color: var(--kk-auth-text);
}

.kk-auth,
.kk-auth *,
.kk-auth *::before,
.kk-auth *::after {
  box-sizing: border-box;
}

.kk-auth [hidden] {
  display: none !important;
}

.kk-auth .kk-auth-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kk-auth .kk-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

/* ---- Inputs ------------------------------------------------------------- */

.kk-auth .kk-auth-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: var(--kk-auth-input-padding);
  border: 1px solid var(--kk-auth-input-border);
  border-radius: var(--kk-auth-input-radius);
  background: var(--kk-auth-input-bg);
  box-shadow: none;
  color: var(--kk-auth-input-text);
  font-family: inherit;
  font-size: var(--kk-auth-input-font-size, 1rem);
  line-height: 1.5;
  outline: none;
}

.kk-auth .kk-auth-input::placeholder {
  color: var(--kk-auth-input-placeholder);
  opacity: 1;
}

.kk-auth .kk-auth-input:focus {
  border-color: var(--kk-auth-input-border);
  background: var(--kk-auth-input-bg);
  box-shadow: 0 0 0 0.25rem var(--kk-auth-focus-ring);
  color: var(--kk-auth-input-text);
}

.kk-auth .kk-auth-password {
  position: relative;
}

.kk-auth .kk-auth-password .kk-auth-input {
  padding-right: 48px;
}

.kk-auth .kk-auth-toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  margin: 0;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

/* ---- Errors ------------------------------------------------------------- */

.kk-auth .kk-auth-error {
  display: none;
  margin: -10px 0 15px;
  padding: 15px;
  border: 1px solid var(--kk-auth-error-border);
  border-radius: 8px;
  background-color: var(--kk-auth-error-bg);
  color: var(--kk-auth-error-text);
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-align: left;
}

.kk-auth .kk-auth-error p {
  margin: 0;
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
}

.kk-auth .kk-auth-error a {
  color: inherit;
  text-decoration: underline;
}

/* ---- Submit and "Sign Up with Email" buttons ---------------------------- */

.kk-auth .kk-auth-submit,
.kk-auth .kk-auth-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 11px 24px;
  border: 0;
  border-radius: var(--kk-auth-radius);
  background-color: var(--kk-auth-submit-bg);
  background-image: none;
  color: var(--kk-auth-submit-text);
  font-family: var(--kk-auth-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  text-transform: none;
  cursor: pointer;
}

/* Beats the Elementor kit's `button:hover` gradient. */

.kk-auth .kk-auth-submit:hover,
.kk-auth .kk-auth-submit:focus,
.kk-auth .kk-auth-reveal:hover,
.kk-auth .kk-auth-reveal:focus {
  background-color: var(--kk-auth-submit-bg);
  background-image: none;
  color: var(--kk-auth-submit-text);
}

.kk-auth .kk-auth-submit:disabled {
  opacity: 0.92;
  cursor: wait;
}

.kk-auth .kk-auth-submit-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.kk-auth .kk-auth-submit-verified .kk-auth-submit-pending {
  display: none;
}

.kk-auth .kk-auth-spinner {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-color: color-mix(in sRGB, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: kk-auth-spin 0.7s linear infinite;
}

@keyframes kk-auth-spin {

  to {
    transform: rotate(360deg);
  }
}

.kk-auth .kk-auth-turnstile {
  display: flex;
  justify-content: center;
}

/* ---- Links and legal copy ----------------------------------------------- */

.kk-auth .kk-auth-forgot {
  margin-top: 15px;
  text-align: right;
}

.kk-auth .kk-auth-forgot a {
  color: var(--kk-auth-link);
  font-size: 12.8px;
  font-weight: 400;
  line-height: 19.2px;
  text-decoration: none;
}

.kk-auth .kk-auth-legal {
  color: var(--kk-auth-legal-text, var(--kk-auth-text));
  font-family: var(--kk-auth-small-font);
  font-size: 11px;
  font-weight: 400;
  line-height: var(--kk-auth-legal-line-height, 15px);
  text-align: center;
}

.kk-auth .kk-auth-legal p {
  margin: 0;
}

.kk-auth .kk-auth-legal a {
  color: var(--kk-auth-legal-link, var(--kk-auth-link));
  text-decoration: var(--kk-auth-link-decoration);
}

/* ---- Divider ------------------------------------------------------------ */

.kk-auth .kk-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--kk-auth-divider-gap, 20px);
}

.kk-auth .kk-auth-divider-line {
  flex: 1 1 auto;
  margin: 15px 0;
  border-top: 1px solid var(--kk-auth-divider);
}

.kk-auth .kk-auth-divider-text {
  color: var(--kk-auth-divider-text, var(--kk-auth-text));
  font-family: var(--kk-auth-divider-font);
  font-size: var(--kk-auth-divider-text-size);
  font-weight: var(--kk-auth-divider-weight);
  line-height: 1.2;
  text-transform: var(--kk-auth-divider-transform);
}

/* ---- Social buttons ----------------------------------------------------- */

.kk-auth .kk-auth-socials {
  display: flex;
  flex-direction: column;
  gap: var(--kk-auth-socials-gap);
}

.kk-auth .kk-auth-social-google {
  --kk-auth-social-item-bg: var(--kk-auth-social-google-bg, var(--kk-auth-social-bg));
  --kk-auth-social-item-text: var(--kk-auth-social-google-text, var(--kk-auth-social-text));
  --kk-auth-social-item-border: var(--kk-auth-social-google-border, var(--kk-auth-social-border));
}

.kk-auth .kk-auth-social-paypal {
  --kk-auth-social-item-bg: var(--kk-auth-social-paypal-bg, var(--kk-auth-social-bg));
  --kk-auth-social-item-text: var(--kk-auth-social-paypal-text, var(--kk-auth-social-text));
  --kk-auth-social-item-border: var(--kk-auth-social-paypal-border, var(--kk-auth-social-border));
}

.kk-auth .kk-auth-social-facebook {
  --kk-auth-social-item-bg: var(--kk-auth-social-facebook-bg, var(--kk-auth-social-bg));
  --kk-auth-social-item-text: var(--kk-auth-social-facebook-text, var(--kk-auth-social-text));
  --kk-auth-social-item-border: var(--kk-auth-social-facebook-border, var(--kk-auth-social-border));
}

.kk-auth .kk-auth-social {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;

  /* Room for the icon on both sides keeps the label centered and clear of the icon. */
  padding: var(--kk-auth-social-padding-y) calc(10% + 25px + 0.5rem);
  border: 1px solid var(--kk-auth-social-item-border, var(--kk-auth-social-border));
  border-radius: var(--kk-auth-radius);
  background-color: var(--kk-auth-social-item-bg, var(--kk-auth-social-bg));
  color: var(--kk-auth-social-item-text, var(--kk-auth-social-text));
  font-family: var(--kk-auth-font);
  font-size: var(--kk-auth-social-font-size);
  font-weight: var(--kk-auth-social-weight);
  line-height: var(--kk-auth-social-line-height);
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s;
}

.kk-auth .kk-auth-social:hover,
.kk-auth .kk-auth-social:focus {
  color: var(--kk-auth-social-item-text, var(--kk-auth-social-text));
  text-decoration: none;
}

.kk-auth .kk-auth-social:hover {
  transform: scale(1.02);
}

.kk-auth .kk-auth-social-icon {
  display: block;
  position: absolute;
  top: 50%;
  left: 10%;
  width: 25px;
  height: 24px;
  transform: translateY(-50%);
}


/* ---- International consents --------------------------------------------- */

.kk-auth .kk-auth-consents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kk-auth .kk-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  color: var(--kk-auth-text);
  font-family: var(--kk-auth-small-font);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18.743px;
}

.kk-auth .kk-auth-consent input {
  flex-shrink: 0;
  margin: 3px 0 0;
}

.kk-auth .kk-auth-consent a {
  color: var(--kk-auth-link);
  text-decoration-line: underline;
}

.kk-auth .kk-auth-consent-error {
  margin-top: -12px;
  color: var(--kk-auth-consent-error);
  font-family: var(--kk-auth-small-font);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
}

.kk-auth .kk-auth-consent.kk-auth-consent-invalid {
  background: var(--kk-auth-consent-error-bg);
  box-shadow: 0 0 0 2px var(--kk-auth-consent-error-ring);
}

.kk-auth .kk-auth-consent.kk-auth-consent-shake {
  animation: kk-auth-consent-shake 0.35s ease;
}

@keyframes kk-auth-consent-shake {

  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }

  100% {
    transform: translateX(0);
  }
}



/**
 * TODO: Signup V2 changes are part of an A/B test.
 * If the test passes, update the default registration form (To be Confirmed) 
 * to use these changes and remove the temporary signupv2-specific overrides.
 * If the test fails, remove these customizations.
 */


/* ---- Signup V2 ---------------------------------------------------------- */

.signupv2 .kk-auth {
  --kk-auth-submit-bg: #7629a2;
  --kk-auth-submit-text: #fff;
  --kk-auth-social-text: #484649;
  --kk-auth-social-border: #c9c5ca;
  --kk-auth-socials-gap: 12px;
  --kk-auth-divider: #d6d2db;
  --kk-auth-divider-text: #484649;
  --kk-auth-divider-text-size: 12px;
  --kk-auth-divider-weight: 400;
  --kk-auth-divider-transform: none;
  --kk-auth-legal-text: #484649;
  --kk-auth-legal-link: #7629a2;
}

/* Signup V2 - Input Borders */
.signupv2 .kk-auth .kk-auth-input {
  border: 1px solid var(--outline-default, #939094);
}

/* Submit button */

.signupv2 .kk-auth .kk-auth-submit {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  padding: 12px 40px;
}

/* Divider */

.signupv2 .kk-auth .kk-auth-divider-text {
  font-family: "Poppins", sans-serif;
  line-height: 18px;
  letter-spacing: 0;
}

/* Social login buttons */

.signupv2 .kk-auth .kk-auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--outline-light, #c9c5ca);
}

.signupv2 .kk-auth .kk-auth-social-icon {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  flex-shrink: 0;
  width: 20px;
}

/* Legal disclaimer */

.signupv2 .kk-auth .kk-auth-legal {
  order: 10;
}

.signupv2 .kk-auth .kk-auth-consents {
  order: 9;
}

/* Mobile */

@media (max-width: 767px) {
  .signupv2 .kk-auth .kk-auth-socials {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .signupv2 .kk-auth .kk-auth-social {
    width: 48px;
    height: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: 100px;
    padding: 0;
  }

  .signupv2 .kk-auth .kk-auth-social-text {
    display: none;
  }
}
