body.medprof-user-auth {
  --mpauth-ink: #07184d;
  --mpauth-text: #496783;
  --mpauth-blue: #2369ed;
  --mpauth-cyan: #18b9c8;
  --mpauth-mint: #35c9b7;
  --mpauth-line: #cfe2f7;
  --mpauth-soft: #f2f8ff;
  background: #f5faff;
}

/* Use the same header/footer container grid as the public Elementor pages. */
@media (min-width: 981px) {
  html body.medprof-user-auth .elementor-location-header .mper-header-shell,
  html body.medprof-user-auth .elementor-location-header .elementor-element-4a51e82,
  html body.medprof-user-auth .elementor-location-footer .mpef-shell {
    width: min(1200px, calc(100vw - 240px)) !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 1180px) and (min-width: 681px) {
  html body.medprof-user-auth .elementor-location-header .mper-header-shell,
  html body.medprof-user-auth .elementor-location-header .elementor-element-4a51e82,
  html body.medprof-user-auth .elementor-location-footer .mpef-shell {
    width: min(760px, calc(100vw - 48px)) !important;
    max-width: 760px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 680px) {
  html body.medprof-user-auth .elementor-location-header .mper-header-shell,
  html body.medprof-user-auth .elementor-location-header .elementor-element-4a51e82,
  html body.medprof-user-auth .elementor-location-footer .mpef-shell {
    width: min(430px, calc(100vw - 28px)) !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

body.medprof-user-auth main#content,
body.medprof-user-auth .site-main,
body.medprof-user-auth .page-content,
body.medprof-user-auth article.page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.medprof-user-auth .page-header,
body.medprof-user-auth .entry-header,
body.medprof-user-auth .entry-title {
  display: none !important;
}

body.medprof-user-auth .tutor-page-wrap {
  position: relative;
  isolation: isolate;
  width: 100% !important;
  max-width: none !important;
  min-height: 690px;
  margin: 0 !important;
  padding: 54px 28px 70px !important;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 20%, rgba(53, 201, 183, .17) 0 110px, transparent 111px),
    radial-gradient(circle at 92% 18%, rgba(84, 132, 247, .16) 0 145px, transparent 146px),
    linear-gradient(90deg, rgba(35, 105, 237, .035) 1px, transparent 1px),
    linear-gradient(rgba(35, 105, 237, .035) 1px, transparent 1px),
    linear-gradient(145deg, #eef8ff 0%, #fbfdff 52%, #f1fbfa 100%);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}

body.medprof-user-auth .tutor-page-wrap::before,
body.medprof-user-auth .tutor-page-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

body.medprof-user-auth .tutor-page-wrap::before {
  width: 260px;
  height: 260px;
  left: -92px;
  bottom: 28px;
  border: 42px solid rgba(35, 105, 237, .07);
}

body.medprof-user-auth .tutor-page-wrap::after {
  width: 190px;
  height: 190px;
  right: -58px;
  bottom: -50px;
  background: rgba(110, 91, 240, .07);
}

body.medprof-user-auth .tutor-login-wrap {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%) !important;
  max-width: 1200px !important;
  min-height: 610px;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "form visual"
    "social visual";
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(181, 211, 243, .95) !important;
  border-radius: 32px !important;
  background: #fff !important;
  box-shadow: 0 30px 80px rgba(31, 78, 132, .16), 0 4px 0 rgba(35, 105, 237, .03) !important;
}

body.medprof-user-auth .tutor-login-form-wrapper {
  position: relative;
  z-index: 2;
  grid-area: form;
  order: initial;
  min-width: 0;
  padding: 52px 52px 46px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .98);
}

body.medprof-user-auth .tutor-login-form-wrapper > .tutor-h3,
body.medprof-user-auth .tutor-login-form-wrapper > .tutor-fs-4 {
  display: none !important;
}

.mpauth-intro {
  margin: 0 0 30px;
}

.mpauth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #c9e0fb;
  border-radius: 999px;
  background: #eff7ff;
  color: var(--mpauth-blue);
  font: 800 12px/1 Montserrat, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.mpauth-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #35c9b7, #18b9c8);
  box-shadow: 0 0 0 4px rgba(53, 201, 183, .12);
}

.mpauth-intro h1 {
  margin: 20px 0 12px !important;
  color: var(--mpauth-ink) !important;
  font: 900 clamp(38px, 3.2vw, 46px)/1.04 Montserrat, sans-serif !important;
  letter-spacing: -.045em !important;
  white-space: nowrap;
}

.mpauth-intro p {
  max-width: 430px;
  margin: 0 !important;
  color: var(--mpauth-text);
  font: 500 15px/1.58 Inter, sans-serif;
}

body.medprof-user-auth #tutor-login-form {
  width: 100%;
  margin: 0;
}

body.medprof-user-auth #tutor-login-form .tutor-input-field {
  position: relative;
}

body.medprof-user-auth #tutor-login-form .tutor-form-control,
body.medprof-user-auth #tutor-login-form .tutor-input {
  width: 100%;
  min-height: 56px;
  padding: 14px 17px !important;
  border: 1px solid #cbdcf0 !important;
  border-radius: 15px !important;
  outline: 0 !important;
  background: #f8fbff !important;
  color: var(--mpauth-ink) !important;
  font: 600 15px/1.2 Inter, sans-serif !important;
  box-shadow: inset 0 1px 2px rgba(31, 78, 132, .03) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body.medprof-user-auth #tutor-login-form .tutor-form-control::placeholder,
body.medprof-user-auth #tutor-login-form .tutor-input::placeholder {
  color: #7890a8;
  opacity: 1;
}

body.medprof-user-auth #tutor-login-form .tutor-form-control:focus,
body.medprof-user-auth #tutor-login-form .tutor-input:focus {
  border-color: #4b8df7 !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(35, 105, 237, .11) !important;
}

body.medprof-user-auth #tutor-login-form .tutor-mb-7,
body.medprof-user-auth #tutor-login-form .tutor-mb-8 {
  margin-bottom: 14px !important;
}

body.medprof-user-auth #tutor-login-form .tutor-mt-9 {
  margin-top: 18px !important;
}

body.medprof-user-auth #tutor-login-form .tutor-mt-10 {
  margin-top: 24px !important;
}

body.medprof-user-auth #tutor-login-form .tutor-label,
body.medprof-user-auth #tutor-login-form .tutor-small {
  color: #34536f !important;
  font: 600 13px/1.4 Inter, sans-serif !important;
}

body.medprof-user-auth #tutor-login-form .tutor-checkbox {
  border-color: #bcd1e7 !important;
  border-radius: 6px !important;
}

body.medprof-user-auth #tutor-login-form a {
  color: var(--mpauth-blue) !important;
  font-weight: 750 !important;
  text-decoration: none !important;
}

body.medprof-user-auth #tutor-login-form a:hover {
  color: #114fca !important;
  text-decoration: underline !important;
}

body.medprof-user-auth #tutor-login-form button[type="submit"] {
  min-height: 54px;
  border: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #256df0 0%, #2563eb 48%, #18a9c2 100%) !important;
  color: #fff !important;
  font: 850 15px/1 Montserrat, sans-serif !important;
  letter-spacing: -.01em;
  box-shadow: 0 16px 30px rgba(35, 105, 237, .24) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.medprof-user-auth #tutor-login-form button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 20px 36px rgba(35, 105, 237, .29) !important;
}

body.medprof-user-auth #tutor-login-form .tutor-alert,
body.medprof-user-auth #tutor-login-form .tutor-login-error:not(:empty) {
  margin: 0 0 14px !important;
  padding: 12px 14px !important;
  border: 1px solid #ffd0d6 !important;
  border-radius: 12px !important;
  background: #fff4f5 !important;
  color: #a42335 !important;
  font: 650 13px/1.45 Inter, sans-serif !important;
}

.mpauth-visual {
  position: relative;
  grid-area: visual;
  order: initial;
  min-width: 0;
  min-height: 610px;
  padding: 42px 46px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(185, 215, 245, .9);
  background:
    radial-gradient(circle at 92% 8%, rgba(110, 91, 240, .18) 0 96px, transparent 97px),
    radial-gradient(circle at 4% 80%, rgba(53, 201, 183, .18) 0 118px, transparent 119px),
    linear-gradient(90deg, rgba(35, 105, 237, .04) 1px, transparent 1px),
    linear-gradient(rgba(35, 105, 237, .04) 1px, transparent 1px),
    linear-gradient(145deg, #eaf5ff 0%, #eef4ff 48%, #effbf9 100%);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

body.medprof-user-auth .tutor-login-wrap:has(> #tutor-pro-social-authentication) .tutor-login-form-wrapper {
  padding-bottom: 20px !important;
}

body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication {
  grid-area: social;
  align-self: end;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 52px 42px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  border: 0 !important;
  background: #fff;
}

body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication::before {
  content: "або увійдіть через";
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7890a8;
  font: 650 11px/1.2 Inter, sans-serif;
  text-align: center;
  white-space: nowrap;
}

body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication::before,
body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication::after {
  box-sizing: border-box;
}

body.medprof-user-auth #tutor-pro-google-authentication {
  width: 100% !important;
  min-height: 42px;
  justify-content: stretch !important;
}

body.medprof-user-auth #tutor-pro-google-authentication > div,
body.medprof-user-auth #tutor-pro-google-authentication iframe {
  width: 100% !important;
  max-width: none !important;
}

.mpauth-visual-copy {
  position: relative;
  z-index: 2;
}

.mpauth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--mpauth-ink) !important;
  text-decoration: none !important;
}

.mpauth-brand img {
  width: 42px;
  height: 42px;
  padding: 4px;
  border: 1px solid #bfd8f5;
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  object-fit: contain;
}

.mpauth-brand span {
  display: grid;
  gap: 2px;
}

.mpauth-brand strong {
  color: var(--mpauth-ink);
  font: 900 18px/1 Montserrat, sans-serif;
  letter-spacing: -.035em;
}

.mpauth-brand small {
  color: #496783;
  font: 750 8px/1.1 Montserrat, sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.mpauth-visual-badge {
  display: block;
  margin-bottom: 10px;
  color: var(--mpauth-blue);
  font: 850 11px/1 Montserrat, sans-serif;
  letter-spacing: .08em;
}

.mpauth-visual h2 {
  max-width: 500px;
  margin: 0 0 12px !important;
  color: var(--mpauth-ink) !important;
  font: 900 clamp(31px, 2.7vw, 43px)/1.04 Montserrat, sans-serif !important;
  letter-spacing: -.04em !important;
}

.mpauth-visual-copy > p {
  max-width: 510px;
  margin: 0 !important;
  color: var(--mpauth-text);
  font: 550 14px/1.52 Inter, sans-serif;
}

.mpauth-benefits {
  margin: 18px 0 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  list-style: none !important;
}

.mpauth-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #294f72;
  font: 700 12px/1.35 Inter, sans-serif;
}

.mpauth-benefits li:last-child {
  grid-column: 1 / -1;
}

.mpauth-benefits span {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #1baf9f;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(31, 78, 132, .1);
}

.mpauth-stats {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mpauth-stats span {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(181, 211, 243, .95);
  border-radius: 13px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 18px rgba(31, 78, 132, .06);
}

.mpauth-stats b {
  color: var(--mpauth-ink);
  font: 900 19px/1 Montserrat, sans-serif;
}

.mpauth-stats small {
  overflow: hidden;
  color: #607b95;
  font: 600 10px/1.2 Inter, sans-serif;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mpauth-visual-media {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 210px;
  margin: 4px 0 -24px !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mpauth-visual-media img {
  width: min(100%, 500px);
  height: auto;
  max-height: 245px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(31, 78, 132, .17));
}

@media (max-width: 1050px) {
  body.medprof-user-auth .tutor-page-wrap {
    min-height: 0;
    padding: 36px 20px 48px !important;
  }

  body.medprof-user-auth .tutor-login-wrap {
    width: min(620px, 100%) !important;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "form"
      "social"
      "visual";
    border-radius: 26px !important;
  }

  body.medprof-user-auth .tutor-login-form-wrapper {
    padding: 42px 38px 38px !important;
  }

  body.medprof-user-auth .tutor-login-wrap:has(> #tutor-pro-social-authentication) .tutor-login-form-wrapper {
    padding-bottom: 20px !important;
  }

  body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication {
    padding: 0 38px 34px !important;
  }

  .mpauth-visual {
    min-height: 370px;
    padding: 32px 36px 20px;
    border-top: 1px solid rgba(185, 215, 245, .9);
    border-left: 0;
  }

  .mpauth-brand,
  .mpauth-benefits {
    display: none;
  }

  .mpauth-visual h2 {
    max-width: 420px;
    font-size: 32px !important;
  }

  .mpauth-visual-media {
    position: absolute;
    right: -25px;
    bottom: -12px;
    width: 330px;
    min-height: 0;
    margin: 0 !important;
    opacity: .82;
  }

  .mpauth-visual-media img {
    max-height: 220px;
  }

  .mpauth-visual-copy {
    max-width: 360px;
  }

  .mpauth-stats {
    width: min(330px, 100%);
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  body.medprof-user-auth .tutor-page-wrap {
    padding: 22px 10px 34px !important;
  }

  body.medprof-user-auth .tutor-login-wrap {
    border-radius: 22px !important;
  }

  body.medprof-user-auth .tutor-login-form-wrapper {
    padding: 30px 24px 28px !important;
  }

  body.medprof-user-auth .tutor-login-wrap:has(> #tutor-pro-social-authentication) .tutor-login-form-wrapper {
    padding-bottom: 18px !important;
  }

  body.medprof-user-auth .tutor-login-wrap > #tutor-pro-social-authentication {
    padding: 0 24px 28px !important;
  }

  .mpauth-intro {
    margin-bottom: 24px;
  }

  .mpauth-intro h1 {
    margin-top: 16px !important;
    font-size: clamp(30px, 9vw, 36px) !important;
    white-space: normal;
  }

  .mpauth-intro p {
    font-size: 14px;
  }

  body.medprof-user-auth #tutor-login-form .tutor-flex.tutor-justify-between {
    align-items: flex-start !important;
    gap: 12px;
  }

  body.medprof-user-auth #tutor-login-form .tutor-label,
  body.medprof-user-auth #tutor-login-form .tutor-small,
  body.medprof-user-auth #tutor-login-form a {
    font-size: 12px !important;
  }

  .mpauth-visual {
    min-height: 325px;
    padding: 28px 24px 18px;
  }

  .mpauth-visual h2 {
    max-width: 285px;
    font-size: 28px !important;
  }

  .mpauth-visual-copy > p {
    max-width: 290px;
    font-size: 13px;
  }

  .mpauth-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .mpauth-stats span {
    padding: 8px;
  }

  .mpauth-stats b {
    font-size: 16px;
  }

  .mpauth-stats small {
    font-size: 8px;
  }

  .mpauth-visual-media {
    right: -76px;
    width: 280px;
    opacity: .52;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.medprof-user-auth *,
  body.medprof-user-auth *::before,
  body.medprof-user-auth *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
