.auth-body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: var(--color-surface-muted);
}

.auth-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-surface);
}

.auth-shell {
  width: 100%;
  max-width: 360px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-nav {
  width: 100%;
  min-height: 64px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--color-header-bg);
}

.auth-nav--center {
  justify-content: center;
}

.auth-nav--with-back {
  padding: 8px 24px 8px 10px;
}

.auth-logo {
  width: 88px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-logo--centered {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.auth-back {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-back-icon {
  width: 20px;
  height: 20px;
  transform: rotate(-90deg);
}

.auth-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  gap: 24px;
}

.auth-main--register {
  gap: 20px;
}

.auth-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 32px;
}

.auth-overline {
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0.07em;
  font-variant: all-small-caps;
  color: var(--color-primary-dark);
}

.auth-title {
  margin: 0;
  font-weight: 700;
  font-size: 26px;
  line-height: 28px;
  text-align: center;
  color: var(--color-text);
}

.auth-description {
  padding-top: 8px;
}

.auth-description p {
  text-align: center;
}

.auth-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.auth-wide-btn {
  width: 100%;
}

.auth-social-icon {
  width: 20px;
  height: 20px;
}

.auth-separator {
  width: 100%;
  position: relative;
  text-align: center;
}

.auth-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--color-border);
  transform: translateY(-50%);
}

.auth-separator span {
  position: relative;
  display: inline-block;
  padding: 0 8px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form--register {
  gap: 16px;
}

.auth-links {
  padding-top: 8px;
  display: flex;
  justify-content: center;
}

.auth-links--single {
  padding-top: 12px;
}

.auth-links a {
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
  text-decoration: underline;
}

.auth-note-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.auth-note {
  margin: 0;
}

.auth-note--muted {
  font-style: italic;
  color: var(--color-text-muted);
}

.auth-note--small {
  font-size: 13px;
  line-height: 16px;
}

.auth-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-warning-dark);
  font-size: 13px;
  line-height: 16px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.auth-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  position: relative;
}

.auth-checkbox input:checked + .auth-checkbox-box::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: url("../icons/CheckCircle.2388da220d08.svg") center / contain no-repeat;
}

.auth-checkbox span:last-child {
  padding-top: 6px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}

.auth-requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 0;
  margin: 0;
}

.auth-requirements li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}

.auth-requirements img {
  width: 20px;
  height: 20px;
}

.auth-page > footer {
  margin-top: 56px;
}