/* Страница входа (Figma блок 15Б). */

@font-face {
  font-family: "Exo2";
  src: url("fonts/Exo2/Exo2-VariableFont_wght.9f535b44a4f5.ttf") format("truetype");
}

@font-face {
  font-family: "PT Sans";
  src: url("fonts/pt_sans/pt_sans.6d4b817a866c.ttf") format("truetype");
}

@font-face {
  font-family: "PT Sans Bold";
  src: url("fonts/pt_sans/pt_sans_bold.7ba573d6c1b7.ttf") format("truetype");
}

:root {
  --login-bg: #fafafc;
  --login-border: #edecf1;
  --login-accent: #5f7fdb;
  --login-accent-text: #e2e9ff;
  --login-text: #3d3d3d;
  --login-brand-red: #c51c23;
  --login-footer-bg: #f1f1f1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.login-page {
  font-family: "PT Sans", Arial, sans-serif;
  color: var(--login-text);
  background: var(--login-bg);
}

.login-page__layout {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.login-page__topbar {
  height: 87px;
  border-bottom: 1px solid var(--login-border);
  background: var(--login-bg);
  flex-shrink: 0;
}

.login-page__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 32px;
}

.login-page__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.login-page__brand-logo {
  width: 160px;
  height: 173px;
  object-fit: contain;
}

.login-page__brand-title {
  margin: 12px 0 0;
  font-family: Exo2, "PT Sans Bold", sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--login-brand-red);
  text-transform: uppercase;
}

.login-page__brand-subtitle {
  margin: 8px 0 0;
  font-family: Exo2, "PT Sans Bold", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: #000;
  text-transform: uppercase;
}

.login-page__card {
  width: 100%;
  max-width: 610px;
  padding: 32px 54px 28px;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  background: #fff;
  backdrop-filter: blur(2px);
}

.login-page__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-page__field {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.login-page__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--login-text);
  text-align: center;
}

.login-page__input {
  width: 100%;
  max-width: 501px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--login-border);
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #000;
}

.login-page__input:focus {
  outline: 2px solid rgba(95, 127, 219, 0.35);
  outline-offset: 1px;
}

.login-page__password {
  position: relative;
  width: 100%;
  max-width: 501px;
}

.login-page__password .login-page__input {
  padding-right: 44px;
}

.login-page__password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent url("../images/icons/visibility_off_FILL0_wght400_GRAD0_opsz24.e19c577ced16.png") center / 20px no-repeat;
  cursor: pointer;
}

.login-page__password-toggle.is-visible {
  background-image: url("../images/icons/visibility_FILL0_wght400_GRAD0_opsz24.a640fe42d213.png");
}

.login-page__agreements {
  width: 100%;
  max-width: 501px;
  margin: 0 auto 16px;
}

.login-page__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 14px;
  cursor: pointer;
}

.login-page__checkbox input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--login-accent);
}

.login-page__checkbox-text {
  font-size: 14px;
  line-height: 1.35;
  color: #000;
}

.login-page__checkbox-text a {
  color: inherit;
  text-decoration: underline;
}

.login-page__captcha {
  width: 100%;
  max-width: 501px;
  margin: 0 auto 16px;
}

.login-page__license {
  width: 100%;
  max-width: 501px;
  margin: 0 auto 20px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--login-text);
  text-align: center;
}

.login-page__license a {
  color: var(--login-accent);
}

.login-page__submit-wrap {
  display: flex;
  justify-content: center;
}

.login-page__submit {
  min-width: 194px;
  height: 36px;
  padding: 0 24px;
  border: 1px solid var(--login-border);
  border-radius: 5px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  color: var(--login-text);
  cursor: default;
}

.login-page__submit.is-active {
  border-color: var(--login-accent);
  background: var(--login-accent);
  color: var(--login-accent-text);
  cursor: pointer;
}

.login-page__footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 120px;
  padding: 24px 38px;
  background: var(--login-footer-bg);
  border-radius: 4px 4px 0 0;
}

.login-page__footer-logo {
  width: 66px;
  height: 71px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-page__footer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-page__footer-title {
  font-family: Exo2, "PT Sans Bold", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--login-brand-red);
  text-transform: uppercase;
}

.login-page__footer-subtitle {
  font-family: Exo2, "PT Sans Bold", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .login-page__brand-title {
    font-size: 36px;
  }

  .login-page__brand-subtitle {
    font-size: 24px;
  }

  .login-page__card {
    padding: 24px 20px;
  }
}

.cookie_block {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 10000;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.cookie_block.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  padding: 20px 0;
}

.cookie_block a {
  color: #fff;
}

.cookie_block .button {
  display: inline-block;
  margin-left: 12px;
  min-width: 140px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 5px;
  background: #4caf50;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
