.auth-page {
  background: #fff;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.auth-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  gap: 18px;
  height: 80px;
}
.auth-header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.auth-header .text-link {
  font-size: 14px;
  color: #61748c;
}
.auth-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding: 0 28px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}
.auth-art {
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #edf5fb;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 44px 22px;
}
.auth-art-copy {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  max-width: 480px;
}
.auth-art-copy > h2 {
  position: static;
  color: #192e49;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.6px;
  max-width: 460px;
  margin: 0 0 14px;
}
.auth-art-copy > p {
  margin: 0;
  color: #5c7693;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
}
.auth-art > img {
  position: static;
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: calc(100% - 210px);
  margin: auto auto 0;
  align-self: center;
  object-fit: contain;
  object-position: center bottom;
  min-height: 0;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 32px;
  min-height: 0;
  overflow-y: auto;
}
.auth-form-wrap {
  width: 100%;
  max-width: 430px;
}
.auth-form-wrap > h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 750;
  margin-bottom: 28px;
}
.auth-register .auth-form-wrap > h1 {
  font-size: 40px;
}
.auth-form .field {
  margin: 0 0 15px;
}
.auth-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.auth-form input {
  height: 50px;
  background: #f8fafc;
  font-size: 16px;
  margin: 0;
  border-radius: 13px;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-label-row > a {
  font-size: 13px;
  color: #51749d;
  margin-bottom: 7px;
}
.password-strength {
  margin-top: 10px;
}
.password-strength-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.password-strength-bar > span {
  height: 5px;
  border-radius: 99px;
  background: #e3ebf3;
  transition: background 0.2s ease;
}
.password-strength[data-strength="1"] .password-strength-bar > span:nth-child(-n + 1) {
  background: #c45d68;
}
.password-strength[data-strength="2"] .password-strength-bar > span:nth-child(-n + 2) {
  background: #d39a3a;
}
.password-strength[data-strength="3"] .password-strength-bar > span:nth-child(-n + 3) {
  background: #3d86b8;
}
.password-strength[data-strength="4"] .password-strength-bar > span:nth-child(-n + 4) {
  background: #2f8f67;
}
.password-strength-label {
  min-height: 1.25em;
  margin: 7px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: #6b7f98;
}
.password-strength[data-strength="1"] .password-strength-label {
  color: #b5525c;
}
.password-strength[data-strength="2"] .password-strength-label {
  color: #a0782c;
}
.password-strength[data-strength="3"] .password-strength-label {
  color: #2f6f9c;
}
.password-strength[data-strength="4"] .password-strength-label {
  color: #247454;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 3px;
}
.password-toggle > span {
  font-size: 20px;
}
.auth-submit {
  margin-top: 5px;
  height: 52px;
  font-size: 15px;
}
.auth-form .form-error {
  margin: 10px 0;
}
.auth-form .form-error:empty {
  display: none;
}
.auth-switch {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
  font-size: 15px;
  color: #60738c;
}
.auth-switch > a {
  color: #365c88;
  font-weight: 700;
  margin-left: 7px;
}
.auth-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 36px;
  color: #72859c;
  font-size: 12px;
  gap: 14px;
  min-height: 55px;
}
.auth-footer > div {
  display: flex;
  gap: 22px;
}
.auth-footer a:hover {
  color: var(--blue);
}
@media (min-width: 761px) and (max-height: 760px) {
  .auth-page {
    min-height: 570px;
  }
  .auth-header {
    height: 66px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .auth-form-side {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .auth-form-wrap > h1 {
    font-size: 36px;
    margin-bottom: 18px;
  }
  .auth-register .auth-form-wrap > h1 {
    font-size: 34px;
  }
  .auth-form input {
    height: 46px;
  }
  .auth-register .auth-form .field {
    margin-bottom: 10px;
  }
  .auth-form .field {
    margin-bottom: 12px;
  }
  .auth-submit {
    height: 44px;
  }
  .auth-switch {
    margin-top: 17px;
    padding-top: 14px;
  }
  .auth-footer {
    min-height: 45px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
@media (max-width: 1050px) {
  .auth-layout {
    gap: 18px;
    padding: 0 20px;
  }
  .auth-form-side {
    padding-left: 20px;
    padding-right: 20px;
  }
  .auth-art {
    padding: 28px 28px 18px;
  }
  .auth-art-copy > h2 {
    font-size: 36px;
  }
  .auth-art-copy > p {
    font-size: 16px;
  }
  .auth-art > img {
    max-width: 58%;
    max-height: calc(100% - 190px);
  }
  .auth-form-wrap > h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .auth-page {
    min-height: 568px;
  }
  .auth-header {
    height: 66px;
    padding: 14px 22px;
    gap: 8px;
  }
  .auth-header-actions {
    gap: 12px;
  }
  .auth-header .text-link {
    font-size: 0;
    gap: 0;
  }
  .auth-header .text-link > span {
    font-size: 20px;
  }
  .auth-layout {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    flex: 1;
  }
  .auth-art {
    display: none;
  }
  .auth-form-side {
    padding: 22px 0;
    flex: 1;
    align-items: center;
  }
  .auth-form-wrap {
    max-width: 420px;
  }
  .auth-form-wrap > h1,
  .auth-register .auth-form-wrap > h1 {
    font-size: 34px;
    letter-spacing: -1px;
    margin-bottom: 22px;
  }
  .auth-form input {
    font-size: 16px;
    height: 46px;
  }
  .auth-form .field {
    margin-bottom: 14px;
  }
  .auth-footer {
    padding: 12px 20px 18px;
    flex-direction: column;
    gap: 7px;
    font-size: 9px;
    min-height: 58px;
  }
  .auth-footer > div {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .auth-register .auth-form-side {
    padding: 12px 0;
  }
  .auth-register .auth-form input {
    height: 44px;
  }
  .auth-register .auth-form .field {
    margin-bottom: 12px;
  }
  .auth-register .auth-switch {
    margin-top: 18px;
    padding-top: 14px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  .auth-header {
    height: 58px;
  }
  .auth-form-side {
    padding: 13px 0;
  }
  .auth-form-wrap > h1,
  .auth-register .auth-form-wrap > h1 {
    font-size: 30px;
    margin-bottom: 18px;
  }
  .auth-register .auth-form input {
    height: 42px;
  }
  .auth-register .auth-form .field {
    margin-bottom: 10px;
  }
  .auth-submit {
    height: 44px;
  }
  .auth-switch,
  .auth-register .auth-switch {
    margin-top: 15px;
    padding-top: 12px;
  }
  .auth-footer {
    padding-top: 9px;
    padding-bottom: 12px;
    min-height: 52px;
  }
}
.auth-form .field {
  gap: 7px;
}
.auth-form label,
.field-label-row > a {
  margin-bottom: 0;
}
.auth-art > img {
  width: auto;
  height: auto;
  max-width: 62%;
  max-height: calc(100% - 210px);
  inset: auto;
  object-fit: contain;
  object-position: center bottom;
}
.auth-intro {
  font-size: 16px;
  line-height: 1.6;
  color: #6b7f98;
  margin: -10px 0 26px;
}
.auth-form-wrap > h1 {
  margin-bottom: 25px;
}
@media (max-width: 760px) {
  .auth-intro {
    font-size: 15px;
    margin: -8px 0 20px;
  }
  .auth-form-wrap > h1 {
    margin-bottom: 22px;
  }
}
