/* Clean account pages: login, register, and password reset. */
.app-page.auth-body {
  min-height: 100vh;
  color: #121212;
  background:
    radial-gradient(circle at 22px 18px, rgba(255, 114, 22, 0.16) 1px, transparent 1.5px),
    radial-gradient(circle at 120px 88px, rgba(23, 31, 44, 0.08) 1px, transparent 1.5px),
    #f5ecdf;
  background-size: 42px 42px, 86px 86px, auto;
}

.app-page.auth-body .auth-page {
  min-height: calc(100vh - 98px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px) 20px;
}

.app-page.auth-body .auth-card {
  position: relative;
  width: min(100%, 620px);
  min-height: 0;
  padding: 52px 54px 40px;
  text-align: left;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(18, 18, 18, 0.04);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(41, 32, 22, 0.12);
}

.app-page.auth-body .auth-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: inherit;
  font-size: 0;
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(255, 114, 22, 0.16);
}

.app-page.auth-body .auth-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.app-page.auth-body .auth-card .eyebrow,
.app-page.auth-body .auth-card h1,
.app-page.auth-body .auth-tabs,
.app-page.auth-body .auth-form > label:not(.remember-row) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-page.auth-body .auth-copy {
  margin: 0 0 20px;
  color: #708096;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  text-align: left;
}

.app-page.auth-body .auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-page.auth-body .auth-form input[type="text"],
.app-page.auth-body .auth-form input[type="password"],
.app-page.auth-body .auth-form input[type="email"],
.app-page.auth-body .auth-form input[type="tel"] {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  box-shadow: none;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.app-page.auth-body .auth-form input::placeholder {
  color: #9aa7ba;
  font-weight: 800;
}

.app-page.auth-body .auth-form input:focus {
  border-color: #ff7216;
  box-shadow: 0 0 0 4px rgba(255, 114, 22, 0.11);
}

.app-page.auth-body .auth-reset-only,
.app-page.auth-body .auth-register-only,
.app-page.auth-body .email-code-row {
  display: none;
}

.app-page.auth-body .auth-card.is-register .auth-register-only {
  display: block;
}

.app-page.auth-body .auth-card.is-register .email-code-row,
.app-page.auth-body .auth-card.is-reset .email-code-row {
  display: grid;
}

.app-page.auth-body .auth-card.is-register #auth-account {
  display: none;
}

.app-page.auth-body #auth-account,
.app-page.auth-body #auth-username {
  order: 1;
}

.app-page.auth-body #auth-email {
  order: 2;
}

.app-page.auth-body .email-code-row {
  order: 3;
}

.app-page.auth-body #auth-password {
  order: 4;
}

.app-page.auth-body #auth-confirm {
  order: 5;
}

.app-page.auth-body .auth-card.is-register .captcha-row {
  order: 6;
}

.app-page.auth-body .auth-card:not(.is-register) .captcha-row {
  order: 3;
}

.app-page.auth-body .remember-row {
  order: 4;
}

.app-page.auth-body .auth-card.is-register .remember-row {
  order: 7;
}

.app-page.auth-body .auth-submit {
  order: 5;
}

.app-page.auth-body .auth-card.is-register .auth-submit {
  order: 8;
}

.app-page.auth-body .auth-card.is-reset .auth-reset-only,
.app-page.auth-body .auth-card.is-reset .auth-register-only {
  display: none;
}

.app-page.auth-body .captcha-row {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 16px;
}

.app-page.auth-body .email-code-row {
  grid-template-columns: 1fr 148px;
  gap: 16px;
}

.app-page.auth-body .captcha-code {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #151515;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 5px;
  background: #fff8ed;
  border: 1px solid #ffd3b4;
  border-radius: 10px;
  cursor: pointer;
}

.app-page.auth-body .email-code-action {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ff6510;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #ff8a3d;
  border-radius: 10px;
  box-shadow: none;
}

.app-page.auth-body .auth-card.is-reset #auth-account {
  order: 1;
}

.app-page.auth-body .auth-card.is-reset .captcha-row {
  display: none;
}

.app-page.auth-body .auth-card.is-reset .email-code-row {
  order: 2;
}

.app-page.auth-body .auth-card.is-reset #auth-password {
  order: 3;
}

.app-page.auth-body .auth-card.is-reset .auth-submit {
  order: 4;
}

.app-page.auth-body .remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  padding: 0;
  color: #7a8798;
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-page.auth-body .remember-row input {
  width: 15px;
  height: 15px;
  accent-color: #ff7216;
}

.app-page.auth-body .remember-row span {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-page.auth-body .remember-row strong,
.app-page.auth-body .remember-row small {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.app-page.auth-body .auth-card.is-reset .remember-row {
  display: none;
}

.app-page.auth-body .auth-submit {
  width: 100%;
  height: 56px;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7b1a 0%, #ff9f27 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 16px 26px rgba(255, 114, 22, 0.22);
}

.app-page.auth-body .auth-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.app-page.auth-body .auth-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: #a2aabb;
  font-size: 14px;
  font-weight: 800;
}

.app-page.auth-body .auth-links a {
  color: #ff7216;
  font-weight: 900;
  text-decoration: none;
}

.app-page.auth-body .auth-message {
  margin-top: 16px;
  padding: 10px 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  background: #fff8ed;
  border: 1px solid #ffd8bd;
  border-radius: 10px;
}

.app-page.auth-body .auth-message-success {
  color: #057a4d;
  background: #edfff6;
  border-color: #a7f3d0;
}

.app-page.auth-body .auth-message-error {
  color: #b42318;
  background: #fff1f1;
  border-color: #ffc4c4;
}

@media (max-width: 700px) {
  .app-page.auth-body .auth-page {
    align-items: flex-start;
    min-height: auto;
    padding: 22px 20px 46px;
  }

  .app-page.auth-body .auth-card {
    padding: 38px 22px 30px;
    border-radius: 22px;
  }

  .app-page.auth-body .auth-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
  }

  .app-page.auth-body .auth-copy {
    font-size: 14px;
  }

  .app-page.auth-body .captcha-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-page.auth-body .email-code-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-page.auth-body .remember-row span {
    display: block;
  }

  .app-page.auth-body .remember-row small {
    display: none;
  }
}
