.auth-screen {
  min-height: 100vh;
  padding: 48px 20px 56px;
  background: #123FA8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F337F 0%, #123FA8 45%, #2059CE 100%);
}
.auth-screen__decor {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 32rem;
  height: auto;
  transform: translateY(-50%);
  opacity: .14;
  pointer-events: none;
}
.auth-box {
  position: relative;
  width: 100%;
  max-width: 32.5rem;
  padding: 30px 34px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(6, 22, 64, .32);
}
.auth-box__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.auth-box__logo img { width: 47px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.auth-box__logo span {
  font-size: 0.9375rem; font-weight: 600; line-height: 1.22; letter-spacing: .01em; color: var(--ink); text-transform: uppercase;
}
.auth-form { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.auth-field label { font-size: 0.9063rem; font-weight: 600; color: var(--ink-2); }
.auth-field__link { font-size: 0.875rem; font-weight: 500; color: var(--brand); }
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9688rem;
  color: var(--ink);
  outline: none;
}
.auth-field input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.auth-field__box { position: relative; display: flex; }
.auth-field__box input { padding-right: 48px; }
.auth-field__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.auth-field__eye:hover { background: #F2F5FA; color: var(--ink-2); }
.auth-check {
  display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer;
}
.auth-check input {
  width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--brand);
}
.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-submit:hover { background: var(--brand-dark); }
.auth-actions { display: flex; gap: 12px; }
.auth-actions .auth-actions__submit.auth-submit { flex: 1 1 auto; }
.auth-back {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9688rem;
  font-weight: 500;
  cursor: pointer;
}
.auth-title {
  margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); text-align: center;
}
a.auth-back { display: inline-flex; align-items: center; justify-content: center; }
.auth-box__hint {
  margin: 18px 0 0; text-align: center; font-size: 0.9375rem; color: var(--muted);
}
.auth-box__hint a { font-weight: 600; color: var(--brand); }
.auth-captcha {
  padding: 14px 16px; border-radius: 12px; background: #F7F9FC; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px;
}
.auth-captcha__label { font-size: 0.9063rem; color: var(--muted); }
.auth-captcha__row input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 8px; background: #fff; font-size: 1rem; color: var(--ink); outline: none;
}
.auth-captcha__row input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.auth-captcha__row { display: flex; align-items: center; gap: 12px; }
.auth-captcha__task {
  flex: 0 0 auto;
  min-width: 7.5rem;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.auth-screen__back {
  position: relative; font-size: 0.9688rem; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.auth-screen__back:hover { color: #fff; }
@media (max-width: 600px) {
  .auth-screen { padding: 28px 16px 36px; }
  .auth-box { padding: 24px 20px 26px; border-radius: 16px; }
  .auth-screen__decor { display: none; }
  .auth-actions { flex-direction: column-reverse; }
  .auth-back { width: 100%; }
}

.auth-screen {
  min-height: 100vh;
  padding: 48px 20px 56px;
  background: #123FA8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.auth-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F337F 0%, #123FA8 45%, #2059CE 100%);
}
.auth-screen__decor {
  position: absolute;
  right: 6%;
  top: 50%;
  width: 32rem;
  height: auto;
  transform: translateY(-50%);
  opacity: .14;
  pointer-events: none;
}
.auth-box {
  position: relative;
  width: 100%;
  max-width: 32.5rem;
  padding: 30px 34px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(6, 22, 64, .32);
}
.auth-box__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
}
.auth-box__logo img { width: 47px; height: 58px; flex: 0 0 auto; object-fit: contain; }
.auth-box__logo span {
  font-size: 0.9375rem; font-weight: 600; line-height: 1.22; letter-spacing: .01em; color: var(--ink); text-transform: uppercase;
}
.auth-form { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.auth-field label { font-size: 0.9063rem; font-weight: 600; color: var(--ink-2); }
.auth-field__link { font-size: 0.875rem; font-weight: 500; color: var(--brand); }
.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9688rem;
  color: var(--ink);
  outline: none;
}
.auth-field input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.auth-field__box { position: relative; display: flex; }
.auth-field__box input { padding-right: 48px; }
.auth-field__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.auth-field__eye:hover { background: #F2F5FA; color: var(--ink-2); }
.auth-check {
  display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer;
}
.auth-check input {
  width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--brand);
}
.auth-submit {
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.auth-submit:hover { background: var(--brand-dark); }
.auth-actions { display: flex; gap: 12px; }
.auth-actions .auth-actions__submit.auth-submit { flex: 1 1 auto; }
.auth-back {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-3);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9688rem;
  font-weight: 500;
  cursor: pointer;
}
.auth-box__hint {
  margin: 18px 0 0; text-align: center; font-size: 0.9375rem; color: var(--muted);
}
.auth-box__hint a { font-weight: 600; color: var(--brand); }
.auth-captcha {
  padding: 14px 16px; border-radius: 12px; background: #F7F9FC; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px;
}
.auth-captcha__label { font-size: 0.9063rem; color: var(--muted); }
.auth-captcha__row input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 8px; background: #fff; font-size: 1rem; color: var(--ink); outline: none;
}
.auth-captcha__row input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.auth-form[hidden] { display: none; }
.auth-title {
  margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--ink); text-align: center;
}
.auth-captcha__row { display: flex; align-items: center; gap: 12px; }
.auth-captcha__task {
  flex: 0 0 auto;
  min-width: 7.5rem;
  height: 44px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.auth-screen__back {
  position: relative; font-size: 0.9688rem; font-weight: 500; color: rgba(255, 255, 255, .9);
}
.auth-screen__back:hover { color: #fff; }
@media (max-width: 600px) {
  .auth-screen { padding: 28px 16px 36px; }
  .auth-box { padding: 24px 20px 26px; border-radius: 16px; }
  .auth-screen__decor { display: none; }
  .auth-actions { flex-direction: column-reverse; }
  .auth-back { width: 100%; }
}
