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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  background: #000;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-color: #000;
  background-image: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.4) 60%,
      rgba(0, 0, 0, 0.25) 100%
    ),
    url("login-bg.jpg");
  background-size: cover;
  background-position: center top;
  z-index: -1;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.header {
  padding: 20px 3% 0;
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

.logo {
  height: 45px;
  width: auto;
  max-width: 167px;
  display: block;
}

.card-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 5% 80px;
}

.card {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  width: 100%;
  max-width: 450px;
  height: fit-content;
  margin-top: 60px;
  padding: 60px 68px 40px;
}

@media (max-width: 740px) {
  .card {
    margin-top: 0;
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    max-width: 100%;
    padding: 48px 5% 40px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.85);
  }

  .header {
    padding: 16px 4%;
  }

  .card-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 380px) {
  .card {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.card h1 {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.2;
}

.err {
  background: #e87c03;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  min-height: 50px;
  height: 50px;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  background: #333;
  color: #fff;
  outline: none;
  appearance: none;
}

.field input:focus {
  outline: 2px solid #fff;
  outline-offset: 0;
}

.field input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0;
}

.field input::placeholder {
  color: #8c8c8c;
  opacity: 1;
}

.btn {
  width: 100%;
  min-height: 48px;
  height: 48px;
  margin-top: 24px;
  background: #e50914;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  background: #f40612;
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  color: #b3b3b3;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember input {
  width: 16px;
  height: 16px;
  min-height: auto;
  accent-color: #b3b3b3;
}

.meta {
  margin-top: 16px;
  font-size: 14px;
  color: #b3b3b3;
}

.meta a,
.options-row a {
  color: #b3b3b3;
  text-decoration: none;
}

.meta a:hover,
.options-row a:hover {
  text-decoration: underline;
}

.meta.small {
  font-size: 16px;
  margin-top: 16px;
  color: #737373;
}

.meta.small a {
  color: #fff;
}

.footer {
  padding: 32px 0 48px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  color: #737373;
  font-size: 16px;
}

.footer-inner {
  padding: 0 4%;
}

.footer-inner > p {
  margin-bottom: 24px;
  font-size: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  margin-bottom: 24px;
}

@media (max-width: 740px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-grid a {
  color: #737373;
  text-decoration: underline;
  font-size: 14px;
}

.lang-wrap {
  margin-top: 20px;
}

.lang-wrap select {
  background: transparent;
  color: #737373;
  border: 1px solid #737373;
  padding: 14px 26px 14px 14px;
  font-size: 14px;
  border-radius: 2px;
  min-width: 140px;
  max-width: 100%;
  cursor: pointer;
}

.code-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 16px;
}

.recaptcha-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.4;
  color: #8c8c8c;
}

.recaptcha-note a {
  color: #0071eb;
  text-decoration: none;
}

.recaptcha-note a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}