@import url(../media/fonts/favorit-pro/font.css);

body {
  display: flex;
  margin: 0;
  background: #ff0508;
  font-family: 'Favorit Pro';
  font-size: 16px;
  line-height: 24px;
  color: #212121;
}

button, input {
  width: 372px;
  height: 48px;
  border-radius: 8px;
  box-sizing: border-box;
}

input {
  padding-left: 12px;
  border: 2px solid #c9c9c9;
}

input:focus {
  outline: 0 none;
  outline-offset: 0;
  box-shadow: 0 0 0 2.1px #B0BDF8;
  border: 1px solid #212121;
}

button {
  border: none;
  background-color: #eeeeee;
  cursor: pointer;
}

input, button, label {
  font-family: 'Favorit Pro';
  font-size: 16px;
  line-height: 24px;
}

button, label {
  color: #9e9e9e;
}

.input-container {
  position: relative;
  margin-bottom: 16px;
}

.input-container input {
  width: 100%;
}

.input-container label {
  position: absolute;
  left: 13px;
  top: 24px;
  transform: translateY(-50%);
  transition: .3s;
}

.input-container label > span {
  color: #eb3b69;
}

.input-container input:not(:placeholder-shown),
.input-container input:autofill {
  padding-top: 16px;
}

.input-container input:not(:placeholder-shown) + label,
.input-container input:autofill + label {
  font-size: 12px;
  line-height: 16px;
  top: 12px;
}

.left {
  color: white;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 428px;
  min-width: 428px;
}

.left main {
  background-image: url("../media/background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  height: 100%;
}

.aside-logo {
  padding: 32px 41px;
}

.aside-logo img {
  display: block;
  height: 54px;
}

.stripes {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  height: 100%;
}

.stripes > div {
  background-color: #ff0508;
}

.stripes > div:nth-child(1) {
  height: 15%;
}

.stripes > div:nth-child(2) {
  height: 5%;
}

.stripes > div:nth-child(3) {
  height: 9%;
}

.stripes > div:nth-child(4) {
  height: 0;
}

.left footer {
  padding: 32px 40px;
}

.left footer .footer-top-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.icons {
  display: flex;
  gap: 16px;
}

.icons a {
  background-color: white;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info {
  font-size: 12px;
  line-height: 16px;
}

.right {
  background: white;
  border-radius: 32px 0 0 32px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 360px;
  overflow-y: auto;
}

.right a.text-link {
  display: inline-block;
  color: #3d56cb;
  text-decoration: none;
}

.right a.text-link:hover {
  transform: translateX(1px);
}

.right header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 32px 32px 0 32px;
}

.main-logo {
  padding: 8px;
}

.main-logo img {
  display: block;
  height: 52px;
}

.lang {
  width: 52px;
  height: 32px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 400;
  color: black;
  background: #eeeeee;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

form {
  --padding: 32px;
  display: flex;
  flex-direction: column;
  max-width: calc(481px + 2 * var(--padding));
  width: 100%;
  padding: 0 var(--padding);
  box-sizing: border-box;
}

form:valid .submit-button,
.input-container:has(input:autofill) + .input-container:has(input:autofill) ~ .submit-button {
  color: white;
  background-color: #13161c;
  cursor: pointer;
}

form:valid .submit-button:hover {
  background-color: #4c5058;
}

form .secondary-button:hover {
  cursor: pointer;
}

.form-title {
  font-size: 40px;
  line-height: 40px;
  margin-top: 0;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.form-secondary {
  font-size: 25px;
  line-height: 25px;
  margin-top: 0;
}

.form-error {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: start;
  gap: 14px;
  background-color: #FDEBF0;
  margin-bottom: 32px;
  padding: 12px;
  border-radius: 8px;
}

.password-container {
  margin-bottom: 8px;
}

.submit-button {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 32px;
  transition: .3s;
  cursor: default;
}

.secondary-button {
  width: 100%;
  margin-bottom: 32px;
  transition: .3s;
  cursor: default;
  color: #000000
}

.register {
  margin: 0;
}

.input-icon {
  position: absolute;
  top: 24px;
  transform: translateY(-50%);
  right: 17px;
  cursor: pointer;
}

form.has-error .form-error {
  display: flex;
}

form.has-error input {
  border: 1px solid #EB3B69;
}

p.welcome-text {
  font-size: 18px;
}

p.not-you-text {
  font-size: 16px;
  color: #616161;
}

.right footer {
  padding: 32px 40px 48px 40px;
  border-top: 1px solid #E0E0E0;
  width: 100%;
  box-sizing: border-box;
}

.right footer .footer-top-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

@media (max-width: 1599px) { /* Меньше 1600px */
  .left {
    width: 386px;
    min-width: 386px;
  }
}

@media (max-width: 1439px) { /* Меньше 1440px */
  .left {
    width: 342px;
    min-width: 342px;
  }
}

@media (max-width: 1023px) { /* Меньше 1024px */
  .left {
    display: none;
  }
  .right {
    border-radius: 0;
  }
  .main-logo img {
    height: 42px;
  }
  .form-title {
    font-size: 32px;
    line-height: 32px;
  }
}

@media (max-width: 767px) { /* Меньше 768px */
  .right header,
  .right form,
  .right footer {
    padding: 25px 16px;
  }
  .main-logo {
    padding: 0;
  }
}

@media (min-width: 1024px) { /* Больше 1023px */
  .right .main-logo, .right footer {
    visibility: hidden;
  }
}
