/* ===================================================================
   Delupe — modern / futuristic login theme for caddy-security
   Loaded AFTER the plugin's base CSS, so these rules win.
   Targets the real template classes: .app-page, .app-container,
   .logo-box, .logo-img, .app-inp-box, .app-inp-txt, .app-btn-pri, etc.
   =================================================================== */

:root {
  --bg-0: #05070d;
  --bg-1: #0a1120;
  --accent: #22d3ee;      /* cyan  */
  --accent-2: #6366f1;    /* indigo */
  --glow: rgba(34, 211, 238, 0.55);
  --text: #e5edff;
  --muted: #8ea0c4;
  --card: rgba(15, 23, 42, 0.55);
  --border: rgba(120, 160, 255, 0.18);
}

/* ---- Page background: deep space + moving glow + subtle grid ---- */
html.h-full, html, body.h-full, body {
  background: var(--bg-0) !important;
  color: var(--text) !important;
  font-family: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}

.app-page {
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(1000px 500px at 90% 110%, rgba(34, 211, 238, 0.22), transparent 60%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0)) !important;
  overflow: hidden;
}

/* faint tech grid overlay */
.app-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* slow pulsing halo behind the card */
.app-page::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow), transparent 60%);
  filter: blur(40px);
  opacity: 0.35;
  animation: pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.45; transform: translate(-50%, -50%) scale(1.08); }
}

.app-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ---- The login card: glassmorphism + neon edge ---- */
.app-container {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  padding: 2.5rem 2.25rem !important;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(34, 211, 238, 0.12) !important;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: rise 0.5s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Logo + title ---- */
.logo-box { text-align: center; margin-bottom: 1.75rem; }
.logo-img {
  max-height: 56px;
  width: auto;
  margin: 0 auto 0.75rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.35));
}
.logo-txt {
  color: var(--text) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  font-size: 1.15rem !important;
  text-transform: uppercase;
}

/* ---- Labels ---- */
label, .text-primary-700 {
  color: var(--muted) !important;
  letter-spacing: 0.03em;
  font-size: 0.9rem !important;
}

/* ---- Inputs ---- */
.app-inp-box {
  background: rgba(2, 6, 20, 0.6) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.app-inp-box:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18) !important;
}
.app-inp-prf-img, .app-inp-prf-img i {
  color: var(--accent) !important;
}
.app-inp-txt {
  background: transparent !important;
  color: var(--text) !important;
  border: none !important;
}
.app-inp-txt::placeholder { color: #55688f !important; }
input:-webkit-autofill {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(2, 6, 20, 0.9) inset !important;
}

/* ---- Buttons ---- */
.app-btn-pri {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #041018 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3) !important;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.app-btn-pri:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.45) !important;
}
.app-btn-pri:active { transform: translateY(0); }

.app-btn-sec {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}

/* ---- Links (register / forgot / support) ---- */
.text-primary-600, a.text-primary-600 {
  color: var(--accent) !important;
  transition: color .2s;
}
.text-primary-600:hover { color: #7ee8fa !important; }
