
html,
body {
  min-height: 100%;
}

body[data-page^="auth-"] {
  overflow: hidden;
}

.auth-shell {
  width: 100vw;
  height: 100vh;
  min-width: 900px;
  min-height: 620px;
  padding: 0;
  background:
    radial-gradient(circle at 100% 0,var(--hnt-dark-soft),transparent 42%),
    radial-gradient(circle at 0 100%,var(--hnt-border-medium),transparent 44%),
    linear-gradient(115deg,var(--hnt-page-base) 0%,var(--hnt-page-middle) 58%,var(--hnt-border-strong) 100%);
}

.auth-frame {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 43.5% 56.5%;
  overflow: hidden;
  border: .5px solid var(--hnt-border-soft);
  border-radius: 25px;

}

.auth-left {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 78px minmax(0,1fr) 55px;
  padding: 0 clamp(30px,3.4vw,62px);

}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hnt-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.6px;
}

.auth-brand-mark {
  width: 38px;
  height: 31px;
  fill: currentColor;
}

.auth-brand img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}

.auth-primary:hover,
.auth-primary:focus-visible {
  background: var(--hnt-brand-red);
  color: var(--hnt-text-on-dark);
  outline: none;
}

.auth-social button:hover,
.auth-social button:focus-visible,
.auth-options > button:hover,
.auth-options > button:focus-visible,
.auth-footer a:hover,
.auth-footer a:focus-visible {
  color: var(--hnt-brand-red);
  outline: none;
}

.auth-social button:hover,
.auth-social button:focus-visible,
.auth-field button:hover,
.auth-field button:focus-visible {
  background: var(--hnt-brand-red-soft);
}

.auth-mobile-close {
  width: 39px;
  height: 39px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: var(--hnt-surface-control);
}

.auth-mobile-close svg,
.auth-field button svg,
.auth-check svg,
.auth-security-note svg,
.auth-recovery-toggle svg,
.auth-back svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-center {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 16px 0;
}

.auth-center::-webkit-scrollbar {
  display: none;
}

.auth-content {
  width: min(100%,clamp(255px,26.5vw,410px));
}

.auth-heading {
  margin-bottom: 20px;
  text-align: center;
}

.auth-heading h1 {
  margin: 0;
  color: var(--hnt-text);
  font-size: clamp(25px,2.15vw,39px);
  font-weight: 400;
  letter-spacing: -.04em;
}

.auth-heading p {
  margin: 6px 0 0;
  color: var(--hnt-text-muted);
  font-size: 9px;
}

.auth-form {
  display: grid;
  gap: 11px;
}

.auth-register {
  gap: 8px;
}

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

.auth-field > span {
  padding-left: 15px;
  color: var(--hnt-text-soft);
  font-size: 8px;
}

.auth-field > div {
  min-height: 47px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  padding: 0 13px 0 16px;
  border: .5px solid var(--hnt-border-soft);
  border-radius: 24px;
  background: var(--hnt-surface-input);
  transition: .16s ease;
}

.auth-field > div:focus-within {
  border-color: var(--hnt-brand-red);
  background: var(--hnt-surface-card-strong);
  box-shadow: 0 0 0 4px var(--hnt-brand-red-soft);
}

.auth-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hnt-text);
  font: inherit;
  font-size: 9px;
}

.auth-field input::placeholder {
  color: var(--hnt-text-muted);
}

.auth-field button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hnt-text-muted);
  cursor: pointer;
}

.auth-field > small {
  min-height: 10px;
  padding-left: 15px;
  color: var(--hnt-danger);
  font-size: 7px;
}

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

.auth-options > button {
  border: 0;
  background: transparent;
  color: var(--hnt-brand-red);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.auth-options b {
  font-weight: 400;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--hnt-text-soft);
  font-size: 8px;
  line-height: 1.45;
  cursor: pointer;
}

.auth-check input {
  position: absolute;
  opacity: 0;
}

.auth-check > i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--hnt-surface-input);
  color: transparent;
}

.auth-check input:checked + i {
  background: var(--hnt-dark);
  color: var(--hnt-text-on-dark);
}

.auth-check a {
  color: var(--hnt-brand-red);
}

.auth-terms {
  padding-top: 2px;
}

.auth-primary {
  min-height: 45px;
  border: 0;
  border-radius: 23px;
  background: var(--hnt-dark);
  color: var(--hnt-text-on-dark);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.auth-divider {
  position: relative;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hnt-text-muted);
  font-size: 7px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--hnt-border);
}

.auth-divider span {
  position: relative;
  padding: 0 9px;
  background: var(--hnt-surface-card-strong);
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 7px;
}

.auth-social button {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: .5px solid var(--hnt-border-soft);
  border-radius: 21px;
  background: var(--hnt-surface-control);
  color: var(--hnt-text);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.auth-apple {
  color: var(--hnt-dark);
  font-size: 10px;
}

.auth-google {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hnt-surface-input);
  color: var(--hnt-brand-red);
  font-size: 9px;
  font-weight: 600;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--hnt-text-muted);
  font-size: 8px;
}

.auth-footer a {
  color: var(--hnt-brand-red);
  text-decoration: none;
}

.auth-footer nav {
  display: flex;
  gap: 14px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-photo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 15px 15px 15px 0;
  border-radius: 25px;
  background: var(--hnt-surface-panel);
}

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

.auth-photo-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-radius: 0 0 0 34px;
}

.auth-security-note {
  min-height: 66px;
  display: grid;
  grid-template-columns: 43px minmax(0,1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 20px;
  background: var(--hnt-surface-panel);
}

.auth-security-note > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--hnt-surface-control);
  color: var(--hnt-brand-red);
}

.auth-security-note > div {
  display: grid;
  gap: 3px;
}

.auth-security-note strong {
  font-size: 9px;
  font-weight: 500;
}

.auth-security-note small {
  color: var(--hnt-text-muted);
  font-size: 7px;
}

.auth-code {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 6px;
}

.auth-code input {
  width: 100%;
  height: 53px;
  border: .5px solid var(--hnt-border-soft);
  border-radius: 17px;
  outline: 0;
  background: var(--hnt-surface-input);
  color: var(--hnt-text);
  text-align: center;
  font: inherit;
  font-size: 20px;
}

.auth-code input:focus {
  border-color: var(--hnt-brand-red);
  box-shadow: 0 0 0 4px var(--hnt-brand-red-soft);
}

.auth-code-error {
  min-height: 11px;
  color: var(--hnt-danger);
  font-size: 7px;
}

.auth-recovery-toggle {
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: .5px solid var(--hnt-border-soft);
  border-radius: 21px;
  background: transparent;
  color: var(--hnt-text-soft);
  font: inherit;
  font-size: 8px;
  cursor: pointer;
}

.auth-backup {
  margin-top: -2px;
}

@media (min-width: 1450px) {
  .auth-left {
    grid-template-rows: 92px minmax(0,1fr) 68px;
  }

  .auth-heading {
    margin-bottom: 25px;
  }

  .auth-field > div {
    min-height: 54px;
  }

  .auth-primary {
    min-height: 52px;
  }

  .auth-social button {
    min-height: 47px;
  }
}

@media (max-width: 950px) {
  body[data-page^="auth-"] {
    overflow: auto;
  }

  .auth-shell {
    min-width: 0;
    height: auto;
    min-height: 100vh;
    padding: 10px;
  }

  .auth-frame {
    min-height: calc(100vh - 20px);
    grid-template-columns: 1fr;
  }

  .auth-left {
    min-height: calc(100vh - 20px);
  }

  .auth-photo {
    display: none;
  }

  .auth-mobile-close {
    display: grid;
  }
}

@media (max-width: 560px) {
  .auth-left {
    padding: 0 20px;
  }

  .auth-footer nav {
    display: none;
  }

  .auth-content {
    width: 100%;
  }
}
