.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image: url("../img/blur-c.png");
  background-repeat: no-repeat;
  background-position: 50% -220px;
  background-size: 1200px auto;
  color: var(--body);
}

.login-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--brand-blue);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-150%);
}

.login-skip:focus {
  transform: translateY(0);
}

.login-header {
  padding: 24px 0 10px;
}

.login-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.login-header .brand__logo--email {
  height: 46px;
}

.login-header__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid rgba(66, 133, 244, .22);
  border-radius: 100px;
  background: rgba(255, 255, 255, .74);
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.login-header__link:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.login-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 34px 0 54px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  align-items: center;
  gap: 54px;
}

.login-intro {
  max-width: 610px;
}

.login-intro h1 {
  max-width: 590px;
  margin: 18px 0 16px;
  font-size: 54px;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0;
}

.login-intro > p {
  max-width: 540px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

.login-benefits {
  max-width: 540px;
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.login-benefits li {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.login-benefits__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 133, 244, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .84);
  color: var(--brand-blue);
  box-shadow: 0 12px 24px -22px rgba(31, 49, 79, .5);
}

.login-benefits__icon svg {
  width: 19px;
  height: 19px;
}

.login-benefits b,
.login-benefits small {
  display: block;
}

.login-benefits b {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.login-benefits small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.login-intro__signature {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 27px;
  color: #718096;
  font-size: 12px;
}

.login-intro__status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #09bd81;
  box-shadow: 0 0 0 4px rgba(1, 248, 159, .16);
}

.login-card {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 7px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.login-card > p:first-of-type {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14.5px;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #f8fbff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.login-field input::placeholder {
  color: var(--muted-2);
}

.login-field input:hover {
  border-color: #c7d2de;
}

.login-field input:focus {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, .13);
}

.login-field input[aria-invalid="true"] {
  border-color: var(--brand-red);
  background: #fffafa;
}

.login-field__error {
  min-height: 14px;
  display: block;
  color: #ce2626;
  font-size: 11.5px;
  line-height: 1.2;
}

.login-password {
  position: relative;
  display: block;
}

.login-password input {
  padding-right: 50px;
}

.login-field__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  transform: translateY(-50%);
}

.login-field__toggle:hover {
  background: var(--blue-tint);
  color: var(--brand-blue);
}

.login-field__toggle:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1px;
}

.login-field__eye {
  width: 19px;
  height: 19px;
}

.login-field__eye--hide {
  display: none;
}

.login-field__toggle.is-visible .login-field__eye--show {
  display: none;
}

.login-field__toggle.is-visible .login-field__eye--hide {
  display: block;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand-blue);
}

.login-options a,
.login-card__foot a {
  color: var(--blue-dark);
  font-family: var(--font-head);
  font-weight: 500;
}

.login-options a:hover,
.login-card__foot a:hover {
  color: var(--teal);
}

.login-submit {
  min-height: 48px;
  margin-top: 2px;
}

.login-submit svg {
  width: 18px;
  height: 18px;
}

.login-submit.is-loading {
  cursor: wait;
  opacity: .8;
}

.login-form__status {
  min-height: 18px;
  color: var(--brand-blue);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.login-form__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  color: #91a0b0;
  font-size: 11.5px;
  text-align: center;
}

.login-form__security svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.login-card__foot {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.login-footer {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.login-footer__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-footer a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .login-main {
    align-items: start;
    padding-top: 26px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-intro {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .login-intro h1,
  .login-intro > p,
  .login-benefits {
    margin-inline: auto;
  }

  .login-intro h1 {
    font-size: 44px;
  }

  .login-benefits {
    max-width: 520px;
    text-align: left;
  }

  .login-intro__signature {
    justify-content: center;
  }

  .login-card {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .login-header {
    padding-top: 18px;
  }

  .login-header__in {
    align-items: flex-start;
    flex-direction: column;
  }

  .login-header .brand__logo--email {
    height: 40px;
  }

  .login-header__link {
    min-height: 36px;
    padding: 8px 14px;
  }

  .login-main {
    padding: 22px 0 40px;
  }

  .login-intro h1 {
    font-size: 34px;
  }

  .login-intro > p {
    font-size: 15.5px;
  }

  .login-benefits {
    margin-top: 24px;
  }

  .login-benefits small {
    display: none;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .login-card__foot {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .login-footer__in {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .login-intro h1 {
    font-size: 30px;
  }

  .login-card {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-skip,
  .login-header__link,
  .login-field input,
  .login-submit {
    transition: none;
  }
}
