.auth-tab-page .auth-page {
  padding: 48px 0 58px;
}

.auth-tab-page .auth-grid.single {
  grid-template-columns: minmax(0, 620px);
}

.auth-tab-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 60px;
  border-bottom: 1px solid var(--theme-border);
  background: color-mix(in srgb, var(--theme-soft) 86%, #fff);
}

.auth-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 60px;
  padding: 0 16px;
  color: var(--p-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.auth-tab + .auth-tab {
  border-left: 1px solid var(--theme-border);
}

.auth-tab:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #fff);
}

.auth-tab.active {
  color: var(--button-text, #fff);
  background: linear-gradient(135deg, var(--primary), var(--secondary, var(--primary)));
  box-shadow: 0 7px 18px color-mix(in srgb, var(--primary) 18%, transparent);
}

.auth-tab.active::after {
  content: "";
  position: absolute;
  right: calc(50% - 30px);
  bottom: -3px;
  left: calc(50% - 30px);
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: color-mix(in srgb, var(--primary) 72%, #fff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 28%, transparent);
}

.auth-tab:first-child {
  border-radius: 17px 0 0 0;
}

.auth-tab:last-child {
  border-radius: 0 17px 0 0;
}

.auth-tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.auth-tab-content {
  padding: 30px 32px 32px;
}

.auth-tab-content .eyebrow {
  margin-bottom: 7px;
  font-size: 11px;
  line-height: 1.4;
}

.auth-tab-content h1 {
  margin-bottom: 20px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.2;
}

.auth-tab-content .contact-form-stack {
  gap: 16px;
}

.auth-tab-content .contact-form-stack > div {
  display: grid;
  gap: 7px;
}

.auth-tab-content .contact-form-stack label {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.auth-tab-content .contact-form-stack input,
.auth-tab-content .contact-form-stack select,
.auth-tab-content .contact-form-stack textarea {
  min-height: 48px;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-tab-content .contact-form-stack input:hover,
.auth-tab-content .contact-form-stack select:hover,
.auth-tab-content .contact-form-stack textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--theme-border));
  background: color-mix(in srgb, var(--primary) 2%, #fff);
}

.auth-tab-content .contact-form-stack input:focus,
.auth-tab-content .contact-form-stack select:focus,
.auth-tab-content .contact-form-stack textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.auth-referral-field {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--theme-border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 4%, #fff);
}

.auth-referral-field label span {
  color: var(--p-text);
  font-weight: 650;
}

.auth-referral-field small {
  color: var(--p-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-tab-content .auth-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin: 18px 0;
}

.auth-tab-content .auth-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
}

.auth-tab-content .auth-checkbox-label input[type="checkbox"] {
  display: inline-block !important;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: 4px !important;
  accent-color: var(--primary) !important;
  cursor: pointer;
}

.auth-tab-content .auth-checkbox-text {
  display: block !important;
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.auth-tab-content .auth-checkbox-text a {
  color: var(--primary) !important;
  font-weight: 900 !important;
  text-decoration: underline !important;
}

.auth-tab-content .auth-checkbox-subtext {
  display: block !important;
  margin-top: 4px !important;
  color: var(--p-text) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.auth-tab-content .google-auth-btn,
.auth-tab-content .login-submit-btn,
.auth-tab-content .contact-submit-btn {
  min-height: 48px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.auth-tab-content .auth-alt-link {
  font-size: 13px;
  line-height: 1.45;
}

.auth-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.auth-remember-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.auth-login-options a {
  color: var(--primary);
  font-weight: 800;
  text-align: right;
}

.auth-login-options a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .auth-tab-page .auth-page {
    padding: 24px 0 34px;
  }

  .auth-tab-card {
    padding: 0;
    border-radius: 14px;
  }

  .auth-tabs,
  .auth-tab {
    min-height: 54px;
  }

  .auth-tab {
    gap: 8px;
    padding: 0 10px;
    font-size: 13px;
  }

  .auth-tab-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .auth-tab-content {
    padding: 22px 20px 24px;
  }

  .auth-tab-content h1 {
    margin-bottom: 18px;
  }

  .auth-login-options {
    gap: 10px;
    font-size: 12px;
  }
}
