.yh-tutor-auth-screen,
.tutor-login-modal,
body.login.yh-tutor-auth-wp-login {
  --yh-auth-page: var(--tutor-surface-base, #fafafa);
  --yh-auth-surface: var(--tutor-surface-l1, #ffffff);
  --yh-auth-surface-soft: var(--tutor-surface-l1-hover, #f8fafc);
  --yh-auth-border: var(--tutor-border-idle, rgba(15, 23, 42, 0.08));
  --yh-auth-border-strong: var(--tutor-border-hover, rgba(15, 23, 42, 0.16));
  --yh-auth-text: var(--tutor-text-primary, #111827);
  --yh-auth-muted: var(--tutor-text-secondary, #475569);
  --yh-auth-subdued: var(--tutor-text-subdued, #64748b);
  --yh-auth-accent: var(--tutor-text-brand, #f27a1a);
  --yh-auth-accent-strong: var(--tutor-color-primary-hover, #d95f0d);
  --yh-auth-focus: rgba(242, 122, 26, 0.16);
  --yh-auth-primary: var(--yh-primary-color, #2c2c2c);
  --yh-auth-primary-hover: #111827;
  --yh-auth-radius: 10px;
  --yh-auth-field-radius: 8px;
  --yh-auth-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  color: var(--yh-auth-text);
}

#tutor-pro-google-authentication > div{
	    display: flex;
    flex-direction: column;
    align-items: center;
}

.yh-tutor-auth-screen {
  min-height: 100dvh;
  background: var(--yh-auth-page);
}

body.yh-tutor-auth-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.yh-tutor-auth-screen .natm-companion-site-main,
body.yh-tutor-auth-screen main,
body.yh-tutor-auth-screen .site-main,
body.yh-tutor-auth-screen .entry-content,
body.yh-tutor-auth-screen .page-content {
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100dvh - 70px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.yh-tutor-auth-screen .tutor-page-wrap {
  width: 100%;
  min-height: 90dvh;
  display: grid;
  place-items: center;
  padding: 0;
}

.yh-tutor-auth-screen .tutor-template-segment.tutor-login-wrap,
.yh-tutor-auth-screen #tutor-registration-wrap {
  width: min(100%, 520px);
  max-width: 520px !important;
  margin: 40px auto !important;
  padding: 22px !important;
  border: 1px solid var(--yh-auth-border);
  border-radius: var(--yh-auth-radius);
  background: var(--yh-auth-surface);
  box-shadow: var(--yh-auth-shadow);
}

.yh-tutor-auth-screen .tutor-login-form-wrapper > .tutor-fs-5,
.tutor-login-modal #tutor-login-modal-title {
  margin: 0 0 16px !important;
  color: var(--yh-auth-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.28;
}

.yh-tutor-auth-screen #tutor-registration-wrap form,
.yh-tutor-auth-screen #tutor-login-form,
.tutor-login-modal #tutor-login-form {
  display: grid;
  gap: 10px;
}

.yh-tutor-auth-screen #tutor-registration-wrap .tutor-form-group,
.yh-tutor-auth-screen #tutor-registration-wrap .tutor-password-strength-checker,
.yh-tutor-auth-screen #tutor-registration-wrap .tutor-form-row,
.yh-tutor-auth-screen #tutor-registration-wrap .tutor-input-field,
.yh-tutor-auth-screen #tutor-login-form .tutor-input-field,
.tutor-login-modal #tutor-login-form .tutor-input-field {
  margin: 0 !important;
}

.yh-tutor-auth-screen #tutor-registration-wrap label,
.yh-tutor-auth-screen #tutor-login-form label,
.tutor-login-modal #tutor-login-form label {
  color: var(--yh-auth-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.yh-tutor-auth-screen #tutor-registration-wrap .tutor-block.tutor-mb-3,
.yh-tutor-auth-screen #tutor-login-form .tutor-block.tutor-mb-3 {
  margin-bottom: 5px !important;
}

.yh-tutor-auth-screen .tutor-form-control,
.tutor-login-modal .tutor-form-control {
  min-height: 42px;
  border: 1px solid var(--yh-auth-border-strong) !important;
  border-radius: var(--yh-auth-field-radius);
  background: var(--yh-auth-surface);
  color: var(--yh-auth-text);
  padding: 0 13px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yh-tutor-auth-screen .tutor-form-control::placeholder,
.tutor-login-modal .tutor-form-control::placeholder {
  color: var(--yh-auth-subdued);
}

.yh-tutor-auth-screen .tutor-form-control:focus,
.yh-tutor-auth-screen .tutor-form-control.is-active,
.tutor-login-modal .tutor-form-control:focus,
.tutor-login-modal .tutor-form-control.is-active {
  border-color: var(--yh-auth-accent) !important;
  box-shadow: 0 0 0 3px var(--yh-auth-focus);
  outline: none;
}

.yh-tutor-auth-screen .tutor-login-error,
.tutor-login-modal .tutor-login-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}

.yh-tutor-auth-screen .tutor-alert,
.tutor-login-modal .tutor-alert {
  border-radius: var(--yh-auth-field-radius);
}

.yh-tutor-auth-screen #tutor-login-form > .tutor-flex.tutor-justify-between,
.tutor-login-modal #tutor-login-form > .tutor-flex.tutor-justify-between {
  gap: 10px;
  margin-top: 2px !important;
}

.yh-tutor-auth-screen .tutor-form-check-input:not(.tutor-switch),
.tutor-login-modal .tutor-form-check-input:not(.tutor-switch) {
  border-color: var(--yh-auth-border-strong);
}

.yh-tutor-auth-screen .tutor-form-check-input:not(.tutor-switch):checked,
.tutor-login-modal .tutor-form-check-input:not(.tutor-switch):checked {
  border-color: var(--yh-auth-accent);
  background-color: var(--yh-auth-accent);
}

.yh-tutor-auth-screen #tutor-login-form .tutor-input-field.tutor-flex,
.tutor-login-modal #tutor-login-form .tutor-input-field.tutor-flex {
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.yh-tutor-auth-screen #tutor-login-form .tutor-input-field.tutor-flex label,
.tutor-login-modal #tutor-login-form .tutor-input-field.tutor-flex label {
  margin: 0;
  color: var(--yh-auth-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input {
  position: relative;
  flex: 0 0 auto;
  width: 38px !important;
  min-width: 38px;
  height: 22px !important;
  min-height: 22px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--yh-auth-border-strong) !important;
  border-radius: 999px !important;
  background: #e5e7eb !important;
  background-image: none !important;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input::before,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input::before {
  display: none !important;
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input::after,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  display: block !important;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input:checked,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input:checked {
  border-color: var(--yh-auth-accent) !important;
  background: var(--yh-auth-accent) !important;
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input:checked::after,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input:checked::after {
  transform: translateX(16px);
}

.yh-tutor-auth-screen #tutor-login-form input.tutor-switch.tutor-form-check-input:focus-visible,
.tutor-login-modal #tutor-login-form input.tutor-switch.tutor-form-check-input:focus-visible {
  box-shadow: 0 0 0 3px var(--yh-auth-focus);
  outline: none;
}

.yh-tutor-auth-screen .tutor-btn,
.tutor-login-modal .tutor-btn {
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.yh-tutor-auth-screen .tutor-btn-primary,
.tutor-login-modal .tutor-btn-primary {
  display: inline-flex !important;
  min-height: 42px;
  margin-top: 4px !important;
  border-color: var(--yh-auth-primary);
  background: var(--yh-auth-primary);
  color: #fff;
  opacity: 1;
  visibility: visible;
}

.yh-tutor-auth-screen .tutor-btn-primary:hover,
.yh-tutor-auth-screen .tutor-btn-primary:focus-visible,
.tutor-login-modal .tutor-btn-primary:hover,
.tutor-login-modal .tutor-btn-primary:focus-visible {
  border-color: var(--yh-auth-primary-hover);
  background: var(--yh-auth-primary-hover);
  color: #fff;
  outline: none;
}

.yh-tutor-auth-screen .tutor-btn-link,
.yh-tutor-auth-screen #tutor-login-form a,
.tutor-login-modal .tutor-btn-link,
.tutor-login-modal #tutor-login-form a {
  color: var(--yh-auth-accent-strong);
  font-weight: 650;
  text-decoration: none;
}

.yh-tutor-auth-screen .tutor-btn-link:hover,
.yh-tutor-auth-screen #tutor-login-form a:hover,
.tutor-login-modal .tutor-btn-link:hover,
.tutor-login-modal #tutor-login-form a:hover {
  color: var(--yh-auth-accent);
}

.yh-tutor-auth-screen #tutor-registration-wrap .tutor-flex.tutor-items-center,
.yh-tutor-auth-screen #tutor-login-form .tutor-flex.tutor-items-center,
.tutor-login-modal #tutor-login-form .tutor-flex.tutor-items-center {
  flex-wrap: wrap;
  gap: 6px;
}

.yh-tutor-auth-screen #tutor-registration-wrap .tutor-checkbox,
.yh-tutor-auth-screen #tutor-registration-wrap .tutor-form-check-input:not(.tutor-switch),
.yh-tutor-auth-screen #tutor-login-form .tutor-form-check-input:not(.tutor-switch),
.tutor-login-modal #tutor-login-form .tutor-form-check-input:not(.tutor-switch) {
  width: 18px;
  height: 18px;
}

.tutor-login-modal .tutor-modal-overlay {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.tutor-login-modal .tutor-modal-window {
  width: min(420px, calc(100vw - 32px));
}

.tutor-login-modal .tutor-modal-content {
  overflow: hidden;
  border: 1px solid var(--yh-auth-border);
  border-radius: var(--yh-auth-radius);
  background: var(--yh-auth-surface);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.tutor-login-modal .tutor-modal-body {
  padding: 22px;
}

.tutor-login-modal .tutor-py-48 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.tutor-login-modal .tutor-modal-close-o {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--yh-auth-muted);
  background: var(--yh-auth-surface-soft);
  border: 1px solid var(--yh-auth-border);
}

.tutor-login-modal .tutor-modal-close-o:hover,
.tutor-login-modal .tutor-modal-close-o:focus-visible {
  color: var(--yh-auth-text);
  background: #fff;
  outline: 2px solid var(--yh-auth-focus);
}

body.login.yh-tutor-auth-wp-login {
  min-height: 100dvh;
  display: grid;
  align-items: safe center;
  background: var(--yh-auth-page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login.yh-tutor-auth-wp-login #login {
  width: min(420px, 92vw);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--yh-auth-border);
  border-radius: var(--yh-auth-radius);
  background: var(--yh-auth-surface);
  box-shadow: var(--yh-auth-shadow);
}

body.login.yh-tutor-auth-wp-login #login h1 a {
  width: 190px;
  background-size: contain;
}

body.login.yh-tutor-auth-wp-login #login form {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.login.yh-tutor-auth-wp-login #login label {
  color: var(--yh-auth-text);
  font-size: 12px;
  font-weight: 600;
}

body.login.yh-tutor-auth-wp-login #login input.input,
body.login.yh-tutor-auth-wp-login #login input[type="text"],
body.login.yh-tutor-auth-wp-login #login input[type="password"] {
  min-height: 42px;
  border: 1px solid var(--yh-auth-border-strong);
  border-radius: var(--yh-auth-field-radius);
  color: var(--yh-auth-text);
  font-size: 14px;
  box-shadow: none;
}

body.login.yh-tutor-auth-wp-login #login input.input:focus,
body.login.yh-tutor-auth-wp-login #login input[type="text"]:focus,
body.login.yh-tutor-auth-wp-login #login input[type="password"]:focus {
  border-color: var(--yh-auth-accent);
  box-shadow: 0 0 0 3px var(--yh-auth-focus);
  outline: none;
}

body.login.yh-tutor-auth-wp-login #login .message,
body.login.yh-tutor-auth-wp-login #login .notice,
body.login.yh-tutor-auth-wp-login #login #login_error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-left: 0;
  border-radius: var(--yh-auth-field-radius);
  box-shadow: none;
}

body.login.yh-tutor-auth-wp-login #login .button,
body.login.yh-tutor-auth-wp-login #login input.button,
body.login.yh-tutor-auth-wp-login #login input.button-primary {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--yh-auth-field-radius);
  font-size: 14px;
  font-weight: 650;
}

body.login.yh-tutor-auth-wp-login #login input.button-primary {
  border-color: var(--yh-auth-primary);
  background: var(--yh-auth-primary);
  color: #fff;
}

body.login.yh-tutor-auth-wp-login #login input.button-primary:hover,
body.login.yh-tutor-auth-wp-login #login input.button-primary:focus {
  border-color: var(--yh-auth-primary-hover);
  background: var(--yh-auth-primary-hover);
}

body.login.yh-tutor-auth-wp-login #backtoblog,
body.login.yh-tutor-auth-wp-login #nav {
  margin-top: 18px;
  text-align: center;
}

body.login.yh-tutor-auth-wp-login #backtoblog a,
body.login.yh-tutor-auth-wp-login #nav a {
  color: var(--yh-auth-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

body.login.yh-tutor-auth-wp-login #backtoblog a:hover,
body.login.yh-tutor-auth-wp-login #nav a:hover {
  color: var(--yh-auth-accent-strong);
}

@media (max-width: 640px) {
  .yh-tutor-auth-screen .tutor-page-wrap {
    min-height: 0;
  }

  body.yh-tutor-auth-screen .natm-companion-site-main,
  body.yh-tutor-auth-screen main,
  body.yh-tutor-auth-screen .site-main,
  body.yh-tutor-auth-screen .entry-content,
  body.yh-tutor-auth-screen .page-content {
    min-height: calc(100dvh - 60px);
    padding: 18px 16px;
  }

  .yh-tutor-auth-screen .tutor-template-segment.tutor-login-wrap,
  .yh-tutor-auth-screen #tutor-registration-wrap,
  .tutor-login-modal .tutor-modal-body,
  body.login.yh-tutor-auth-wp-login #login {
    padding: 18px !important;
  }

  .yh-tutor-auth-screen #tutor-login-form > .tutor-flex.tutor-justify-between,
  .tutor-login-modal #tutor-login-form > .tutor-flex.tutor-justify-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .yh-tutor-auth-screen .tutor-btn-primary,
  .tutor-login-modal .tutor-btn-primary {
    width: 100%;
    justify-content: center;
  }
}
