.auth-page {
  --auth-accent: #ed5426;
  --auth-ink: #171a1c;
  background: #f6f4f0;
  color: var(--auth-ink);
  min-height: 100vh;
}

.auth-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e5e3;
  display: flex;
  height: 66px;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 74px);
}

.auth-header > a:last-child {
  color: #4d5255;
  font-size: 14px;
}

.auth-page:not(.account-page) .auth-header > a:last-child {
  align-items: center;
  border: 1px solid #dedfdf;
  border-radius: 50%;
  display: flex;
  font-size: 25px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.auth-logo {
  align-items: center;
  display: inline-flex;
}

.auth-logo img {
  display: block;
  height: auto;
  width: 170px;
}

.auth-logo .site-logo__on-dark {
  display: none;
}

.auth-logo > span {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.auth-logo strong {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.auth-logo small {
  font-size: 6px;
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(590px, 1.08fr);
  min-height: calc(100vh - 66px);
}

.auth-visual {
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.auth-visual > img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.auth-visual > span {
  background: linear-gradient(180deg, rgba(12, 17, 15, 0.08), rgba(10, 15, 13, 0.75));
  inset: 0;
  position: absolute;
}

.auth-visual > div {
  bottom: clamp(42px, 7vw, 90px);
  color: #fff;
  left: clamp(28px, 5vw, 72px);
  max-width: 510px;
  position: absolute;
  right: 28px;
}

.auth-visual small,
.auth-panel__head small,
.account-card > small {
  color: var(--auth-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.auth-visual h1 {
  font-size: clamp(37px, 4.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 15px 0 20px;
}

.auth-visual p {
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 450px;
}

.auth-panel {
  align-self: center;
  margin: 0 auto;
  max-width: 660px;
  padding: 52px clamp(35px, 6vw, 88px) 48px;
  width: 100%;
}

.auth-tabs {
  border-bottom: 1px solid #dfe0de;
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.auth-tabs a {
  color: #85898b;
  font-size: 14px;
  font-weight: 600;
  padding: 0 3px 13px;
  position: relative;
}

.auth-tabs a.active {
  color: var(--auth-ink);
}

.auth-tabs a.active::after {
  background: var(--auth-accent);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.auth-panel__head h2 {
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -0.04em;
  margin: 11px 0 12px;
}

.auth-panel__head p {
  color: #72777a;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 30px;
}

.auth-form {
  display: grid;
  gap: 18px 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-field--full,
.auth-password-note {
  grid-column: 1 / -1;
}

.auth-field > span {
  color: #4c5154;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

.auth-field input {
  background: #fff;
  border: 1px solid #d9dbda;
  border-radius: 7px;
  font-size: 14px;
  height: 48px;
  outline: 0;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.auth-field input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(237, 84, 38, 0.11);
}

.auth-password-field,
.account-password-field {
  display: block;
  position: relative;
}

.auth-password-field input,
.account-password-field input { padding-right: 50px; }

.field-password-toggle {
  align-items: center;
  background: transparent;
  color: #707b76;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 40px;
}

.field-password-toggle:hover,
.field-password-toggle:focus-visible { color: #075044; outline: none; }
.field-password-toggle:focus-visible { border-radius: 4px; box-shadow: 0 0 0 2px rgba(7, 80, 68, .16); }
.field-password-toggle svg { height: 20px; width: 20px; }
.password-eye-hide,
.field-password-toggle[aria-pressed="true"] .password-eye-show { display: none; }
.field-password-toggle[aria-pressed="true"] .password-eye-hide { display: block; }

.auth-field em,
.auth-check em {
  color: #c53225;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
  margin-top: 6px;
}

.auth-password-note {
  color: #85898c;
  font-size: 11px;
  line-height: 1.5;
  margin: -8px 0 0;
}

.auth-check {
  align-items: flex-start;
  color: #63686b;
  display: grid;
  font-size: 12px;
  gap: 0 9px;
  grid-template-columns: auto 1fr;
  line-height: 1.55;
}

.auth-check input {
  accent-color: var(--auth-accent);
  height: 16px;
  margin: 1px 0 0;
  width: 16px;
}

.auth-check em {
  grid-column: 2;
}

.auth-submit {
  align-items: center;
  background: var(--auth-accent);
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  height: 50px;
  justify-content: center;
  margin-top: 2px;
  transition: background-color 160ms ease, transform 160ms ease;
}

.auth-submit span {
  font-size: 19px;
  margin-left: 10px;
}

.auth-submit:hover {
  background: #d8451b;
  transform: translateY(-1px);
}

.auth-form__alert,
.account-message {
  background: #fff0ed;
  border: 1px solid #f1c5b9;
  border-radius: 7px;
  color: #a93623;
  font-size: 12px;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.auth-form__alert p {
  margin: 0;
}

.auth-form__meta {
  align-items: flex-start;
  color: #6f7477;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
}

.auth-form__meta > a {
  color: var(--auth-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.auth-remember .remember-login { font-size: 13px; }
.auth-remember .remember-login input:checked + i { background: var(--auth-accent); border-color: var(--auth-accent); }
.auth-remember .remember-login input:focus-visible + i { box-shadow: 0 0 0 3px rgba(237, 84, 38, .14); }

.auth-switch {
  color: #74797c;
  font-size: 13px;
  margin: 24px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-security {
  border-top: 1px solid #dedfdd;
  color: #929597;
  font-size: 10px;
  line-height: 1.5;
  margin: 29px 0 0;
  padding-top: 17px;
  text-align: center;
}

.account-shell {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 66px);
  padding: 50px 20px;
}

.account-message {
  color: #27683d;
  background: #edf8f0;
  border-color: #bedfc7;
  max-width: 680px;
  width: 100%;
}

.account-card {
  background: #fff;
  border: 1px solid #e0e1df;
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(26, 32, 29, 0.08);
  max-width: 680px;
  padding: 42px;
  width: 100%;
}

.account-avatar {
  align-items: center;
  background: #f8e7df;
  border-radius: 50%;
  color: var(--auth-accent);
  display: flex;
  font-size: 28px;
  height: 68px;
  justify-content: center;
  margin-bottom: 22px;
  width: 68px;
}

.account-card h1 {
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 9px 0 30px;
}

.account-card dl {
  border-bottom: 1px solid #e4e5e3;
  border-top: 1px solid #e4e5e3;
  margin: 0;
}

.account-card dl > div {
  align-items: center;
  border-bottom: 1px solid #e8e9e7;
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.account-card dl > div:last-child {
  border-bottom: 0;
}

.account-card dt {
  color: #808487;
  font-size: 12px;
}

.account-card dd {
  font-size: 14px;
  margin: 0;
}

.account-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
}

.account-actions > a,
.account-actions button {
  border-radius: 23px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 20px;
}

.account-actions > a {
  background: var(--auth-accent);
  color: #fff;
}

.account-actions button {
  background: transparent;
  border: 1px solid #dadcda;
  color: #54595c;
}

@media (max-width: 950px) {
  .auth-layout {
    display: block;
  }

  .auth-visual {
    min-height: 340px;
  }

  .auth-visual > div {
    bottom: 34px;
  }

  .auth-visual h1 {
    font-size: 40px;
  }

  .auth-panel {
    padding-bottom: 70px;
  }
}

@media (max-width: 600px) {
  .auth-header {
    height: 60px;
    padding-inline: 16px;
  }

  .auth-logo strong {
    display: none;
  }

  .auth-logo img {
    width: 145px;
  }

  .auth-layout {
    min-height: calc(100vh - 60px);
  }

  .auth-visual {
    min-height: 280px;
  }

  .auth-visual > div {
    left: 20px;
    right: 20px;
  }

  .auth-visual h1 {
    font-size: 34px;
    margin-block: 10px 13px;
  }

  .auth-visual p {
    font-size: 12px;
  }

  .auth-panel {
    padding: 38px 18px 55px;
  }

  .auth-tabs {
    margin-bottom: 32px;
  }

  .auth-form {
    display: flex;
    flex-direction: column;
  }

  .account-card {
    padding: 28px 20px;
  }

  .account-card h1 {
    font-size: 31px;
  }

  .account-card dl > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
