/* Shared authentication UI: modal on public actions, full page for direct URLs. */
.tutor-login-modal:not(.cfcdc-auth-shell) {
  display: none !important;
}

.cfcdc-auth-shell {
  --cfcdc-auth-green: var(--cfcdc-color-brand);
  --cfcdc-auth-green-dark: var(--cfcdc-color-brand-strong);
  --cfcdc-auth-accent: var(--cfcdc-color-accent);
  --cfcdc-auth-text: var(--cfcdc-color-text);
  --cfcdc-auth-muted: var(--cfcdc-color-muted);
  --cfcdc-auth-border: var(--cfcdc-color-border);
  --cfcdc-auth-surface: var(--cfcdc-color-surface);
  color: var(--cfcdc-auth-text);
}
.cfcdc-auth-shell--modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: none;
  padding: 12px;
  place-items: center;
}
.cfcdc-auth-shell--modal.is-open {
  display: grid;
}
.cfcdc-auth-shell__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 16, 0.72);
}
.cfcdc-auth-shell__window {
  position: relative;
  z-index: 1;
  width: min(100%, 1000px);
  max-height: calc(100dvh - 24px);
}
.cfcdc-auth-shell__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
  overflow: hidden;
  min-height: min(580px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 22px;
  background: var(--cfcdc-auth-surface);
  box-shadow: 0 28px 90px rgba(7, 22, 10, 0.4);
}
.cfcdc-auth-shell--page {
  display: grid;
  min-height: min(760px, calc(100vh - 100px));
  place-items: center;
  padding: 32px 16px;
}
.cfcdc-auth-shell--page .cfcdc-auth-shell__window {
  max-width: 1060px;
}
.cfcdc-auth-shell--page .cfcdc-auth-shell__content {
  border: 1px solid var(--cfcdc-auth-border);
  box-shadow: 0 20px 60px rgba(30, 58, 32, 0.12);
}

.cfcdc-auth-shell__panel {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100%;
  padding: clamp(32px, 5vw, 58px);
  color: #fff;
  background: var(--cfcdc-color-brand) var(--cfcdc-auth-panel-image) center/cover no-repeat;
  isolation: isolate;
}
.cfcdc-auth-shell__panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: linear-gradient(
    180deg,
    rgba(22, 74, 40, 0.12),
    rgba(9, 44, 26, 0.72)
  );
}
.cfcdc-auth-shell__panel-content {
  max-width: 310px;
}
.cfcdc-auth-shell__quote-mark {
  display: block;
  margin-bottom: -16px;
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
}
.cfcdc-auth-shell__panel blockquote {
  margin: 0;
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(23px, 2.3vw, 34px);
  font-weight: 600;
  line-height: 1.22;
}
.cfcdc-auth-shell__panel p {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.88;
}

.cfcdc-auth-shell__form-area {
  min-height: 0;
  padding: clamp(34px, 5vw, 62px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cfcdc-auth-shell__content button.cfcdc-auth-shell__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--cfcdc-auth-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--cfcdc-auth-green);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}
.cfcdc-auth-shell__content button.cfcdc-auth-shell__close:hover,
.cfcdc-auth-shell__content button.cfcdc-auth-shell__close:focus {
  border-color: var(--cfcdc-auth-accent);
  background: #fff;
}
.cfcdc-auth-shell__tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  border-radius: 999px;
  background: #f2f5ea;
}
.cfcdc-auth-shell__tabs button {
  min-height: 36px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cfcdc-auth-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}
.cfcdc-auth-shell__tabs button.is-active {
  background: #fff;
  color: var(--cfcdc-auth-green);
  box-shadow: 0 2px 8px rgba(29, 63, 33, 0.12);
}
.cfcdc-auth-shell__tab h1 {
  margin: 0;
  color: var(--cfcdc-auth-green);
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.cfcdc-auth-shell__lead {
  margin: 12px 0 26px;
  color: var(--cfcdc-auth-muted);
  font-size: 15px;
  line-height: 1.55;
}
.cfcdc-auth-shell__social .nsl-container {
  margin: 0;
}
.cfcdc-auth-shell__social .nsl-container-buttons {
  display: flex;
}
.cfcdc-auth-shell__social .nsl-button {
  width: 100%;
}
.cfcdc-auth-shell__social .nsl-button-default {
  box-shadow: none !important;
}
.cfcdc-auth-shell__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #9aa89a;
  font-size: 12px;
}
.cfcdc-auth-shell__divider::before,
.cfcdc-auth-shell__divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: var(--cfcdc-auth-border);
}
.cfcdc-auth-shell__back {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
}
.cfcdc-auth-shell__back a {
  color: var(--cfcdc-auth-green);
  font-weight: 600;
  text-decoration: none;
}
.cfcdc-auth-shell__back a.cfcdc-auth-form__submit,
.cfcdc-auth-shell__back a.cfcdc-auth-form__submit:hover,
.cfcdc-auth-shell__back a.cfcdc-auth-form__submit:focus {
  color: #fff;
}

.cfcdc-auth-form {
  display: grid;
  gap: 16px;
}
.cfcdc-auth-form label {
  display: grid;
  gap: 7px;
  color: var(--cfcdc-auth-text);
  font-size: 13px;
  font-weight: 600;
}
.cfcdc-auth-form input[type='text'],
.cfcdc-auth-form input[type='email'],
.cfcdc-auth-form input[type='password'] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1.5px solid var(--cfcdc-auth-border);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--cfcdc-auth-text);
  font: inherit;
  font-size: 15px;
}
.cfcdc-auth-form input:focus {
  border-color: var(--cfcdc-auth-accent);
  box-shadow: 0 0 0 3px rgba(170, 207, 78, 0.22);
}
.cfcdc-auth-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--cfcdc-auth-muted);
  font-size: 13px;
}
.cfcdc-auth-form__options a {
  color: var(--cfcdc-auth-green);
  font-weight: 600;
  text-decoration: none;
}
.cfcdc-auth-form__remember {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 7px !important;
  color: var(--cfcdc-auth-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.cfcdc-auth-form__remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cfcdc-auth-green);
}
.cfcdc-auth-form__submit {
  display: inline-grid;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  padding: 10px 20px;
  place-items: center;
  border: 2px solid var(--cfcdc-auth-green);
  border-radius: 999px;
  background: var(--cfcdc-auth-green);
  color: #fff;
  cursor: pointer;
  font-family: var(--e-global-typography-primary-font-family, inherit);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.cfcdc-auth-form__submit:hover,
.cfcdc-auth-form__submit:focus {
  border-color: var(--cfcdc-auth-green-dark);
  background: var(--cfcdc-auth-green-dark);
  color: #fff;
}
.cfcdc-auth-form__notice {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid #e8b184;
  border-radius: 10px;
  background: #fff4e8;
  color: #7a3b12;
  font-size: 13px;
}
.cfcdc-auth-form__notice.is-success {
  border-color: #afd08a;
  background: #f1fae8;
  color: var(--cfcdc-color-brand);
}
.cfcdc-auth-form__notice p {
  margin: 0;
}
.cfcdc-auth-form__notice p + p {
  margin-top: 5px;
}
.cfcdc-auth-page__logged-in {
  max-width: 460px;
  margin: 48px auto;
  padding: 32px;
  border: 1px solid var(--cfcdc-auth-border);
  border-radius: 18px;
  background: var(--cfcdc-auth-surface);
  text-align: center;
}
.cfcdc-email-verification-notice {
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 20px 22px;
  border: 1px solid #e5c76e;
  border-radius: 14px;
  background: #fff9e7;
  color: var(--cfcdc-auth-text);
  box-shadow: 0 8px 22px rgba(70, 77, 35, 0.08);
}
.cfcdc-email-verification-notice h2 {
  margin: 0 0 8px;
  color: var(--cfcdc-auth-green);
  font-size: 20px;
}
.cfcdc-email-verification-notice p {
  margin: 7px 0;
  line-height: 1.55;
}
.cfcdc-email-verification-notice form {
  margin-top: 14px;
}
.cfcdc-email-verification-notice .button {
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--cfcdc-auth-green);
  border-radius: 999px;
  background: var(--cfcdc-auth-green);
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.cfcdc-email-verification-notice .button:hover,
.cfcdc-email-verification-notice .button:focus {
  border-color: var(--cfcdc-auth-green-dark);
  background: var(--cfcdc-auth-green-dark);
  color: #fff;
}

.cfcdc-auth-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 2px solid var(--cfcdc-auth-accent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cfcdc-auth-green);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
.cfcdc-auth-trigger:hover,
.cfcdc-auth-trigger:focus {
  border-color: var(--cfcdc-auth-green);
  background: var(--cfcdc-auth-green);
  color: #fff;
}

html.cfcdc-auth-modal-open,
body.cfcdc-auth-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Elementor kit rules target generic buttons and inputs. Keep that reset
 * strictly inside this component so the account modal has one predictable UI. */
body[class*='elementor-kit-'] .cfcdc-auth-shell button,
body[class*='elementor-kit-'] .cfcdc-auth-shell input,
body[class*='elementor-kit-'] .cfcdc-auth-shell a.cfcdc-auth-form__submit {
  box-sizing: border-box !important;
  font-family: inherit !important;
}
body[class*='elementor-kit-'] .cfcdc-auth-shell .cfcdc-auth-shell__tabs button {
  min-height: 36px !important;
  margin: 0 !important;
  padding: 7px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--cfcdc-auth-muted) !important;
  box-shadow: none !important;
}
body[class*='elementor-kit-']
  .cfcdc-auth-shell
  .cfcdc-auth-shell__tabs
  button.is-active {
  background: #fff !important;
  color: var(--cfcdc-auth-green) !important;
  box-shadow: 0 2px 8px rgba(29, 63, 33, 0.12) !important;
}
body[class*='elementor-kit-']
  .cfcdc-auth-shell
  .cfcdc-auth-form
  input[type='text'],
body[class*='elementor-kit-']
  .cfcdc-auth-shell
  .cfcdc-auth-form
  input[type='email'],
body[class*='elementor-kit-']
  .cfcdc-auth-shell
  .cfcdc-auth-form
  input[type='password'] {
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 13px !important;
  border: 1.5px solid var(--cfcdc-auth-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--cfcdc-auth-text) !important;
  box-shadow: none !important;
}
body[class*='elementor-kit-'] .cfcdc-auth-shell .cfcdc-auth-form__submit,
body[class*='elementor-kit-']
  .cfcdc-auth-shell
  input[type='submit'].cfcdc-auth-form__submit,
body[class*='elementor-kit-'] .cfcdc-auth-shell a.cfcdc-auth-form__submit {
  display: inline-grid !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 6px 0 0 !important;
  padding: 10px 20px !important;
  border: 2px solid var(--cfcdc-auth-green) !important;
  border-radius: 999px !important;
  background: var(--cfcdc-auth-green) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
body[class*='elementor-kit-'] .cfcdc-auth-shell .cfcdc-auth-form__submit:hover,
body[class*='elementor-kit-'] .cfcdc-auth-shell .cfcdc-auth-form__submit:focus {
  border-color: var(--cfcdc-auth-green-dark) !important;
  background: var(--cfcdc-auth-green-dark) !important;
  color: #fff !important;
}
body[class*='elementor-kit-'] .cfcdc-auth-trigger {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 18px !important;
  border: 2px solid var(--cfcdc-auth-accent) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--cfcdc-auth-green) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}
body[class*='elementor-kit-'] .cfcdc-auth-trigger:hover,
body[class*='elementor-kit-'] .cfcdc-auth-trigger:focus {
  background: var(--cfcdc-auth-green) !important;
  color: #fff !important;
}

@media (max-width: 850px) {
  .cfcdc-auth-shell--modal .cfcdc-auth-shell__window {
    width: min(100% - 20px, 520px);
    height: calc(100dvh - 24px);
  }
  .cfcdc-auth-shell--modal .cfcdc-auth-shell__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }
  .cfcdc-auth-shell__panel {
    display: none;
  }
  .cfcdc-auth-shell--modal .cfcdc-auth-shell__form-area {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    padding: 54px 24px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .cfcdc-auth-shell__tabs {
    margin-bottom: 26px;
  }
  .cfcdc-auth-shell--page {
    padding: 16px 0;
  }
  .cfcdc-auth-shell--page .cfcdc-auth-shell__window {
    width: 100%;
  }
  .cfcdc-email-verification-notice {
    margin-inline: 14px;
    padding: 17px;
  }
  .cfcdc-email-verification-notice h2 {
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .cfcdc-auth-form__options {
    align-items: flex-start;
    flex-direction: column;
  }
}
