/* =========================================================
   Nova Register CSS
   Extracted from views/register.ejs on 20260604-124321
========================================================= */

: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;
      --amber: #f59e0b;
    }

    * { 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;
      color: transparent;
    }

    .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: .96fr 1.04fr;
      gap: 28px;
      align-items: stretch;
    }

    /* UNIQUE REGISTER ANIMATION: 3D ACCOUNT LAUNCH PAD */
    .launch-pad {
      position: relative;
      min-height: 720px;
      border-radius: 2.4rem;
      overflow: hidden;
      perspective: 1400px;
      transform-style: preserve-3d;
      background:
        radial-gradient(circle at 50% 25%, rgba(34,211,238,.12), transparent 18rem),
        radial-gradient(circle at 50% 78%, rgba(99,102,241,.15), 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);
    }

    .launch-floor {
      position: absolute;
      left: 50%;
      bottom: 54px;
      width: 720px;
      height: 350px;
      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: launchFloorPulse 6s ease-in-out infinite;
    }

    @keyframes launchFloorPulse {
      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; }
    }

    .launch-beam {
      position: absolute;
      left: 50%;
      top: 48%;
      width: 30px;
      height: 430px;
      transform: translate(-50%, -50%);
      background: linear-gradient(to bottom, rgba(34,211,238,0), rgba(34,211,238,.82), rgba(168,85,247,.30), rgba(34,211,238,0));
      filter: blur(8px);
      opacity: .78;
      z-index: 3;
      animation: launchBeamBreath 3.2s ease-in-out infinite;
    }

    @keyframes launchBeamBreath {
      0%, 100% { height: 350px; opacity: .45; }
      50% { height: 460px; opacity: 1; }
    }

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

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

    .launch-node-halo {
      position: absolute;
      inset: -30px;
      border-radius: 999px;
      background:
        conic-gradient(from 0deg, rgba(34,211,238,0), rgba(34,211,238,.60), rgba(168,85,247,.52), rgba(99,102,241,.46), rgba(34,211,238,0));
      filter: blur(12px);
      opacity: .78;
      animation: launchHaloSpin 8s linear infinite;
    }

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

    .launch-node .nova-brand-logo {
      width: 154px;
      height: 154px;
    }

    .account-pod {
      position: absolute;
      width: 170px;
      min-height: 108px;
      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: podFloat 6s ease-in-out infinite;
    }

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

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

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

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

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

    .launch-ring {
      position: absolute;
      left: 50%;
      top: 53%;
      width: 320px;
      height: 320px;
      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: launchRingSpin 16s linear infinite;
    }

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

    .launch-ring.three {
      width: 230px;
      height: 230px;
      opacity: .75;
      animation-duration: 11s;
    }

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

    .create-step {
      position: absolute;
      width: 38px;
      height: 38px;
      border-radius: 14px;
      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: stepFloat 7s ease-in-out infinite;
    }

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

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

    .launch-status {
      position: absolute;
      left: 50%;
      bottom: 32px;
      transform: translateX(-50%);
      z-index: 12;
      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;
    }

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

    .auth-card {
      position: relative;
      overflow: hidden;
      border-radius: 2.4rem;
      padding: 38px;
      min-height: 720px;
      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::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,.055), transparent);
      transform: translateX(-130%);
      animation: cardSweep 8s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes cardSweep {
      0%, 76%, 100% { transform: translateX(-130%); opacity: 0; }
      82%, 92% { opacity: 1; }
      97% { transform: translateX(130%); opacity: 0; }
    }

    .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; }

    .auth-error {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 18px;
      border-radius: 1rem;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.28);
      color: #fca5a5;
      font-size: 14px;
      font-weight: 500;
      line-height: 1.4;
    }

    .auth-error i { color: #f87171; flex-shrink: 0; }

    .show-pw-row {
      display: flex;
      align-items: center;
      padding: 2px 4px;
    }

    .show-pw-label {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #a1a1aa;
      font-size: 13px;
      cursor: pointer;
      user-select: none;
    }

    .show-pw-label input[type="checkbox"] {
      width: 15px;
      height: 15px;
      accent-color: #6366f1;
      cursor: pointer;
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 99px;
      background: var(--emerald);
      box-shadow: 0 0 0 rgba(52,211,153,.55);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
      70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
      100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
    }

    .product-path {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 24px;
    }

    .product-path div {
      border-radius: 18px;
      padding: 13px;
      border: 1px solid rgba(255,255,255,.10);
      background: rgba(255,255,255,.045);
    }

    .product-path span {
      display: block;
      color: #71717a;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .10em;
    }

    .product-path strong {
      display: block;
      margin-top: 5px;
      color: white;
      font-size: 13px;
    }

    @media (max-width: 1020px) {
      .auth-shell {
        padding: 18px 14px 26px;
        align-items: start;
      }

      .auth-layout {
        grid-template-columns: 1fr;
        gap: 18px;
      }

      .auth-card {
        order: 1;
        min-height: auto;
        padding: 28px 20px;
        border-radius: 28px;
      }

      .launch-pad {
        order: 2;
        min-height: 560px;
        border-radius: 28px;
      }

      .launch-node { top: 30%; }
      .launch-node .nova-brand-logo { width: 118px; height: 118px; }

      .account-pod {
        width: 136px;
        padding: 12px;
      }

      .account-pod .value { font-size: 18px; }
      .account-pod .caption { font-size: 11px; }

      .pod-a { left: 4%; top: 14%; }
      .pod-b { right: 4%; top: 15%; }
      .pod-c { left: 4%; bottom: 16%; }
      .pod-d { right: 4%; bottom: 15%; }

      .create-step { display: none; }

      .launch-ring { width: 250px; height: 250px; }
      .launch-ring.two { width: 350px; height: 350px; }
      .launch-ring.three { width: 185px; height: 185px; }

      .launch-floor {
        width: 500px;
        height: 270px;
        bottom: 70px;
      }

      .launch-status {
        width: calc(100% - 48px);
        justify-content: center;
        text-align: center;
        white-space: normal;
        bottom: 24px;
      }
    }

    @media (max-width: 540px) {
      body {
        background:
          radial-gradient(circle at 50% -5%, rgba(99,102,241,.28), transparent 22rem),
          radial-gradient(circle at 50% 100%, rgba(34,211,238,.09), transparent 24rem),
          var(--bg);
      }

      .auth-shell {
        padding: 12px;
      }

      .auth-card {
        padding: 22px 16px;
        border-radius: 24px;
      }

      .auth-card h1 {
        font-size: 3.15rem;
        line-height: .92;
      }

      .auth-card p {
        font-size: .95rem;
      }

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

      .auth-input {
        padding-top: 15px;
        padding-bottom: 15px;
      }

      .product-path {
        grid-template-columns: 1fr;
      }

      .launch-pad {
        min-height: 500px;
        border-radius: 24px;
      }

      .launch-beam {
        height: 310px;
      }

      .account-pod {
        width: 122px;
      }

      .account-pod .label {
        font-size: 9px;
      }

      .account-pod .caption {
        display: none;
      }

      .pod-a { top: 12%; }
      .pod-b { top: 13%; }
      .pod-c { bottom: 14%; }
      .pod-d { bottom: 14%; }

      .launch-status {
        font-size: 12px;
      }
    }
