.auth-body {
  margin: 0;
  padding: clamp(12px, 2vw, 22px);
  min-height: 100dvh;
  background: #090908;
  color: var(--text);
  display: grid;
  place-items: center;
}

.auth-frame {
  width: min(1360px, 100%);
  min-height: min(840px, calc(100dvh - clamp(24px, 4vw, 44px)));
  display: grid;
  grid-template-columns: 48fr 52fr;
  background: #111110;
  border: 1px solid #2b2720;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .68);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4.4vw, 64px);
  background: #111110;
}

.auth-box {
  width: min(100%, 440px);
  margin-inline: auto;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 3vw, 34px);
}

.auth-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
}

.auth-brand span {
  font-size: 19px;
  line-height: 1;
  font-weight: 790;
  letter-spacing: -.062em;
}

.auth-brand small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .31em;
  color: #e0bc76;
  font-weight: 680;
}

.auth-head h1 {
  margin: 0;
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 660;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--text);
}

.auth-accent {
  color: var(--amber);
}

.auth-head p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #a9a59c;
}

.auth-form {
  margin-top: clamp(22px, 2.6vw, 28px);
  display: grid;
  gap: 16px;
}

.auth-form-compact {
  gap: 13px;
  margin-top: 20px;
}

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

.auth-field label {
  font-size: 12.5px;
  font-weight: 590;
  color: #e2dfd7;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #302d27;
  background: #161615;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s ease, background-color .18s ease;
}

.auth-input-wrap input {
  padding-right: 64px;
}

.auth-field input::placeholder {
  color: #706c64;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--amber);
  background: #191816;
}

.auth-field input[aria-invalid="true"] {
  border-color: #b45a4f;
}

.auth-toggle {
  position: absolute;
  right: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a8a399;
  font-size: 12px;
  font-weight: 600;
  transition: color .16s ease, background-color .16s ease;
}

.auth-toggle:hover {
  color: var(--amber);
  background: #22201c;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #b7b3aa;
  cursor: pointer;
  user-select: none;
}

.auth-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin-top: 1px;
  border-radius: 4px;
  border: 1px solid #474137;
  background: #161615;
  flex: none;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: border-color .16s ease, background-color .16s ease;
}

.auth-check input[type="checkbox"]:checked {
  border-color: var(--amber);
  background: #ecc27a;
}

.auth-check input[type="checkbox"]:checked::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #211b11;
  border-bottom: 2px solid #211b11;
  transform: translateY(-1px) rotate(-45deg);
}

.auth-link {
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 560;
  transition: color .16s ease;
}

.auth-link:hover {
  color: #f7ce87;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-feedback {
  margin: 0;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
}

.auth-feedback.is-error {
  background: #251614;
  border: 1px solid #6b342e;
  color: #f3b5ad;
}

.auth-feedback.is-info {
  background: #1e1912;
  border: 1px solid #493c26;
  color: #ebd6ab;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #fbd79b;
  border-radius: 9px;
  background: #ecc27a;
  color: #211b11;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s ease, transform .18s ease, opacity .18s ease;
}

.auth-submit:hover:not(:disabled) {
  background: #f5cd88;
}

.auth-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.auth-submit img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(.18);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: #7c776e;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #292621;
}

.auth-socials {
  display: grid;
  gap: 10px;
}

.auth-social {
  width: 100%;
  min-height: 45px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  border: 1px solid #2e2b25;
  background: #151514;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 570;
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}

.auth-social:hover {
  border-color: #4f4433;
  background: #1a1917;
}

.auth-social-logo {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex: none;
}

.auth-social span {
  flex: 1;
}

.auth-social-arrow {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: .62;
  flex: none;
}

.auth-footer-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: #969188;
}

.auth-footer-note a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.auth-footer-note a:hover {
  color: #f7ce87;
}

.auth-art {
  position: relative;
  min-height: 100%;
  background: #0c0a07;
  overflow: hidden;
}

.auth-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

@media (max-width: 1020px) {
  .auth-frame {
    grid-template-columns: 52fr 48fr;
  }
}

@media (max-width: 820px) {
  .auth-body {
    padding: 14px;
    align-items: start;
  }

  .auth-frame {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .auth-art {
    display: none;
  }

  .auth-panel {
    padding: 32px 22px;
  }
}
