
.auth-main {
  min-height: 100vh;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-image: var(--auth-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,8,10,.42), rgba(10,8,10,.72));
  backdrop-filter: blur(1.5px);
}

.auth-center {
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  padding: 24px 0;
}

.auth-flash-wrap {
  width: 100%;
  margin: 0;
}

.auth-card {
  width: 100%;
  margin: 0 auto;
  background: rgba(7, 4, 6, .92);
  border: 1px solid rgba(240, 236, 105, .35);
  border-radius: 24px;
  padding: 34px 28px 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-family: 'AstralSemi';
  font-size: clamp(2rem, 4vw, 2.3rem);
  line-height: 1.05;
}

.auth-subtitle {
  margin: 12px 0 1.5rem;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
}

.auth-copy {
  margin: 0 0 .5rem;
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  line-height: 1.45;
}

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

.auth-form label {
  font-family: 'AstralSemi';
  font-size: 1rem;
}

.auth-form input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(240,236,105,.2);
  background: rgba(11,11,14,.72);
  color: var(--text);
  padding: .95rem 1rem;
  font-size: 1rem;
}

.auth-form input::placeholder {
  color: #9ea0a8;
}

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

.password-wrap input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .92;
}

.password-toggle img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(95%) sepia(11%) saturate(584%) hue-rotate(325deg) brightness(105%) contrast(93%);
}

.password-strength {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: -2px;
}

.password-strength__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2dbd6e, #4cfe9f);
  transition: width .2s ease;
}

.auth-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-row--between {
  justify-content: space-between;
}

.checkbox-row {
  display: flex;
  gap: .65rem;
  align-items: center;
  color: var(--muted);
  font-size: .98rem;
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

.checkbox-row--terms {
  align-items: flex-start;
  line-height: 1.45;
}

.auth-inline-link {
  color: var(--gold);
  font-family: 'AstralSemi';
}

.auth-submit {
  width: min(240px, 100%);
  margin: .35rem auto 0;
  min-height: 58px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .98rem;
  padding-top: .3rem;
  align-items: center;
}

.auth-links--stack {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: .85rem;
}

.auth-footnote {
  margin-top: .45rem;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.password-rules {
  margin: -.2rem 0 .15rem 1.1rem;
  padding: 0;
  color: #ff7b7b;
  font-size: .94rem;
  line-height: 1.45;
}

.password-rules li {
  margin: 0 0 .12rem;
}

.password-rules li.is-met {
  color: #4cfe9f;
}

.form-error,
.form-success,
.field-error {
  font-size: .95rem;
}

@media (max-width: 640px) {
  .auth-center {
    width: min(96vw, 560px);
    padding: 14px 0;
  }

  .auth-card {
    padding: 24px 18px 20px;
    border-radius: 20px;
  }

  .auth-row--between,
  .auth-links {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .checkbox-row {
    justify-content: center;
  }

  .checkbox-row--terms {
    justify-content: flex-start;
  }

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