/* =====================================================================
   EldenMC — schermata "Accesso riservato"
   Usata dalla pagina di manutenzione (Cobalt/maintenance.tpl) e dall'accesso allo StaffCP (Default/auth.tpl).
   Font: Lilita One, Outfit, Inter (SIL Open Font License), ospitati su eldenmc.net
   ===================================================================== */
@font-face { font-family: "Eld Gate Lilita"; src: url("/custom/eldenmc/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Eld Gate Outfit"; font-weight: 100 900; font-display: swap; src: url("/custom/eldenmc/fonts/Outfit-latin.woff2") format("woff2"); }
@font-face { font-family: "Eld Gate Inter"; font-weight: 100 900; font-display: swap; src: url("/custom/eldenmc/fonts/Inter-latin.woff2") format("woff2"); }

body.eld-gate-body {
  margin: 0;
  min-height: 100vh;
  background: #16161a !important;
  font-family: "Eld Gate Inter", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #3d4250;
}
.eld-gate {
  --gate-gold: #fccd31;
  --gate-gold-deep: #f0a51c;
  --gate-ink: #1b1d26;
  --gate-muted: #5d6272;
  --gate-card: rgba(245, 243, 238, 0.96);
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
}
.eld-gate *, .eld-gate *::before, .eld-gate *::after { box-sizing: border-box; }

/* sfondo sfocato */
.eld-gate__bg {
  position: fixed;
  inset: -40px;
  z-index: -2;
  background: #1d1d22 url("/custom/eldenmc/modes/arena.webp") center / cover no-repeat;
  filter: blur(22px) saturate(1.1);
  transform: scale(1.05);
}
.eld-gate::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 30rem at 50% 30%, rgba(252, 190, 49, 0.12), rgba(252, 190, 49, 0) 70%),
    linear-gradient(180deg, rgba(20, 20, 26, 0.45), rgba(20, 20, 26, 0.7));
}

.eld-gate__logo {
  display: block;
  width: clamp(9rem, 22vw, 12.5rem);
  height: auto;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.45));
}

/* card */
.eld-gate__card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 2.25rem 2.25rem 2.1rem;
  border-radius: 16px;
  background: var(--gate-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}
.eld-gate__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, rgba(252, 205, 49, 0), var(--gate-gold), var(--gate-gold-deep), var(--gate-gold), rgba(252, 205, 49, 0));
}
.eld-gate__kicker {
  margin: 0 0 0.35rem;
  font-family: "Eld Gate Outfit", "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gate-gold-deep);
}
.eld-gate__title {
  margin: 0 0 0.9rem;
  font-family: "Eld Gate Lilita", "Lilita One", Impact, sans-serif;
  font-size: clamp(1.9rem, 5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--gate-ink);
}
.eld-gate__text {
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--gate-muted);
}
.eld-gate__text strong { color: var(--gate-ink); font-weight: 600; }

/* messaggi */
.eld-gate__alert {
  margin: 0 0 1.2rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #8a1c1c;
  background: #fde5e3;
  border: 1px solid #f5c2bd;
}
.eld-gate__alert--info { color: #6b4b00; background: #fff4d1; border-color: #f3dc8e; }
.eld-gate__alert ul { margin: 0; padding-left: 1.1rem; }

/* campi */
.eld-gate__field { margin: 0 0 1.15rem; }
.eld-gate__label {
  display: block;
  margin: 0 0 0.45rem;
  font-family: "Eld Gate Outfit", "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gate-ink);
}
.eld-gate__control { position: relative; }
.eld-gate__input {
  display: block;
  width: 100%;
  height: 3.1rem;
  margin: 0;
  padding: 0 1rem;
  border-radius: 10px;
  border: 2px solid #d9d6cf;
  background: #faf9f6;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--gate-ink);
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
/* il tema scuro di Cobalt colora tutti gli input con !important: qui vince la card chiara */
.eld-gate .eld-gate__input {
  background-color: #faf9f6 !important;
  color: var(--gate-ink) !important;
  border: 2px solid #d9d6cf !important;
  -webkit-text-fill-color: var(--gate-ink);
}
.eld-gate__input::placeholder { color: #a3a6ae !important; -webkit-text-fill-color: #a3a6ae; }
.eld-gate .eld-gate__input:focus {
  border-color: var(--gate-gold-deep) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(252, 205, 49, 0.28) !important;
}
/* autocompletamento del browser (Cobalt lo forza scuro) */
.eld-gate .eld-gate__input:-webkit-autofill,
.eld-gate .eld-gate__input:-webkit-autofill:hover,
.eld-gate .eld-gate__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #fffdf5 inset !important;
  -webkit-text-fill-color: var(--gate-ink) !important;
  caret-color: var(--gate-ink);
}
.eld-gate__input--password { padding-right: 3rem; letter-spacing: 0.08em; }
.eld-gate__toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6d7180;
  cursor: pointer;
  transform: translateY(-50%);
}
.eld-gate__toggle:hover { color: var(--gate-ink); background: rgba(0, 0, 0, 0.05); }
.eld-gate__toggle svg { width: 1.15rem; height: 1.15rem; }

.eld-gate__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -0.25rem 0 1.4rem; font-size: 0.84rem; }
.eld-gate__check { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gate-muted); cursor: pointer; }
.eld-gate__check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--gate-gold-deep); }
.eld-gate__link { color: #b07400 !important; font-weight: 600; text-decoration: none !important; }
.eld-gate__link:hover { text-decoration: underline !important; }

/* pulsante */
.eld-gate__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 3.35rem;
  border: 0;
  border-radius: 10px;
  font-family: "Eld Gate Outfit", "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3b2003;
  background: linear-gradient(180deg, #ffe07a 0%, #fcc536 50%, #f0a51c 100%);
  box-shadow: 0 10px 22px rgba(240, 165, 28, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.eld-gate__submit:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(240, 165, 28, 0.42); }
.eld-gate__submit:active { transform: translateY(1px); }
.eld-gate__submit:disabled { cursor: progress; filter: saturate(0.6) brightness(1.05); opacity: 0.75; transform: none; }
.eld-gate__submit:focus-visible, .eld-gate__toggle:focus-visible, .eld-gate__chip:focus-visible { outline: 2px solid var(--gate-ink); outline-offset: 3px; }
.eld-gate__secondary {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gate-muted) !important;
  text-decoration: none !important;
}
.eld-gate__secondary:hover { color: var(--gate-ink) !important; }

/* pillole sotto la card */
.eld-gate__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.eld-gate__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  font-family: "Eld Gate Outfit", "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease;
}
.eld-gate__chip:hover { background: rgba(255, 255, 255, 0.26); }
.eld-gate__chip--plain { border-color: transparent; background: transparent; letter-spacing: 0.06em; text-transform: uppercase; }
.eld-gate__chip img { width: 1.1rem; height: 1.1rem; }

@media (max-width: 480px) {
  .eld-gate__card { padding: 1.9rem 1.35rem 1.7rem; }
  .eld-gate__row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eld-gate__submit, .eld-gate__input { transition: none; }
}
