.auth-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(13, 8, 3, 0.98), rgba(28, 18, 6, 0.94), rgba(13, 8, 3, 0.98));
  opacity: 1;
}

.auth-page::after {
  display: none;
}

.auth-page .auth-wrapper {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 72px);
  padding: 46px 16px 64px;
}

.auth-page .auth-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 470px;
  padding: 38px 38px 34px;
  border: 1px solid rgba(255, 159, 28, 0.68);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(27, 22, 20, 0.91), rgba(8, 11, 18, 0.94));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.58),
    0 0 35px rgba(255, 112, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-page .auth-card::before {
  display: none;
}

.auth-page .auth-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 5px;
  background: linear-gradient(90deg, #ff5500, #ff9f1c, #ffd166, #ff6a00);
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.72);
}

.auth-page .auth-card > * {
  position: relative;
  z-index: 3;
}

.auth-page .auth-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 17px;
  border: 1px solid rgba(255, 177, 66, 0.48);
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.1);
  box-shadow: 0 0 26px rgba(255, 122, 0, 0.2);
}

.auth-page .auth-icon i {
  font-size: 2rem;
}

.auth-page .auth-card h1 {
  width: max-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 8px 22px;
  border: 1px solid rgba(255, 218, 159, 0.44);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 89, 0, 0.92), rgba(255, 159, 28, 0.92));
  box-shadow: 0 8px 22px rgba(255, 91, 0, 0.22);
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-page .auth-card .auth-subtitle {
  margin-bottom: 25px;
  color: rgba(255, 238, 215, 0.66);
}

.auth-page .auth-card .form-control {
  height: 54px;
  border: 1px solid rgba(255, 159, 28, 0.23);
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-page .auth-card .form-control:hover {
  border-color: rgba(255, 159, 28, 0.44);
}

.auth-page .auth-card .form-control:focus {
  border-color: #ff8a00;
  background: rgba(7, 10, 17, 0.96);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.13), 0 0 20px rgba(255, 122, 0, 0.12);
}

.auth-page .auth-btn {
  min-height: 52px;
  border: 1px solid rgba(255, 214, 145, 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5900, #ff9f1c 58%, #dc5400);
  box-shadow: 0 10px 24px rgba(255, 91, 0, 0.22);
  text-transform: uppercase;
}

.auth-page .auth-btn:hover {
  background: linear-gradient(135deg, #ff7a00, #ffb33b);
  box-shadow: 0 13px 28px rgba(255, 122, 0, 0.38);
}

.auth-page .auth-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-page .auth-footer a {
  color: #ffad33;
}

.auth-page .pwd-field .password-toggle {
  z-index: 4;
  color: #ffad33;
}

.auth-page .cf-turnstile {
  margin: 4px 0 12px;
}

@media (max-width: 520px) {
  .auth-page::before {
    background:
      radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.14), transparent 42%),
      linear-gradient(180deg, rgba(13, 8, 3, 0.98), rgba(28, 18, 6, 0.94), rgba(13, 8, 3, 0.98));
  }

  .auth-page .auth-wrapper {
    align-items: flex-start;
    padding: 24px 10px 40px;
  }

  .auth-page .auth-card {
    padding: 32px 20px 26px;
    border-radius: 14px;
  }

  .auth-page .auth-card::before { display: none; }
}

/* Premium forest-fantasy auth polish. Frontend-only. */
.auth-page {
  color: #f8fafc;
}

.auth-page .auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-page .auth-card,
.gift-page .gift-exchange-card {
  border-color: rgba(255, 184, 77, 0.42);
  background:
    radial-gradient(circle at 14% 0%, rgba(249, 115, 22, 0.2), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(13, 19, 32, 0.95), rgba(5, 9, 20, 0.96));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.54), 0 0 34px rgba(249, 115, 22, 0.12);
}

.auth-page .auth-card h1 {
  color: #111827;
  background: linear-gradient(135deg, #f97316, #ffb347 58%, #ffd166);
  text-shadow: none;
}

.auth-page .auth-card .form-control {
  border-color: rgba(255, 184, 77, 0.22);
  background: rgba(5, 9, 20, 0.9);
}

.auth-page .auth-card .form-control:focus {
  border-color: #ffb347;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16), 0 0 20px rgba(249, 115, 22, 0.14);
}

.auth-page .auth-btn,
.gift-page .gift-submit-btn {
  color: #111827;
  background: linear-gradient(135deg, #f97316, #ffb347 58%, #ffd166);
}

.auth-page .pwd-field .form-control {
  padding-right: 52px;
}

.auth-page .pwd-field .password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.1);
  color: #ffb347;
}

.auth-page .pwd-field .password-toggle:focus-visible {
  outline: 3px solid rgba(255, 179, 71, 0.42);
  outline-offset: 2px;
}

.auth-page .pwd-field .password-toggle.hidden::after {
  background: #ffb347;
}

.gift-page .gift-exchange-card h2 {
  color: #fff7ed;
}

.gift-page .reward-title,
.gift-page .reward-list li i {
  color: #ffb347;
}

.gift-page .reward-list li {
  color: #dbeafe;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
