@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/open-sans-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("assets/open-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  font-family: "Open Sans", Arial, sans-serif;
  color: #000;
  background: #fff;
  font-synthesis: none;
  --blue: #094fe0;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }

.header {
  height: 96px;
  padding: 0 4.6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 142px; height: auto; }
.website {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: color .18s ease;
}
.website:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }

.portal { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 96px); }
.identity {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  padding: clamp(72px, 11.5vh, 150px) 9.2%;
  background: #000;
  color: #fff;
}
h1 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(36px, 3.9vw, 64px);
  line-height: 1.32;
  letter-spacing: -.035em;
  font-weight: 400;
}

.geometry { position: absolute; bottom: 0; right: 0; width: 310px; height: 290px; }
.frame { position: absolute; display: block; width: 186px; height: 186px; border: 1px solid #fff; }
.frame-back { top: 16px; left: 0; opacity: .25; }
.frame-front { top: 61px; left: 45px; opacity: .7; }
.blue-square { position: absolute; bottom: 0; right: 0; width: 139px; height: 139px; background: var(--blue); }

.authentication { display: flex; align-items: center; justify-content: center; padding: 64px 48px; }
.form-wrap { width: 100%; max-width: 390px; padding-top: 14px; }
h2 { margin: 0 0 18px; font-size: 32px; line-height: 1.3; font-weight: 400; letter-spacing: -.025em; }
.invitation { margin: 0 0 40px; color: #626262; font-size: 15px; line-height: 1.7; font-weight: 300; }
.field { margin-bottom: 25px; }
label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 400; }
input {
  width: 100%;
  height: 56px;
  padding: 0 17px;
  border: 1px solid #c7c7c7;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input::placeholder { color: #848484; opacity: 1; }
input:hover { border-color: #777; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input:user-invalid { border-color: #b42318; }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  top: 6px;
  right: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #757575;
  cursor: pointer;
}
.password-toggle:hover { color: var(--blue); }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.submit {
  display: flex;
  width: 100%;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 300;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.submit:hover { background: #0643c1; border-color: #0643c1; }
.submit:active { background: #0538a4; }
.form-status { min-height: 22px; margin: 16px 0 0; color: #626262; font-size: 13px; line-height: 1.6; }

@media (min-width: 1700px) {
  .form-wrap { max-width: 420px; }
  .invitation { font-size: 16px; }
}

@media (max-width: 1000px) {
  .header { height: 80px; }
  .portal { min-height: calc(100svh - 80px); }
  .identity { min-height: 580px; }
  .authentication { padding: 48px 32px; }
  h1 { font-size: clamp(30px, 4.2vw, 42px); }
  h2 { font-size: 28px; }
  .invitation { font-size: 14px; }
  .desktop-break { display: none; }
  .geometry { transform: scale(.8); transform-origin: bottom right; }
}

@media (max-width: 700px) {
  .header { height: 76px; padding: 0 24px; }
  .brand img { width: 127px; }
  .website { font-size: 12px; gap: 7px; }
  .website svg { width: 13px; height: 13px; }
  .portal { display: block; min-height: calc(100svh - 76px); }
  .identity { min-height: 228px; padding: 44px 24px 48px; }
  h1 { font-size: clamp(32px, 7vw, 42px); line-height: 1.25; letter-spacing: -.03em; }
  .geometry { width: 115px; height: 115px; transform: none; }
  .frame { width: 61px; height: 61px; }
  .frame-back { top: 3px; left: 0; }
  .frame-front { top: 25px; left: 22px; }
  .blue-square { width: 51px; height: 51px; }
  .authentication { padding: 38px 24px 18px; }
  .form-wrap { max-width: 420px; padding-top: 0; }
  h2 { font-size: 27px; margin-bottom: 12px; }
  .invitation { margin-bottom: 28px; font-size: 14px; line-height: 1.65; }
  .field { margin-bottom: 20px; }
  .submit { margin-top: 26px; }
}

@media (max-width: 360px) {
  .header { padding-inline: 20px; }
  .brand img { width: 115px; }
  .identity { padding-inline: 20px; }
  h1 { font-size: 31px; }
  .authentication { padding-inline: 20px; }
  .website { gap: 4px; font-size: 11px; }
  .geometry { transform: scale(.8); transform-origin: bottom right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
