/* PharmSim guest authentication pages. GetCourse keeps form state and submission logic. */
@font-face {
  font-family: "PharmSim Inter";
  src: url("https://fs.getcourse.ru/fileservice/file/download/a/951490/sc/67/h/7b42507fac1e7f4092b84760e6e96846.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.gc-user-guest:has(.login-form) {
  --ps-login-canvas: #f5f6f8;
  --ps-login-surface: #fff;
  --ps-login-text: #1c1c1e;
  --ps-login-muted: #687083;
  --ps-login-border: #b4b4b6;
  --ps-login-border-hover: #888ea1;
  --ps-login-primary: #324bba;
  --ps-login-primary-hover: #5976f6;
  --ps-login-danger: #b42318;
  --ps-login-font: "PharmSim Inter", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 0;
  margin: 0;
  background: var(--ps-login-canvas);
  color: var(--ps-login-text);
  font-family: var(--ps-login-font);
}

body.gc-user-guest:has(.login-form) .gc-main-content.account-page-content,
body.gc-user-guest:has(.login-form) .page-full-block,
body.gc-user-guest:has(.login-form) .main-page-block {
  min-height: 100vh;
  background: var(--ps-login-canvas);
}

body.gc-user-guest:has(.login-form) .main-page-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 64px 24px;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
}

body.gc-user-guest:has(.login-form) .empty-breadcrumbs,
body.gc-user-guest:has(.login-form) .breadcrumbs {
  display: none;
}

body.gc-user-guest:has(.login-form) .main-page-container > .xdget-root,
body.gc-user-guest:has(.login-form) .main-page-container > .xdget-root > .xdget-loginSystemPage,
body.gc-user-guest:has(.login-form) .main-page-container > .xdget-root > .xdget-loginSystemPage > .page-full-block,
body.gc-user-guest:has(.login-form) .main-page-container .area-PAGE {
  width: min(100%, 480px);
}

body.gc-user-guest:has(.login-form) .gc-account-logo {
  display: none !important;
}

body.gc-user-guest:has(.login-form) .standard-form.container-center {
  width: min(100%, 480px);
  max-width: 480px;
  margin: 0;
  padding: 32px;
  border: 0;
  border-radius: 24px;
  background: var(--ps-login-surface);
  box-shadow: none;
}

body.gc-user-guest:has(.login-form) .state-form {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.gc-user-guest:has(.login-form) :where(.state-form > h2, .remind-block > h2) {
  margin: 0 0 24px;
  color: var(--ps-login-text);
  font: 500 40px/40px var(--ps-login-font);
  letter-spacing: -1.6px;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form).active-state {
  display: flex;
  flex-direction: column;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form).active-state > * {
  order: 2;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form).active-state > h2 {
  order: 1;
}

body.gc-user-guest:has(.login-form) .register-form.active-state > h2 {
  margin-bottom: 8px;
}

body.gc-user-guest:has(.login-form) .register-form.active-state > .psv5-login-certificate-note {
  order: 1;
  margin: 0 0 24px;
  color: var(--ps-login-muted);
  font: 400 14px/20px var(--ps-login-font);
  letter-spacing: -.2px;
}

body.gc-user-guest:has(.login-form) .register-form.active-state > .psv5-login-certificate-note :where(.html-content, p) {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form).active-state > .form-buttons {
  order: 3;
}

body.gc-user-guest:has(.login-form) .login-form.active-state > .btn-register,
body.gc-user-guest:has(.login-form) .register-form.active-state > .btn-login {
  order: 5;
  align-self: center;
  margin: 16px 0 0;
  padding: 0;
  float: none !important;
  color: var(--ps-login-primary);
  font: 600 14px/20px var(--ps-login-font);
  text-decoration: none;
}

body.gc-user-guest:has(.login-form) .form-field,
body.gc-user-guest:has(.login-form) .form-group {
  margin: 0 0 16px;
}

body.gc-user-guest:has(.login-form) .field-input-block {
  position: relative;
}

body.gc-user-guest:has(.login-form) :where(
  .form-field-email,
  .form-field-password,
  .form-field-first_name,
  .form-field-last_name,
  .form-field-full_name
) > .field-input-block::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  background: var(--ps-login-muted);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  -webkit-mask: var(--ps-login-field-icon) center / 20px 20px no-repeat;
  mask: var(--ps-login-field-icon) center / 20px 20px no-repeat;
}

body.gc-user-guest:has(.login-form) .form-field-email > .field-input-block {
  --ps-login-field-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Ik0xNjgtMTkycS0yOSAwLTUwLjUtMjEuNVQ5Ni0yNjR2LTQzMnEwLTI5IDIxLjUtNTAuNVQxNjgtNzY4aDYyNHEyOS43IDAgNTAuODUgMjEuNVE4NjQtNzI1IDg2NC02OTZ2NDMycTAgMjktMjEuMTUgNTAuNVQ3OTItMTkySDE2OFptNjI0LTQxOUw0OTktNDQzcS00LjUyIDMtOS41IDQuNVQ0ODAtNDM3cS01IDAtOS0xLjV0LTguOTItNC4yTDE2OC02MTF2MzQ3aDYyNHYtMzQ3Wm0tMzEyIDk0IDMxMS0xNzlIMTcwbDMxMCAxNzlaTTE2OC02MjMuOXY4Ljk5LTUyLjU5LjUtMjkgMjguOTUtLjQ1IDUyLjY4LTlWLTI2NHYtMzU5LjlaIi8+PC9zdmc+");
}

body.gc-user-guest:has(.login-form) .form-field-password > .field-input-block {
  --ps-login-field-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Ik0yNjMuNzItOTZRMjM0LTk2IDIxMy0xMTcuMTVUMTkyLTE2OHYtMzg0cTAtMjkuNyAyMS4xNS01MC44NVEyMzQuMy02MjQgMjY0LTYyNGgyNHYtOTZxMC03OS42OCA1Ni4yMy0xMzUuODQgNTYuMjItNTYuMTYgMTM2LTU2LjE2UTU2MC05MTIgNjE2LTg1NS44NHE1NiA1Ni4xNiA1NiAxMzUuODR2OTZoMjRxMjkuNyAwIDUwLjg1IDIxLjE1UTc2OC01ODEuNyA3NjgtNTUydjM4NHEwIDI5LjctMjEuMTYgNTAuODVRNzI1LjY4LTk2IDY5NS45Ni05NkgyNjMuNzJabS4yOC03Mmg0MzJ2LTM4NEgyNjR2Mzg0Wm0yMTYuMjEtMTIwUTUxMC0yODggNTMxLTMwOS4yMXQyMS01MVE1NTItMzkwIDUzMC43OS00MTF0LTUxLTIxUTQ1MC00MzIgNDI5LTQxMC43OXQtMjEgNTFRNDA4LTMzMCA0MjkuMjEtMzA5dDUxIDIxWk0zNjAtNjI0aDI0MHYtOTZxMC01MC0zNS04NXQtODUtMzVxLTUwIDAtODUgMzV0LTM1IDg1djk2Wm0tOTYgNDU2di0zODQgMzg0WiIvPjwvc3ZnPg==");
}

body.gc-user-guest:has(.login-form) :where(
  .form-field-first_name,
  .form-field-last_name,
  .form-field-full_name
) > .field-input-block {
  --ps-login-field-icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgLTk2MCA5NjAgOTYwIiB3aWR0aD0iMjAiPjxwYXRoIGQ9Ik00ODAtNDgwcS02MCAwLTEwMi00MnQtNDItMTAycTAtNjAgNDItMTAydDEwMi00MnE2MCAwIDEwMiA0MnQ0MiAxMDJxMCA2MC00MiAxMDJ0LTEwMiA0MlpNMTkyLTI2NHYtMjRxMC0yMyAxMi41LTQzLjVUMjM5LTM2NnE1NS0zMiAxMTYuMjktNDkgNjEuMjktMTcgMTI0LjUtMTd0MTI0LjcxIDE3UTY2Ni0zOTggNzIxLTM2NnEyMiAxMyAzNC41IDM0dDEyLjUgNDR2MjRxMCAyOS43LTIxLjE2IDUwLjg1UTcyNS42OC0xOTIgNjk1Ljk2LTE5MkgyNjMuNzJRMjM0LTE5MiAyMTMtMjEzLjE1VDE5Mi0yNjRabTcyIDBoNDMydi0yNHEwLTUuMTgtMy4wMy05LjQxLTMuMDItNC4yNC03Ljk3LTYuNTktNDYtMjgtOTgtNDJ0LTEwNy0xNHEtNTUgMC0xMDcgMTR0LTk4IDQycS01IDQtOCA3LjcyLTMgMy43My0zIDguMjh2MjRabTIxNi4yMS0yODhRNTEwLTU1MiA1MzEtNTczLjIxdDIxLTUxUTU1Mi02NTQgNTMwLjc5LTY3NXQtNTEtMjFRNDUwLTY5NiA0MjktNjc0Ljc5dC0yMSA1MVE0MDgtNTk0IDQyOS4yMS01NzN0NTEgMjFabS0uMjEtNzJabTAgMzYwWiIvPjwvc3ZnPg==");
}

body.gc-user-guest:has(.login-form) .remind-block .form-group > label {
  display: block;
  margin: 0 0 8px;
  color: var(--ps-login-muted);
  font: 500 14px/20px var(--ps-login-font);
}

body.gc-user-guest:has(.login-form) .remind-block .form-group:last-child {
  display: flex;
  margin: 8px 0 0;
  gap: 16px;
  flex-direction: column;
}

body.gc-user-guest:has(.login-form) :where(input.form-control, textarea.form-control, select.form-control) {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--ps-login-border);
  border-radius: 8px;
  background: var(--ps-login-surface);
  color: var(--ps-login-text);
  font: 400 16px/22px var(--ps-login-font);
  box-shadow: none;
  transition: border-color 160ms ease;
}

body.gc-user-guest:has(.login-form) :where(
  input.form-field-email,
  input.form-field-password,
  input.form-field-first_name,
  input.form-field-last_name,
  input.form-field-full_name
) {
  /* GetCourse sets 35px inline with !important for its sprite icon. */
  padding-left: 44px !important;
  background-image: none !important;
}

body.gc-user-guest:has(.login-form) :where(input.form-control, textarea.form-control, select.form-control):hover {
  border-color: var(--ps-login-border-hover);
}

body.gc-user-guest:has(.login-form) :where(input.form-control, textarea.form-control, select.form-control):focus {
  border-color: var(--ps-login-primary);
  outline: 2px solid color-mix(in srgb, var(--ps-login-primary-hover) 35%, transparent);
  outline-offset: 1px;
  box-shadow: none;
}

body.gc-user-guest:has(.login-form) :where(input.form-control, textarea.form-control)::placeholder {
  color: var(--ps-login-muted);
  font: inherit;
  line-height: inherit;
  opacity: 1;
}

body.gc-user-guest:has(.login-form) .form-buttons {
  display: flex;
  width: 100%;
  margin: 8px 0 0;
  gap: 16px;
  flex-direction: column;
  overflow: visible;
}

body.gc-user-guest:has(.login-form) .form-buttons::before,
body.gc-user-guest:has(.login-form) .form-buttons::after {
  display: none;
}

body.gc-user-guest:has(.login-form) .form-buttons > .xdget-container {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
}

body.gc-user-guest:has(.login-form) :where(.btn-success, .btn-primary, .btn-enter) {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 16px 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 100px;
  background: var(--ps-login-primary);
  color: #fff;
  font: 600 14px/20px var(--ps-login-font);
  text-decoration: none;
  box-shadow: -37px 21px 8.5px rgba(59,72,131,.01), -21px 12px 7.5px rgba(59,72,131,.05), -9px 5px 5.5px rgba(59,72,131,.09), -2px 1px 3px rgba(59,72,131,.1);
  transition: background-color 160ms ease;
}

body.gc-user-guest:has(.login-form) :where(.btn-success, .btn-primary, .btn-enter):hover:not(:disabled) {
  background: var(--ps-login-primary-hover);
  color: #fff;
}

body.gc-user-guest:has(.login-form) :where(.btn-success, .btn-primary, .btn-enter):disabled {
  border-color: #eef0f4;
  background: #eef0f4;
  color: #888ea1;
  box-shadow: none;
  cursor: default;
  opacity: 1;
}

body.gc-user-guest:has(.login-form) .btn-remind,
body.gc-user-guest:has(.login-form) .btn-logout,
body.gc-user-guest:has(.login-form) .remind-block .btn-link {
  align-self: center;
  margin: 0;
  padding: 0;
  float: none !important;
  border: 0;
  background: transparent;
  color: var(--ps-login-primary);
  font: 600 14px/20px var(--ps-login-font);
  text-decoration: none;
}

body.gc-user-guest:has(.login-form) :where(.btn-remind, .btn-logout, .btn-register, .btn-login, .remind-block .btn-link):hover {
  color: var(--ps-login-primary-hover);
  text-decoration: none;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form) .xdget-socialUserFormField {
  display: flex;
  width: 100%;
  align-self: center;
  margin: 0;
  align-items: center;
  justify-content: center;
  float: none !important;
}

body.gc-user-guest:has(.login-form) :where(.login-form, .register-form) .xdget-socialUserFormField > div {
  display: flex;
  width: auto;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block {
  order: 4;
  margin: 16px 0 0;
  color: var(--ps-login-muted);
  font: 400 13px/18px var(--ps-login-font);
  letter-spacing: 0;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block > label {
  display: flex;
  margin: 0;
  gap: 8px;
  align-items: flex-start;
  font: inherit;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  border: 1.5px solid var(--ps-login-border);
  border-radius: 4px;
  background: var(--ps-login-surface) center/14px 14px no-repeat;
  transition: border-color 160ms ease, background-color 160ms ease;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block input[type="checkbox"]:checked {
  border-color: var(--ps-login-primary) !important;
  background-color: var(--ps-login-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M382-242 154-470l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E");
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block input[type="checkbox"]:not(:disabled):hover {
  border-color: var(--ps-login-primary-hover);
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block .checkbox-text,
body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block .checkbox-text > span {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ps-login-muted);
  font: inherit !important;
  letter-spacing: inherit !important;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block a {
  color: var(--ps-login-primary);
  text-decoration: none;
}

body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block a:hover,
body.gc-user-guest:has(.login-form) .global-confirm-checkbox-block a:focus-visible {
  color: var(--ps-login-primary-hover);
}

body.gc-user-guest:has(.login-form) :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ps-login-primary-hover);
  outline-offset: 2px;
}

body.gc-user-guest:has(.login-form) .text-center:has(> .xdget-html) {
  width: min(100%, 480px);
  margin: 16px 0 0;
}

body.gc-user-guest:has(.login-form) .text-center:has(> .xdget-html) a {
  color: var(--ps-login-muted);
  font: 400 13px/18px var(--ps-login-font);
  text-decoration: none;
}

body.gc-user-guest:has(.login-form) .text-center:has(> .xdget-html) a:hover,
body.gc-user-guest:has(.login-form) .text-center:has(> .xdget-html) a:focus-visible {
  color: var(--ps-login-primary);
}

body.gc-user-guest:has(.login-form) .has-error .form-control,
body.gc-user-guest:has(.login-form) .form-control.error {
  border-color: var(--ps-login-danger);
}

body.gc-user-guest:has(.login-form) :where(.help-block, .error, .form-error) {
  margin: 4px 0 0;
  color: var(--ps-login-danger);
  font: 400 13px/18px var(--ps-login-font);
}

body.gc-user-guest:has(.login-form) .cookies-notification {
  right: 24px;
  bottom: 24px;
  left: auto !important;
  width: min(480px, calc(100% - 48px));
  padding: 16px;
  border: 1px solid #dfe2e8;
  border-radius: 16px;
  background: var(--ps-login-surface);
  color: var(--ps-login-text);
  font: 400 14px/20px var(--ps-login-font);
  box-shadow: 0 8px 32px rgba(28, 28, 30, .08);
  transform: none !important;
}

body.gc-user-guest:has(.login-form) .cookies-notification__content {
  display: flex;
  gap: 16px;
  align-items: center;
}

body.gc-user-guest:has(.login-form) .cookies-notification__content__text {
  flex: 1 1 auto;
}

body.gc-user-guest:has(.login-form) .cookies-notification__actions {
  flex: 0 0 auto;
}

body.gc-user-guest:has(.login-form) .cookies-notification__actions__button {
  min-width: 72px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 100px;
  background: var(--ps-login-primary);
  color: #fff;
  font: 600 14px/20px var(--ps-login-font);
  text-transform: uppercase;
}

body.gc-user-guest:has(.login-form) .cookies-notification__actions__button:hover {
  background: var(--ps-login-primary-hover);
}

@media (max-width: 700px) {
  body.gc-user-guest:has(.login-form) .main-page-container {
    min-height: 100dvh;
    padding: 32px 14px;
    justify-content: flex-start;
  }

  body.gc-user-guest:has(.login-form) .standard-form.container-center {
    padding: 24px 16px;
    border-radius: 16px;
  }

  body.gc-user-guest:has(.login-form) .cookies-notification {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  body.gc-user-guest:has(.login-form) .cookies-notification__content {
    align-items: stretch;
    flex-direction: column;
  }

  body.gc-user-guest:has(.login-form) .cookies-notification__actions__button {
    width: 100%;
  }

  body.gc-user-guest:has(.login-form) :where(.state-form > h2, .remind-block > h2) {
    font-size: 32px;
    line-height: 34px;
    letter-spacing: -1.1px;
  }
}

@media (min-width: 1441px) {
  body.gc-user-guest:has(.login-form) .main-page-container {
    padding-right: 256px;
    padding-left: 256px;
  }
}

