/* =========================================================
   Extracted from views/login.ejs on 20260604-120850
========================================================= */

:root {
      --bg: #050507;
      --panel: rgba(255,255,255,.052);
      --panel-strong: rgba(255,255,255,.078);
      --line: rgba(255,255,255,.12);
      --muted: #a1a1aa;
      --indigo: #6366f1;
      --violet: #a855f7;
      --cyan: #22d3ee;
      --emerald: #34d399;
      --rose: #fb7185;
    }

    * { box-sizing: border-box; }

    body {
      min-height: 100vh;
      margin: 0;
      color: white;
      font-family: Inter, system-ui, sans-serif;
      overflow-x: hidden;
      background:
        radial-gradient(circle at 16% 12%, rgba(99,102,241,.28), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(168,85,247,.23), transparent 32rem),
        radial-gradient(circle at 50% 110%, rgba(34,211,238,.10), transparent 34rem),
        var(--bg);
    }

    .font-display { font-family: "Space Grotesk", Inter, system-ui, sans-serif; }

    .grid-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(to bottom, black, transparent 82%);
      opacity: .7;
    }

    .orb {
      position: fixed;
      border-radius: 999px;
      filter: blur(58px);
      opacity: .5;
      pointer-events: none;
      z-index: 0;
    }

    .orb-one { width: 340px; height: 340px; background: #6366f1; top: 80px; right: 5%; }
    .orb-two { width: 280px; height: 280px; background: #a855f7; bottom: 70px; left: -80px; }
    .orb-three { width: 260px; height: 260px; background: #22d3ee; bottom: -80px; right: 20%; opacity: .22; }

    .glass {
      background: var(--panel);
      border: 1px solid var(--line);
      backdrop-filter: blur(24px);
      box-shadow: 0 28px 100px rgba(0,0,0,.42);
    }

    .nova-gradient {
      background: linear-gradient(90deg, #93c5fd, #818cf8, #c084fc, #22d3ee);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .nova-brand-logo {
      position: relative;
      width: 76px;
      height: 76px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      filter:
        drop-shadow(0 0 18px rgba(99,102,241,.70))
        drop-shadow(0 0 34px rgba(168,85,247,.32));
    }

    .nova-brand-orb,
    .nova-brand-eyes {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .nova-brand-orb {
      z-index: 1;
      animation: novaOrbSpin 42s linear infinite;
      transform-origin: center;
    }

    .nova-brand-eyes {
      z-index: 2;
      animation: novaEyesBlink 5.8s infinite;
      transform-origin: center;
    }

    @keyframes novaOrbSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes novaEyesBlink {
      0%, 86%, 100% { transform: scale(.78,.78); opacity: 1; }
      88% { transform: scale(.78,.08); opacity: .75; }
      90% { transform: scale(.78,.78); opacity: 1; }
      94% { transform: scale(.78,.08); opacity: .75; }
      96% { transform: scale(.78,.78); opacity: 1; }
    }

    .auth-shell {
      position: relative;
      z-index: 2;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 32px 20px;
    }

    .auth-layout {
      width: min(1180px, 100%);
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 28px;
      align-items: stretch;
    }

    /* UNIQUE LOGIN ANIMATION: 3D ACCESS GATE */
    .access-gate {
      position: relative;
      min-height: 680px;
      border-radius: 2.4rem;
      overflow: hidden;
      perspective: 1400px;
      transform-style: preserve-3d;
      background:
        radial-gradient(circle at 50% 26%, rgba(34,211,238,.12), transparent 18rem),
        radial-gradient(circle at 50% 78%, rgba(99,102,241,.14), transparent 26rem),
        linear-gradient(145deg, rgba(255,255,255,.076), rgba(255,255,255,.015));
      border: 1px solid rgba(255,255,255,.13);
      backdrop-filter: blur(28px);
      box-shadow: 0 32px 110px rgba(0,0,0,.48);
    }

    .gate-floor {
      position: absolute;
      left: 50%;
      bottom: 48px;
      width: 720px;
      height: 340px;
      transform: translateX(-50%) rotateX(70deg) rotateZ(-5deg);
      border-radius: 2rem;
      background:
        radial-gradient(circle at center, rgba(34,211,238,.13), transparent 36%),
        linear-gradient(rgba(129,140,248,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129,140,248,.18) 1px, transparent 1px);
      background-size: auto, 34px 34px, 34px 34px;
      mask-image: radial-gradient(circle at center, black 0%, black 50%, transparent 78%);
      opacity: .72;
      animation: floorPulse 6s ease-in-out infinite;
    }

    @keyframes floorPulse {
      0%, 100% { transform: translateX(-50%) rotateX(70deg) rotateZ(-5deg) translateY(0); opacity: .54; }
      50% { transform: translateX(-50%) rotateX(70deg) rotateZ(-5deg) translateY(-12px); opacity: .9; }
    }

    .login-beam {
      position: absolute;
      left: 50%;
      top: 45%;
      width: 26px;
      height: 380px;
      transform: translate(-50%, -50%);
      background: linear-gradient(to bottom, rgba(34,211,238,0), rgba(34,211,238,.80), rgba(168,85,247,.28), rgba(34,211,238,0));
      filter: blur(7px);
      opacity: .78;
      z-index: 3;
      animation: beamBreath 3.2s ease-in-out infinite;
    }

    @keyframes beamBreath {
      0%, 100% { height: 320px; opacity: .45; }
      50% { height: 410px; opacity: 1; }
    }

    .gate-node {
      position: absolute;
      left: 50%;
      top: 28%;
      width: 190px;
      height: 190px;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      display: grid;
      place-items: center;
      z-index: 9;
      animation: nodeFloat 5s ease-in-out infinite;
    }

    @keyframes nodeFloat {
      0%, 100% { transform: translate(-50%, -50%) translateY(0); }
      50% { transform: translate(-50%, -50%) translateY(-14px); }
    }

    .gate-node-halo {
      position: absolute;
      inset: -28px;
      border-radius: 999px;
      background:
        conic-gradient(from 0deg, rgba(34,211,238,0), rgba(34,211,238,.58), rgba(168,85,247,.50), rgba(99,102,241,.45), rgba(34,211,238,0));
      filter: blur(12px);
      opacity: .78;
      animation: haloSpin 8s linear infinite;
    }

    @keyframes haloSpin {
      to { transform: rotate(360deg); }
    }

    .gate-node .nova-brand-logo {
      width: 150px;
      height: 150px;
    }

    .gate-panel {
      position: absolute;
      width: 172px;
      min-height: 106px;
      border-radius: 1.45rem;
      padding: 16px;
      background: rgba(8,8,14,.80);
      border: 1px solid rgba(255,255,255,.13);
      backdrop-filter: blur(16px);
      box-shadow: 0 18px 60px rgba(0,0,0,.36);
      z-index: 8;
      animation: panelFloat 6s ease-in-out infinite;
    }

    .gate-panel .label {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .16em;
      color: #a5b4fc;
    }

    .gate-panel .value {
      margin-top: 7px;
      font-size: 23px;
      font-weight: 900;
      line-height: 1;
    }

    .gate-panel .caption {
      margin-top: 7px;
      color: #a1a1aa;
      font-size: 12px;
      line-height: 1.4;
    }

    .panel-a { left: 7%; top: 18%; animation-delay: 0s; }
    .panel-b { right: 7%; top: 20%; animation-delay: .8s; }
    .panel-c { left: 9%; bottom: 16%; animation-delay: 1.6s; }
    .panel-d { right: 9%; bottom: 16%; animation-delay: 2.3s; }

    @keyframes panelFloat {
      0%, 100% { transform: translateY(0) translateZ(0); opacity: .86; }
      50% { transform: translateY(-16px) translateZ(18px); opacity: 1; }
    }

    .access-ring {
      position: absolute;
      left: 50%;
      top: 51%;
      width: 310px;
      height: 310px;
      border-radius: 999px;
      transform: translate(-50%, -50%) rotateX(66deg);
      border: 1px solid rgba(255,255,255,.15);
      box-shadow: inset 0 0 30px rgba(34,211,238,.10), 0 0 55px rgba(99,102,241,.10);
      z-index: 5;
      animation: accessRingSpin 16s linear infinite;
    }

    .access-ring.two {
      width: 430px;
      height: 430px;
      opacity: .55;
      animation-duration: 24s;
      animation-direction: reverse;
    }

    @keyframes accessRingSpin {
      from { transform: translate(-50%, -50%) rotateX(66deg) rotateZ(0deg); }
      to { transform: translate(-50%, -50%) rotateX(66deg) rotateZ(360deg); }
    }

    .access-key {
      position: absolute;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      color: #67e8f9;
      box-shadow: 0 12px 44px rgba(34,211,238,.12);
      z-index: 7;
      animation: keyFloat 7s ease-in-out infinite;
    }

    .key-1 { left: 25%; top: 42%; animation-delay: 0s; }
    .key-2 { right: 25%; top: 43%; animation-delay: 1s; }
    .key-3 { left: 36%; bottom: 31%; animation-delay: 2s; }
    .key-4 { right: 36%; bottom: 30%; animation-delay: 3s; }

    @keyframes keyFloat {
      0%, 100% { transform: translateY(0) rotate(0deg); opacity: .58; }
      50% { transform: translateY(-18px) rotate(10deg); opacity: 1; }
    }

    .gate-status {
      position: absolute;
      left: 50%;
      bottom: 32px;
      transform: translateX(-50%);
      z-index: 11;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 13px 18px;
      border-radius: 999px;
      background: rgba(5,5,7,.75);
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(18px);
      box-shadow: 0 14px 50px rgba(0,0,0,.35);
      color: #d4d4d8;
      font-size: 13px;
      white-space: nowrap;
    }

    .gate-status i { color: #34d399; }

    .auth-card {
      position: relative;
      overflow: hidden;
      border-radius: 2.4rem;
      padding: 38px;
      min-height: 680px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .auth-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 50% 10%, rgba(99,102,241,.16), transparent 20rem),
        linear-gradient(135deg, rgba(255,255,255,.09), transparent 42%, rgba(34,211,238,.05));
      pointer-events: none;
    }

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

    .input-wrap {
      position: relative;
    }

    .input-wrap i {
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      color: #71717a;
      pointer-events: none;
    }

    .auth-input {
      width: 100%;
      padding: 17px 18px 17px 48px;
      border-radius: 1.25rem;
      color: white;
      outline: none;
      background: rgba(255,255,255,.055);
      border: 1px solid rgba(255,255,255,.11);
      transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    }

    .auth-input::placeholder { color: #71717a; }

    .auth-input:focus {
      border-color: rgba(129,140,248,.7);
      background: rgba(255,255,255,.075);
      box-shadow: 0 0 0 4px rgba(99,102,241,.13);
    }

    .ai-button {
      width: 100%;
      border: 0;
      cursor: pointer;
      padding: 17px 22px;
      border-radius: 1.35rem;
      color: white;
      font-weight: 900;
      background: linear-gradient(90deg, #6366f1, #a855f7, #22d3ee);
      box-shadow: 0 18px 55px rgba(99,102,241,.28);
      transition: transform .2s ease, filter .2s ease;
    }

    .ai-button:hover {
      filter: brightness(1.08);
      transform: translateY(-2px);
    }

    .ai-button:active {
      transform: scale(.99);
    }

    .mini-line {
      display: flex;
      gap: 10px;
      align-items: center;
      color: #d4d4d8;
      font-size: 14px;
    }

    .mini-line i { color: #34d399; }

    @media (max-width: 1020px) {
      .auth-layout {
        grid-template-columns: 1fr;
      }

      .access-gate {
        min-height: 560px;
        order: 2;
      }

      .auth-card {
        min-height: auto;
        padding: 30px 22px;
      }

      .gate-node { top: 30%; }
      .gate-node .nova-brand-logo { width: 118px; height: 118px; }
      .gate-panel { width: 136px; padding: 12px; }
      .gate-panel .value { font-size: 18px; }
      .gate-panel .caption { font-size: 11px; }
      .panel-a { left: 4%; top: 14%; }
      .panel-b { right: 4%; top: 15%; }
      .panel-c { left: 4%; bottom: 16%; }
      .panel-d { right: 4%; bottom: 15%; }
      .access-key { display: none; }
      .access-ring { width: 250px; height: 250px; }
      .access-ring.two { width: 350px; height: 350px; }
      .gate-floor { width: 500px; height: 270px; bottom: 70px; }
      .gate-status {
        width: calc(100% - 48px);
        justify-content: center;
        text-align: center;
        white-space: normal;
        bottom: 24px;
      }
    }

/* NOVA LOGIN MOBILE POLISH */
@media (max-width: 760px) {
  body {
    min-height: 100svh;
    background:
      radial-gradient(circle at 50% 0%, rgba(99,102,241,.30), transparent 22rem),
      radial-gradient(circle at 100% 12%, rgba(168,85,247,.20), transparent 18rem),
      radial-gradient(circle at 40% 100%, rgba(34,211,238,.10), transparent 20rem),
      var(--bg);
  }

  .grid-bg {
    background-size: 42px 42px;
    opacity: .45;
  }

  .orb-one {
    width: 220px;
    height: 220px;
    top: 40px;
    right: -80px;
    opacity: .38;
  }

  .orb-two {
    width: 210px;
    height: 210px;
    left: -90px;
    bottom: 160px;
    opacity: .32;
  }

  .orb-three {
    display: none;
  }

  .auth-shell {
    min-height: 100svh;
    display: block;
    padding: 18px 14px 28px;
  }

  .auth-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .auth-card {
    order: 1;
    min-height: auto;
    border-radius: 1.75rem;
    padding: 24px 18px 20px;
    box-shadow: 0 22px 70px rgba(0,0,0,.38);
  }

  .auth-card h1,
  .auth-card .font-display {
    letter-spacing: -0.04em;
  }

  .auth-card form {
    gap: 12px;
  }

  .auth-input {
    min-height: 54px;
    padding: 15px 16px 15px 46px;
    border-radius: 1.05rem;
    font-size: 16px;
  }

  .input-wrap i {
    left: 17px;
  }

  .ai-button {
    min-height: 56px;
    padding: 15px 18px;
    border-radius: 1.15rem;
    font-size: 15px;
  }

  .mini-line {
    font-size: 13px;
    align-items: flex-start;
  }

  .access-gate {
    order: 2;
    min-height: 360px;
    border-radius: 1.75rem;
    overflow: hidden;
  }

  .gate-node {
    top: 30%;
    width: 128px;
    height: 128px;
  }

  .gate-node .nova-brand-logo {
    width: 100px;
    height: 100px;
  }

  .gate-node-halo {
    inset: -18px;
    filter: blur(10px);
  }

  .login-beam {
    top: 43%;
    width: 18px;
    height: 250px;
    filter: blur(6px);
  }

  .access-ring {
    top: 50%;
    width: 190px;
    height: 190px;
    opacity: .72;
  }

  .access-ring.two {
    width: 270px;
    height: 270px;
    opacity: .42;
  }

  .gate-floor {
    width: 390px;
    height: 210px;
    bottom: 48px;
    background-size: auto, 26px 26px, 26px 26px;
    opacity: .50;
  }

  .gate-panel {
    width: 112px;
    min-height: 78px;
    padding: 10px;
    border-radius: 1rem;
  }

  .gate-panel .label {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .gate-panel .value {
    font-size: 16px;
    margin-top: 5px;
  }

  .gate-panel .caption {
    display: none;
  }

  .panel-a {
    left: 10px;
    top: 18px;
  }

  .panel-b {
    right: 10px;
    top: 22px;
  }

  .panel-c {
    left: 10px;
    bottom: 74px;
  }

  .panel-d {
    right: 10px;
    bottom: 74px;
  }

  .gate-status {
    left: 14px;
    right: 14px;
    bottom: 16px;
    width: auto;
    transform: none;
    padding: 11px 13px;
    border-radius: 1rem;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
  }

  .access-key {
    display: none;
  }

  .nova-brand-logo {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 420px) {
  .auth-shell {
    padding: 12px 10px 22px;
  }

  .auth-card {
    border-radius: 1.45rem;
    padding: 22px 15px 18px;
  }

  .access-gate {
    min-height: 320px;
    border-radius: 1.45rem;
  }

  .gate-node {
    top: 31%;
  }

  .gate-node .nova-brand-logo {
    width: 86px;
    height: 86px;
  }

  .gate-panel {
    width: 96px;
    min-height: 66px;
  }

  .gate-panel .value {
    font-size: 14px;
  }

  .access-ring {
    width: 165px;
    height: 165px;
  }

  .access-ring.two {
    width: 235px;
    height: 235px;
  }

  .gate-floor {
    width: 330px;
    height: 180px;
    bottom: 46px;
  }

  .gate-status {
    font-size: 11px;
  }
}

