.auth-preview-body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 36%),
    radial-gradient(circle at bottom right, rgba(34, 211, 238, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 183, 227, 0.58), rgba(194, 236, 255, 0.65));
  color: #243047;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-preview-body::before,
.auth-preview-body::after {
  content: "";
  position: fixed;
  inset: auto;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(18px);
}

.auth-preview-body::before {
  top: 10vh;
  left: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 159, 205, 0.2);
}

.auth-preview-body::after {
  right: -60px;
  bottom: 12vh;
  width: 220px;
  height: 220px;
  background: rgba(139, 188, 255, 0.18);
}

.auth-preview-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-preview-card {
  width: min(100%, 450px);
  min-width: 0;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 30px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(89, 99, 124, 0.18);
}

.auth-preview-header {
  text-align: center;
  margin-bottom: 22px;
}

.auth-preview-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.18);
}

.auth-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-preview-title {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 800;
  color: #58489a;
}

.auth-preview-subtitle {
  margin: 0;
  color: #71819a;
  line-height: 1.5;
}

.auth-preview-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.auth-preview-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.auth-preview-label {
  color: #5e6f8a;
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-preview-input,
.auth-preview-inline-input {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(150, 163, 184, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: #1f2937;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-preview-input:focus,
.auth-preview-inline-input:focus {
  border-color: rgba(99, 102, 241, 0.42);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.auth-preview-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 128px);
  gap: 12px;
  min-width: 0;
}

.auth-preview-captcha {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(150, 163, 184, 0.34);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(244, 247, 255, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #56657d;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #6d7d95;
  font-size: 0.92rem;
}

.auth-preview-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-preview-link {
  color: #6678ff;
  text-decoration: none;
}

.auth-preview-button,
.auth-preview-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
}

.auth-preview-button {
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.22);
}

.auth-preview-secondary {
  color: #4f46e5;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(99, 102, 241, 0.28);
}

.auth-preview-button,
.auth-preview-secondary,
.auth-preview-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.auth-preview-button:hover,
.auth-preview-secondary:hover {
  transform: translateY(-1px);
}

.auth-preview-button:focus-visible,
.auth-preview-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14), 0 12px 28px rgba(99, 102, 241, 0.18);
}

.auth-preview-note {
  margin-top: 18px;
  text-align: center;
  color: #7a879d;
  font-size: 0.9rem;
}

.auth-preview-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(99, 102, 241, 0.08);
  color: #475569;
}

.auth-preview-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  color: #b42318;
}

.auth-preview-status.is-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.register-closed-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.register-closed-card {
  min-width: min(100%, 420px);
  max-width: 560px;
  padding: clamp(26px, 5vw, 38px);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(255, 183, 227, 0.28), rgba(194, 236, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
  text-align: center;
  box-shadow: 0 28px 68px rgba(89, 99, 124, 0.16);
}

.register-closed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #7a6699;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.register-closed-title {
  margin: 18px 0 12px;
  color: #ff6aa9;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.register-closed-copy,
.register-closed-note {
  margin: 0;
  color: #6e7e98;
  line-height: 1.7;
}

.register-closed-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 12px;
  margin: 26px 0 18px;
}

.register-closed-action {
  box-shadow: 0 16px 30px rgba(99, 102, 241, 0.2);
}

.register-closed-secondary {
  background: rgba(255, 255, 255, 0.82);
}

.register-closed-note {
  padding-top: 16px;
  border-top: 1px solid rgba(150, 163, 184, 0.18);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .auth-preview-card {
    padding: 22px;
  }

  .auth-preview-inline {
    grid-template-columns: 1fr;
  }

  .auth-preview-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .register-closed-card {
    padding: 28px 22px;
  }

  .register-closed-actions {
    grid-template-columns: 1fr;
  }
}
