/* Auth pages — login / register, aligned with kuang.woniu.eu.cc */
.site-main:has(.auth-page) {
  max-width: none;
  padding: 0;
  margin: 0;
}

.auth-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: stretch;
  background: #0b1220 center / cover no-repeat;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 10, 24, 0.55) 0%, rgba(8, 10, 24, 0.28) 42%, rgba(76, 29, 149, 0.35) 100%),
    rgba(11, 18, 32, 0.25);
  pointer-events: none;
}

.auth-page .auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 40px;
  align-items: center;
  box-sizing: border-box;
}

.auth-page .auth-intro {
  color: #fff;
  max-width: 520px;
  padding: 12px 8px;
}

.auth-page .auth-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.28);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-page .auth-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.auth-page .auth-intro p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.auth-page .auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #111827;
}

.auth-page .auth-card-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.auth-page .auth-card-sub {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

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

.auth-page .auth-form label {
  display: grid;
  gap: 8px;
}

.auth-page .auth-form .field-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.auth-page .auth-form .field-label .req {
  color: #9c27b0;
  margin-right: 2px;
}

.auth-page .auth-form input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.auth-page .auth-form input:focus {
  border-color: #9c27b0;
  box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.16);
}

.auth-page .auth-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-page .auth-submit {
  width: 100%;
  margin-top: 6px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #9c27b0, #673ab7);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(103, 58, 183, 0.35);
}

.auth-page .auth-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.auth-page .auth-submit:active {
  transform: translateY(0);
}

.auth-page .auth-status {
  min-height: 20px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
  text-align: center;
}

.auth-page .auth-status.is-error {
  color: #dc2626;
}

.auth-page .auth-status.is-ok {
  color: #059669;
}

.auth-page .auth-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
}

.auth-page .auth-switch a {
  color: #9c27b0;
  font-weight: 700;
  text-decoration: none;
}

.auth-page .auth-switch a:hover {
  text-decoration: underline;
}

.auth-page .auth-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 900px) {
  .auth-page .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 48px;
  }

  .auth-page .auth-intro {
    max-width: none;
    text-align: center;
    padding: 0;
  }

  .auth-page .auth-intro p {
    margin: 0 auto;
  }

  .auth-page .auth-card {
    padding: 28px 20px 22px;
  }

  .auth-page .auth-form .field-row {
    grid-template-columns: 1fr;
  }
}
