*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue-900: #020d1f;
      --blue-800: #041428;
      --blue-700: #071e3d;
      --blue-600: #0a2a57;
      --blue-500: #0d3a7a;
      --blue-400: #1258b8;
      --blue-300: #1a72e8;
      --blue-200: #4d9fff;
      --blue-100: #a8d4ff;
      --blue-glow: rgba(26, 114, 232, 0.6);
      --glass-bg: rgba(4, 20, 40, 0.45);
      --glass-border: rgba(77, 159, 255, 0.2);
      --glass-shine: rgba(168, 212, 255, 0.07);
    }

    html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: var(--blue-900);
      color: #e8f4ff;
      overflow: hidden;
    }

    /* ── LAYOUT ── */
    .page {
      display: grid;
      grid-template-columns: 1fr 480px;
      height: 100vh;
      position: relative;
    }

    /* ── VIDEO SIDE ── */
    .video-side {
      position: relative;
      overflow: hidden;
    }

    .video-side video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* dark overlay to deepen the video */
    .video-side::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        135deg,
        rgba(2, 13, 31, 0.55) 0%,
        rgba(4, 20, 40, 0.3) 50%,
        rgba(2, 13, 31, 0.7) 100%
      );
      z-index: 1;
    }

    /* right-edge fade into form panel */
    .video-side::after {
      content: '';
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 180px;
      background: linear-gradient(to right, transparent, var(--blue-900));
      z-index: 2;
    }

    /* ── VIDEO OVERLAY TEXT ── */
    .video-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 3;
      padding: 48px 52px;
      background: linear-gradient(to top, rgba(2,13,31,0.92) 0%, rgba(2,13,31,0.5) 60%, transparent 100%);
    }

    .video-tag {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(26, 114, 232, 0.2);
      border: 1px solid rgba(77, 159, 255, 0.35);
      border-radius: 100px;
      padding: 5px 14px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: .1em;
      text-transform: uppercase;
      color: var(--blue-200);
      margin-bottom: 18px;
      backdrop-filter: blur(8px);
    }

    .video-tag::before {
      content: '';
      width: 6px; height: 6px;
      border-radius: 50%;
      background: var(--blue-300);
      box-shadow: 0 0 8px var(--blue-300);
      animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: .5; transform: scale(.8); }
    }

    .video-title {
      font-family: 'Syne', sans-serif;
      font-size: clamp(28px, 3.5vw, 48px);
      font-weight: 900;
      line-height: 1.05;
      color: #fff;
      margin-bottom: 12px;
      text-shadow: 0 2px 24px rgba(2,13,31,0.8);
    }

    .video-title span {
      color: var(--blue-200);
    }

    .video-desc {
      font-size: 15px;
      font-weight: 300;
      color: rgba(168, 212, 255, 0.7);
      max-width: 460px;
      line-height: 1.6;
    }

    /* ── FLOATING STATS ── */
    .video-stats {
      display: flex;
      gap: 28px;
      margin-top: 28px;
    }

    .stat {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .stat-num {
      font-family: 'Syne', sans-serif;
      font-size: 22px;
      font-weight: 800;
      color: var(--blue-200);
    }

    .stat-label {
      font-size: 11px;
      font-weight: 400;
      color: rgba(168, 212, 255, 0.5);
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .stat-divider {
      width: 1px;
      height: 36px;
      background: rgba(77, 159, 255, 0.2);
      margin-top: 4px;
    }

    /* ── FORM SIDE ── */
    .form-side {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px 48px;
      z-index: 5;
    }

    /* ambient glow behind the form */
    .form-side::before {
      content: '';
      position: absolute;
      inset: -20%;
      background: radial-gradient(ellipse at center, rgba(18, 88, 184, 0.25) 0%, transparent 70%);
      pointer-events: none;
    }

    /* ── GLASS CARD ── */
    .glass-card {
      position: relative;
      width: 100%;
      max-width: 380px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      padding: 44px 40px 36px;
      backdrop-filter: blur(24px) saturate(1.4);
      -webkit-backdrop-filter: blur(24px) saturate(1.4);
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 32px 64px rgba(2,13,31,0.6),
        0 0 80px rgba(18, 88, 184, 0.15);
      animation: cardIn .7s cubic-bezier(.22,1,.36,1) both;
    }

    @keyframes cardIn {
      from { opacity: 0; transform: translateY(32px) scale(.97); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* glass top shine */
    .glass-card::before {
      content: '';
      position: absolute;
      top: 0; left: 16px; right: 16px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(168,212,255,0.3), transparent);
      border-radius: 50%;
    }

    /* ── LOGO ── */
    .logo-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 36px;
    }

    .logo-icon {
      width: 40px; height: 40px;
      background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(26,114,232,0.4);
      flex-shrink: 0;
    }

    .logo-text { line-height: 1.1; }
    .logo-name {
      font-family: 'Syne', sans-serif;
      font-size: 16px;
      font-weight: 800;
      color: #fff;
    }
    .logo-sub {
      font-size: 10px;
      font-weight: 500;
      color: var(--blue-200);
      letter-spacing: .1em;
    }

    /* ── HEADINGS ── */
    .form-heading {
      font-family: 'Syne', sans-serif;
      font-size: 26px;
      font-weight: 800;
      color: #fff;
      margin-bottom: 6px;
    }

    .form-sub {
      font-size: 13px;
      color: rgba(168, 212, 255, 0.55);
      margin-bottom: 32px;
      font-weight: 300;
    }

    /* ── ERROR ── */
    .alert-error {
      background: rgba(220, 53, 69, 0.15);
      border: 1px solid rgba(220, 53, 69, 0.35);
      color: #ff8fa3;
      font-size: 13px;
      padding: 10px 14px;
      border-radius: 10px;
      margin-bottom: 20px;
    }

    /* ── FIELDS ── */
    .fields { display: flex; flex-direction: column; gap: 16px; }

    .field-group { display: flex; flex-direction: column; gap: 7px; }

    .field-group label {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: rgba(168, 212, 255, 0.6);
    }

    .field-group input {
      background: rgba(10, 42, 87, 0.5);
      border: 1px solid rgba(77, 159, 255, 0.18);
      border-radius: 12px;
      padding: 13px 16px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      color: #e8f4ff;
      outline: none;
      transition: border-color .2s, box-shadow .2s, background .2s;
    }

    .field-group input::placeholder { color: rgba(168,212,255,0.25); }

    .field-group input:focus {
      border-color: rgba(26, 114, 232, 0.6);
      background: rgba(10, 42, 87, 0.7);
      box-shadow: 0 0 0 3px rgba(26, 114, 232, 0.12), 0 0 20px rgba(26,114,232,0.08);
    }

    /* ── PASSWORD TOGGLE ── */
    .pw-wrap { position: relative; }
    .pw-wrap input { width: 100%; padding-right: 44px; }
    .pw-toggle {
      position: absolute;
      right: 12px; top: 50%;
      transform: translateY(-50%);
      background: none; border: none;
      font-size: 15px;
      color: rgba(168,212,255,0.4);
      cursor: pointer;
      transition: color .2s;
      line-height: 1;
    }
    .pw-toggle:hover { color: var(--blue-200); }

    /* ── SUBMIT BUTTON ── */
    .btn-submit {
      width: 100%;
      margin-top: 8px;
      padding: 14px;
      background: linear-gradient(135deg, var(--blue-400) 0%, var(--blue-300) 100%);
      border: none;
      border-radius: 12px;
      font-family: 'Syne', sans-serif;
      font-size: 15px;
      font-weight: 700;
      color: #fff;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform .15s, box-shadow .2s;
      box-shadow: 0 4px 24px rgba(26,114,232,0.35);
      letter-spacing: .04em;
    }

    .btn-submit::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
      opacity: 0;
      transition: opacity .2s;
    }

    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(26,114,232,0.5); }
    .btn-submit:hover::before { opacity: 1; }
    .btn-submit:active { transform: translateY(0); }
    .btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

    /* loader spinner */
    .btn-loader {
      width: 18px; height: 18px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
      margin: 0 auto;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ── FOOTER ── */
    .form-footer {
      margin-top: 20px;
      text-align: center;
    }
    .form-footer a {
      font-size: 12px;
      color: rgba(168,212,255,0.4);
      text-decoration: none;
      transition: color .2s;
    }
    .form-footer a:hover { color: var(--blue-200); }

    .demo-hint {
      margin-top: 14px;
      font-size: 11.5px;
      color: rgba(168,212,255,0.35);
      background: rgba(10,42,87,0.35);
      border: 1px solid rgba(77,159,255,0.1);
      padding: 9px 14px;
      border-radius: 8px;
      text-align: center;
      line-height: 1.6;
    }
    .demo-hint strong { color: rgba(168,212,255,0.65); font-weight: 500; }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .page { grid-template-columns: 1fr; }
      .video-side { display: none; }
      .form-side { padding: 28px 20px; min-height: 100vh; }
      html, body { overflow: auto; }
    }