/* =====================================================
   GOLDEN PHOENIX – AUTH FORM (SCOPED & SAFE)
   Wirkt NUR auf Seiten mit .gp-auth-form
===================================================== */

/* =====================================================
   1️⃣ HARD RESET – NUR FORMULAR
===================================================== */
.gp-auth-form,
.gp-auth-form * {
  all: unset;
  box-sizing: border-box;
}

/* =====================================================
   2️⃣ FORM CONTAINER
===================================================== */
.gp-auth-form {
  display: block;
  max-width: 520px;
  margin: 80px auto 200px;
  padding: 48px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.05)
  );

  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);

  border-radius: 32px;

  box-shadow:
    0 50px 140px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

/* =====================================================
   3️⃣ LABELS
===================================================== */
.gp-auth-form label {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}

/* =====================================================
   4️⃣ INPUTS / SELECT
===================================================== */
.gp-auth-form input,
.gp-auth-form select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);

  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.95rem;
}

.gp-auth-form input:focus,
.gp-auth-form select:focus {
  outline: none;
  border-color: rgba(245,195,106,0.8);
  box-shadow:
    0 0 0 2px rgba(245,195,106,0.35),
    0 0 22px rgba(245,195,106,0.25);
}

/* =====================================================
   5️⃣ PASSWORT HINT
===================================================== */
.gp-password-hint {
  font-size: 0.85rem;
  margin-top: 6px;
  color: rgba(255,255,255,0.7);
}

.gp-password-hint.good { color: #7CFF9B; }
.gp-password-hint.bad  { color: #FF8A8A; }

/* =====================================================
   6️⃣ BUTTON (PREMIUM, NICHT PLASTISCH)
===================================================== */
.gp-auth-form button {
  display: block;
  width: 100%;
  margin-top: 24px;

  padding: 14px 22px;
  border-radius: 18px;
  border: none;
  cursor: pointer;

  font-size: 1rem;
  font-weight: 600;
  color: #1a1200;

  background: linear-gradient(135deg, #f5c36a, #ff9f2d);

  box-shadow:
    0 18px 40px rgba(245,195,106,0.45),
    inset 0 1px 0 rgba(255,255,255,0.55);

  position: relative;
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.gp-auth-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 70px rgba(245,195,106,0.55),
    inset 0 1px 0 rgba(255,255,255,0.6);
  filter: brightness(1.05);
}

.gp-auth-form button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255,255,255,0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gp-auth-form button:hover::after {
  opacity: 1;
}

/* =====================================================
   7️⃣ LOGIN – CHECKBOX
===================================================== */
.gp-auth-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}

.gp-auth-form input[type="checkbox"] {
  all: unset;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.6);
  cursor: pointer;
  position: relative;
}

.gp-auth-form input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #f5c36a, #ff9f2d);
  border-color: rgba(245,195,106,0.9);
}

.gp-auth-form input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #1a1200;
  font-weight: 700;
}

/* =====================================================
   8️⃣ LOGIN LINKS
===================================================== */
.gp-auth-form .gp-auth-links,
.gp-auth-form a[href*="reset"],
.gp-auth-form a[href*="passwort"] {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}

.gp-auth-form .gp-auth-links a:hover,
.gp-auth-form a[href*="reset"]:hover,
.gp-auth-form a[href*="passwort"]:hover {
  color: #f5c36a;
  text-decoration: underline;
}

/* =====================================================
   9️⃣ BODY / VIEWPORT FIX – NUR AUTH-SEITEN
===================================================== */
body:has(.gp-auth-form) {
  min-height: 100vh;
  overflow-y: auto;
}
