body.theme-fantasy-auth {
  min-height: 100vh;
  margin: 0;
  font-family: 'Satoshi', sans-serif;
  color: #f5f1ff;
  background:
    radial-gradient(circle at 12% 8%, rgba(164, 111, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 150, 112, 0.10), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(86, 96, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #090d1d 0%, #0b1023 42%, #090d1d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-shell {
  width: 100%;
  max-width: 460px;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 2rem 2.35rem;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 21, 46, 0.96), rgba(10, 13, 30, 0.98));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 183, 138, 0.08), transparent 22%),
    radial-gradient(circle at 78% 14%, rgba(153, 107, 255, 0.12), transparent 26%);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-header {
  margin-bottom: 1.6rem;
  text-align: center;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffe4ca;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
}

.auth-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.auth-subtitle {
  margin: 0.85rem auto 0;
  max-width: 26ch;
  color: rgba(245, 241, 255, 0.72);
  line-height: 1.55;
  font-size: 0.98rem;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 120, 120, 0.22);
  background: rgba(120, 22, 35, 0.28);
  color: #ffd6dc;
  text-align: center;
  font-weight: 600;
  font-size: 0.94rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  padding-bottom: 0.3rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8efe6;
  padding-left: 0.1rem;
}

.auth-input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-input::placeholder {
  color: rgba(245, 241, 255, 0.34);
}

.auth-input:focus {
  border-color: rgba(255, 207, 168, 0.48);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(255, 207, 168, 0.08);
}

.auth-submit {
  margin-top: 0.9rem;
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, #e8b36d, #d99b52);
  color: #1d130d;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  box-shadow: 0 12px 28px rgba(217, 155, 82, 0.22);
}

.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 16px 34px rgba(217, 155, 82, 0.28);
}

.auth-submit:focus-visible {
  outline: 2px solid #ffd7b8;
  outline-offset: 3px;
}

.auth-footer {
  margin-top: 1.7rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 241, 255, 0.5);
}

@media (max-width: 576px) {
  body.theme-fantasy-auth {
    padding: 1rem;
  }

  .auth-shell {
    max-width: 100%;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.5rem;
    border-radius: 22px;
  }

  .auth-header {
    margin-bottom: 1.4rem;
  }

  .auth-title {
    font-size: 2.2rem;
  }

  .auth-subtitle {
    max-width: 100%;
    font-size: 0.94rem;
  }

  .auth-input {
    min-height: 46px;
  }

  .auth-submit {
    min-height: 48px;
  }
}