/* ==========================================================================
   Club NEXUS — administration sign-in (admin-login.php)
   Layers, back to front: aurora · node network canvas · film grain · content.
   ========================================================================== */

@property --al-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --al-bg: #05040f;
  --al-ink: #f4f2ff;
  --al-muted: rgba(226, 220, 255, .62);
  --al-faint: rgba(226, 220, 255, .38);
  --al-line: rgba(255, 255, 255, .09);
  --al-blue: #4f8bff;
  --al-grad: linear-gradient(110deg, #1e9bf0 0%, #2f5fe0 28%, #7a32e8 58%, #c536c8 82%, #ee3a8f 100%);
  --al-ease: cubic-bezier(.2, .8, .2, 1);
  --al-ease-io: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.al {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  color: var(--al-ink);
  background: var(--al-bg);
  font: 400 15px/1.55 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
svg { display: block; }

/* ---------- Background layers ---------- */
.al-aurora { position: fixed; inset: 0; z-index: -4; overflow: hidden; pointer-events: none; }
.al-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; mix-blend-mode: screen; will-change: transform; }
.al-aurora i:nth-child(1) { width: 55vmax; height: 55vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #1e6ff0, transparent 62%); animation: alDrift1 22s var(--al-ease-io) infinite alternate; }
.al-aurora i:nth-child(2) { width: 48vmax; height: 48vmax; right: -16vmax; top: 10vmax; background: radial-gradient(circle, #7a32e8, transparent 62%); animation: alDrift2 26s var(--al-ease-io) infinite alternate; }
.al-aurora i:nth-child(3) { width: 42vmax; height: 42vmax; left: 30vmax; bottom: -26vmax; background: radial-gradient(circle, #ee3a8f, transparent 64%); opacity: .32; animation: alDrift3 30s var(--al-ease-io) infinite alternate; }
@keyframes alDrift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes alDrift2 { to { transform: translate(-12vmax, 8vmax) scale(.9); } }
@keyframes alDrift3 { to { transform: translate(-16vmax, -10vmax) scale(1.2); } }

.al-network { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; pointer-events: none; }

.al-grain {
  position: fixed;
  inset: -50%;
  z-index: -2;
  opacity: .06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: alGrain 1.2s steps(6) infinite;
}
@keyframes alGrain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* ---------- Top & footer ---------- */
.al-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 44px 0; animation: alFade .8s .1s var(--al-ease) both; }
.al-brand img { height: 28px; width: auto; }
.al-clock {
  padding: 6px 12px;
  border: 1px solid var(--al-line);
  border-radius: 999px;
  color: var(--al-muted);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.al-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 22px 20px 26px; color: var(--al-faint); font-size: 12.5px; animation: alFade .8s 1s var(--al-ease) both; }
.al-foot a { text-decoration: none; transition: color .2s; }
.al-foot a:hover { color: var(--al-ink); }

/* ---------- Main grid ---------- */
.al-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px 44px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 470px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

/* ---------- Intro column ---------- */
.al-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--al-line);
  border-radius: 999px;
  color: #cfe0ff;
  background: rgba(79, 139, 255, .07);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: alUp .8s .15s var(--al-ease) both;
}

.al-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.al-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #4ade80; animation: alPulse 2s ease-out infinite; }
@keyframes alPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.al-title { margin: 22px 0 0; font: 600 clamp(44px, 5.6vw, 80px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.al-title > span { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: top; }
.al-title i { display: inline-block; font-style: normal; transform: translateY(105%); animation: alRise 1s var(--al-ease) forwards; }
.al-title > span:nth-child(1) i { animation-delay: .25s; }
.al-title > span:nth-child(2) i { animation-delay: .35s; }
.al-title > span:nth-child(3) i { animation-delay: .45s; }
@keyframes alRise { to { transform: none; } }

.al-gradient {
  background: linear-gradient(100deg, #6fb6ff, #8f7bff 30%, #d77bff 55%, #ff7bb5 80%, #6fb6ff);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: alRise 1s .45s var(--al-ease) forwards, alShine 9s 1.5s linear infinite !important;
}
@keyframes alShine { to { background-position: -220% 0; } }

.al-lead { max-width: 44ch; margin: 22px 0 0; color: var(--al-muted); font-size: 17.5px; line-height: 1.6; animation: alUp .9s .6s var(--al-ease) both; }

.al-features { display: grid; gap: 12px; max-width: 520px; margin: 38px 0 0; padding: 0; list-style: none; }
.al-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--al-line);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  backdrop-filter: blur(10px);
  transition: transform .45s var(--al-ease), border-color .3s, background .3s;
  animation: alUp .9s var(--al-ease) both;
}
.al-features li:nth-child(1) { animation-delay: .75s; }
.al-features li:nth-child(2) { animation-delay: .85s; }
.al-features li:nth-child(3) { animation-delay: .95s; }
.al-features li:hover { transform: translateX(6px); border-color: rgba(79, 139, 255, .35); background: rgba(79, 139, 255, .06); }
.al-features svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: #8fbaff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.al-features strong { display: block; font-size: 15px; font-weight: 600; }
.al-features span { display: block; color: var(--al-muted); font-size: 13.5px; }

/* ---------- Card ---------- */
.al-card {
  position: relative;
  padding: 1px;
  border-radius: 22px;
  background:
    conic-gradient(from var(--al-angle), transparent 0deg, rgba(79, 139, 255, .95) 50deg, rgba(197, 54, 200, .9) 110deg, rgba(238, 58, 143, .7) 150deg, transparent 200deg 360deg),
    rgba(255, 255, 255, .08);
  box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .75), 0 0 80px -30px rgba(79, 139, 255, .45);
  transform-style: preserve-3d;
  transition: transform .5s var(--al-ease);
  animation: alSpin 7s linear infinite, alCardIn 1.1s .3s var(--al-ease) both;
  --mx: 50%;
  --my: 0%;
}
@keyframes alSpin { to { --al-angle: 360deg; } }
@keyframes alCardIn { from { opacity: 0; translate: 0 28px; scale: .97; filter: blur(10px); } }

.al-card-inner {
  position: relative;
  overflow: hidden;
  padding: 38px 40px 30px;
  border-radius: 21px;
  background: linear-gradient(180deg, rgba(20, 18, 50, .94), rgba(9, 8, 26, .96));
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}

.al-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(79, 139, 255, .13), transparent 42%);
  transition: opacity .4s;
}
.al-card:hover .al-card-inner::before { opacity: 1; }
.al-card-inner > * { position: relative; z-index: 1; }
.al-card-inner.is-shake { animation: alShake .55s cubic-bezier(.36, .07, .19, .97); }
@keyframes alShake { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 3px 0; } 30%, 50%, 70% { translate: -6px 0; } 40%, 60% { translate: 6px 0; } }

.al-lock {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(79, 139, 255, .22), rgba(197, 54, 200, .16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 30px -8px rgba(79, 139, 255, .5);
  animation: alUp .8s .55s var(--al-ease) both;
}
.al-lock svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.al-shackle { transform-box: fill-box; transform-origin: 85% 100%; transition: transform .6s var(--al-ease); }
.al-lock.is-unlocked .al-shackle { transform: translateY(-4px) rotate(-14deg); }
.al-lock.is-unlocked { box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .5), 0 12px 34px -6px rgba(74, 222, 128, .55); transition: box-shadow .4s; }

.al-card h2 { margin: 22px 0 6px; font: 600 27px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.02em; animation: alUp .8s .62s var(--al-ease) both; }
.al-sub { margin: 0; color: var(--al-muted); font-size: 14.5px; animation: alUp .8s .68s var(--al-ease) both; }

/* ---------- Alerts ---------- */
.al-alert { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; animation: alDrop .45s var(--al-ease) both; }
.al-alert[hidden] { display: none; }
.al-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.al-alert.is-error { color: #ffd2de; background: rgba(255, 70, 120, .1); box-shadow: inset 0 0 0 1px rgba(255, 90, 140, .3); }
.al-alert.is-ok { color: #c9f7d9; background: rgba(74, 222, 128, .09); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .3); }
.al-alert code { padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .3); font-size: 12.5px; }
@keyframes alDrop { from { opacity: 0; translate: 0 -8px; } }

/* ---------- Fields ---------- */
.al-form { margin-top: 10px; }
.al-form > *:nth-child(n) { animation: alUp .7s var(--al-ease) both; }
.al-form > :nth-child(3) { animation-delay: .72s; }
.al-form > :nth-child(4) { animation-delay: .78s; }
.al-form > :nth-child(5) { animation-delay: .84s; }
.al-form > :nth-child(6) { animation-delay: .9s; }
.al-form > :nth-child(n+7) { animation-delay: .96s; }

.al-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.al-field { position: relative; margin-top: 14px; }

.al-field input {
  width: 100%;
  height: 58px;
  padding: 24px 16px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, .035);
  font: 500 15.5px "Inter", sans-serif;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.al-field input:hover { border-color: rgba(255, 255, 255, .18); }
.al-field input:focus { border-color: rgba(79, 139, 255, .6); background: rgba(79, 139, 255, .06); box-shadow: 0 0 0 4px rgba(47, 95, 224, .16); }
.al-field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #16143c inset; caret-color: #fff; transition: background-color 9999s; }

.al-field label {
  position: absolute;
  left: 17px;
  top: 19px;
  color: var(--al-muted);
  font-size: 15px;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--al-ease), color .25s;
}

.al-field input:focus + label,
.al-field input:not(:placeholder-shown) + label,
.al-field input:-webkit-autofill + label { transform: translateY(-11px) scale(.76); color: #9cc4ff; }

.al-field > i {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--al-grad);
  transform: scaleX(0);
  transition: transform .45s var(--al-ease);
}
.al-field input:focus ~ i { transform: scaleX(1); }
.al-field.is-invalid input { border-color: rgba(255, 90, 140, .6); box-shadow: 0 0 0 4px rgba(255, 70, 120, .12); }

.al-password input { padding-right: 54px; }
.al-eye {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: var(--al-muted);
  background: transparent;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.al-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.al-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.al-eye-slash { stroke-dasharray: 23; stroke-dashoffset: 23; transition: stroke-dashoffset .35s var(--al-ease); }
.al-eye[aria-pressed="true"] .al-eye-slash { stroke-dashoffset: 0; }

.al-caps { margin: 8px 4px 0; color: #ffd28a; font-size: 12.5px; font-weight: 600; }
.al-caps[hidden] { display: none; }

.al-strength { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 6px; margin: 10px 2px 0; }
.al-strength span { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); transition: background .35s, transform .35s var(--al-ease); }
.al-strength em { margin-left: 6px; color: var(--al-faint); font-size: 12px; font-style: normal; white-space: nowrap; }
.al-strength[data-level="1"] span:nth-child(-n+1) { background: #ff5c8a; }
.al-strength[data-level="2"] span:nth-child(-n+2) { background: #ffb340; }
.al-strength[data-level="3"] span:nth-child(-n+3) { background: #4f8bff; }
.al-strength[data-level="4"] span:nth-child(-n+4) { background: #4ade80; }

/* ---------- Submit ---------- */
.al-submit {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 56px;
  margin-top: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--al-grad);
  background-size: 180% 100%;
  box-shadow: 0 16px 40px -10px rgba(90, 60, 225, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  font: 600 15.5px "Inter", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-position .7s var(--al-ease), box-shadow .3s, transform .15s;
}
.al-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .9s var(--al-ease);
}
.al-submit:hover { background-position: 100% 0; box-shadow: 0 20px 50px -10px rgba(197, 54, 200, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.al-submit:hover::before { transform: translateX(120%); }
.al-submit:active { transform: scale(.985); }
.al-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.al-submit:disabled { cursor: progress; }
.al-submit > * { grid-area: 1 / 1; transition: opacity .25s, transform .35s var(--al-ease); }
.al-spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: alSpinner .7s linear infinite; }
@keyframes alSpinner { to { transform: rotate(360deg); } }
.al-check { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; opacity: 0; }
.al-submit.is-loading .al-submit-text { opacity: 0; transform: translateY(-8px); }
.al-submit.is-loading .al-spinner { opacity: 1; }
.al-submit.is-success { background: linear-gradient(110deg, #10b981, #22c55e); box-shadow: 0 16px 44px -10px rgba(34, 197, 94, .7); }
.al-submit.is-success .al-submit-text, .al-submit.is-success .al-spinner { opacity: 0; }
.al-submit.is-success .al-check { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s .1s var(--al-ease), opacity .1s; }
.al-submit.is-locked { background: rgba(255, 255, 255, .08); box-shadow: none; color: var(--al-muted); cursor: not-allowed; }

/* ---------- Links & security ---------- */
.al-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: 13.5px; animation: alFade .8s 1s var(--al-ease) both; }
.al-links a { position: relative; color: var(--al-muted); text-decoration: none; transition: color .2s; }
.al-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--al-ease); }
.al-links a:hover { color: #fff; }
.al-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.al-security { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--al-line); color: var(--al-faint); font-size: 12px; animation: alFade .8s 1.05s var(--al-ease) both; }
.al-security svg { width: 15px; height: 15px; flex: none; fill: none; stroke: #8fd9a8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Page transition to the console ---------- */
.al-wipe {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), #2f5fe0, #7a32e8 35%, #0b0a21 75%);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  transition: clip-path .85s var(--al-ease-io);
}
.al-wipe.is-on { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }

/* ---------- Shared keyframes ---------- */
@keyframes alUp { from { opacity: 0; translate: 0 16px; } }
@keyframes alFade { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .al-main { grid-template-columns: 1fr; justify-items: center; gap: 30px; padding: 22px 20px 30px; }
  .al-intro { text-align: center; }
  .al-title { font-size: clamp(36px, 8vw, 54px); }
  .al-lead { margin-inline: auto; font-size: 16px; }
  .al-features { display: none; }
  .al-card { width: min(480px, 100%); }
  .al-top { padding: 18px 20px 0; }
}

@media (max-width: 520px) {
  .al-card-inner { padding: 30px 22px 24px; }
  .al-row { grid-template-columns: 1fr; gap: 0; }
  .al-title { font-size: 36px; }
  .al-lead { display: none; }
  .al-clock { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .al-title i { transform: none; }
}
