@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
* {
  font-family: "Inter", serif;
}

:root {
  --body-bg: #fafafa;
  --black: #231F20;
  --silver: #8993A4;
  --grey: #9F9F9F;
  --grey-1: #D6DBE2;
  --red-dark: #65071D;
  --prot-blue: #2B97F7;
  --field-bg: #F0F2F5;
  --transition: .2s;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  background: #FAFAFA;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}

header {
  flex: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--grey-1);
  background: #fff;
}
header .header__logo {
  height: 44px;
}

footer {
  flex: 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 20px 40px;
  border-top: 1px solid var(--gains);
  background: #fff;
}
footer .footer__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer .footer__copy {
  font-size: 14px;
  line-height: 20px;
  color: var(--black);
}
footer .footer__links-cont {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  white-space: nowrap;
}
footer .footer__dot {
  color: var(--silver);
}
footer .footer__links-title,
footer .footer__link {
  font-size: 12px;
  line-height: 16px;
  color: var(--silver);
}
footer .footer__link {
  transition: var(--transition);
  text-decoration-color: transparent;
}
footer .footer__link:hover {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--silver);
}
@media screen and (max-width: 980px) {
  footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}
@media screen and (max-width: 600px) {
  footer .footer__dot {
    display: none;
  }
}

.btn-no {
  animation: btn_no 1s;
}

@keyframes btn_no {
  0% {
    transform: translateX(0%);
  }
  20% {
    transform: translateX(10%);
  }
  40% {
    transform: translateX(-15%);
  }
  60% {
    transform: translateX(15%);
  }
  80% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(0%);
  }
}
#auth {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 24px;
}
#auth .auth__gr {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 424px;
  padding: 40px;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 0 8px rgba(35, 31, 32, 0.08);
}
#auth .auth__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#auth .auth__gr-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  color: var(--black);
}
#auth .auth__gr-subtitle {
  font-size: 18px;
  line-height: 24px;
  color: var(--black);
}
#auth input {
  display: block;
  height: 56px;
  min-width: 0;
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid var(--grey-1);
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--field-bg);
  color: var(--black);
}
#auth input[name=phone] {
  width: 100%;
  font-size: 16px;
}
#auth input::placeholder {
  color: var(--grey);
}
#auth input:not:disabled:focus, #auth input:not:disabled:active {
  border-color: var(--black);
}
#auth button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--grey-1);
}
#auth button:disabled {
  background: var(--grey);
}
#auth button:not(:disabled) {
  background: var(--red-dark);
}
#auth .auth__msg {
  font-size: 16px;
  line-height: 24px;
  color: var(--silver);
}
#auth .auth__msg:empty {
  display: none;
}

#auth__code .auth__gr-userphone {
  color: var(--silver);
}
#auth__code .auth__gr-userphone a {
  transition: var(--transition);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  color: var(--prot-blue);
}
#auth__code .auth__gr-userphone a:hover {
  text-decoration-color: var(--prot-blue);
}
#auth__code .auth__code-fgroup {
  display: flex;
  gap: 9px;
}
#auth__code .auth__code-fgroup input {
  height: 80px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

#auth__getcode {
  justify-self: center;
  align-self: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--prot-blue);
}