@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Roboto+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap');

    *,
    *::before,
    *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    :root {
      /* ── Deep OLED Stealth Black (Balanced Dark Edition) ── */
      --bg: #000000;
      --bg-b: #060608;
      --s0: #060608;
      --s1: #0e0e13;
      --s2: #16161f;
      --s3: #20202c;
      --s4: #323244;
      --ln: rgba(255, 255, 255, .06);
      --ln2: rgba(255, 255, 255, .11);
      --t0: #f5f5f9;
      --t1: #ceced8;
      --t2: #808090;
      --t3: #484856;
      --acc: #ffffff;
      --ai: #000000;
      --ok: #4ade80;
      --ok-s: rgba(74, 222, 128, .10);
      --err: #f87171;
      --err-s: rgba(248, 113, 113, .10);
      --info: #60a5fa;
      --sh: 0 4px 12px rgba(0, 0, 0, .85);
      --sh-lg: 0 16px 40px rgba(0, 0, 0, .95);
    }

    body.light {
      --bg: #ffffff;
      --bg-b: #f5f5f5;
      --s0: #f9f9f9;
      --s1: #f0f0f0;
      --s2: #e5e5e5;
      --s3: #dbdbdb;
      --s4: #cccccc;
      --ln: rgba(0, 0, 0, .06);
      --ln2: rgba(0, 0, 0, .12);
      --t0: #000000;
      --t1: #333333;
      --t2: #666666;
      --t3: #999999;
      --acc: #000000;
      --ai: #ffffff;
      --ok: #16a34a;
      --ok-s: rgba(22, 163, 74, .1);
      --err: #dc2626;
      --err-s: rgba(220, 38, 38, .1);
      --info: #2563eb;
    }

    body {
      background: var(--bg);
      color: var(--t0);
      font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .3s, color .3s;
      padding: 0;
      overflow: hidden;
    }



    /* ── Split Layout Wrapper ── */
    .container {
      width: 100%;
      max-width: 1000px;
      min-height: 580px;
      display: flex;
      flex-direction: row;
      position: relative;
      z-index: 1;
      animation: slideUp .45s ease both;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 24px 64px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07);
      margin: 20px;
    }

    /* ── LEFT: Video Panel ── */
    .video-panel {
      flex: 1.1;
      position: relative;
      overflow: hidden;
      min-height: 400px;
      background: #000;
    }

    .video-panel video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* gradient overlay on video */
    .video-panel::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        135deg,
        rgba(0,0,0,.55) 0%,
        rgba(0,0,0,.15) 50%,
        rgba(0,0,0,.60) 100%
      );
      pointer-events: none;
    }

    .video-overlay-text {
      position: absolute;
      bottom: 36px;
      left: 32px;
      z-index: 2;
      color: #fff;
    }

    .video-overlay-text h2 {
      font-size: 26px;
      font-weight: 800;
      line-height: 1.2;
      letter-spacing: 0.5px;
      text-shadow: 0 2px 12px rgba(0,0,0,.7);
    }

    .video-overlay-text p {
      font-size: 13px;
      color: rgba(255,255,255,.65);
      margin-top: 6px;
      font-weight: 400;
      text-shadow: 0 1px 6px rgba(0,0,0,.6);
    }

    /* ── RIGHT: Login Panel ── */
    .login-panel {
      width: 400px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: rgba(12, 12, 18, 0.92);
      backdrop-filter: blur(28px);
      -webkit-backdrop-filter: blur(28px);
      border-left: 1px solid rgba(255,255,255,.07);
      padding: 48px 40px;
      position: relative;
      overflow-y: auto;
    }

    body.light .login-panel {
      background: rgba(245, 245, 248, 0.94);
      border-left: 1px solid rgba(0,0,0,.08);
    }

    /* ── Responsive: stack vertically on small screens ── */
    @media (max-width: 720px) {
      .container {
        flex-direction: column;
        max-width: 420px;
        min-height: unset;
        border-radius: 16px;
        margin: 16px;
      }
      .video-panel {
        flex: unset;
        height: 200px;
      }
      .login-panel {
        width: 100%;
        padding: 32px 28px;
      }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-area {
      text-align: center;
      margin-bottom: 28px;
    }

    .logo-icon {
      width: 72px;
      height: 72px;
      border-radius: 18px;
      overflow: hidden;
      margin: 0 auto 12px;
      border: 1px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(255, 255, 255, 0.05);
    }

    .logo-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .logo-area h1 {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .logo-area p {
      font-size: 12px;
      color: var(--t2);
      margin-top: 5px;
    }

    /* .card is no longer a separate glass box — login panel itself is the card */
    .card {
      background: transparent;
      border: none;
      padding: 0;
    }

    .field {
      margin-bottom: 18px;
    }

    .field label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: var(--t1);
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }

    .input-wrap {
      position: relative;
    }

    .input-wrap i.icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--t3);
      font-size: 14px;
      pointer-events: none;
    }

    .input-wrap input {
      width: 100%;
      padding: 12px 40px 12px 40px;
      background: var(--s0);
      border: 1px solid var(--ln2);
      border-radius: 10px;
      color: var(--t0);
      font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      font-size: 14px;
      outline: none;
      transition: all .2s;
    }

    .input-wrap input:focus {
      border-color: var(--acc);
      background: var(--s2);
    }

    .input-wrap input::placeholder {
      color: var(--t3);
    }

    .btn-login {
      width: 100%;
      padding: 14px;
      background: var(--acc);
      color: var(--ai);
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: all .2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      margin-top: 6px;
    }

    .btn-login:hover {
      opacity: .9;
      transform: translateY(-1px);
      box-shadow: var(--sh);
    }

    .btn-login:disabled {
      opacity: .4;
      cursor: not-allowed;
      transform: none;
    }

    .eye-btn {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--t3);
      cursor: pointer;
      font-size: 14px;
      padding: 4px;
      transition: color .2s;
    }

    .eye-btn:hover {
      color: var(--t1);
    }

    .error-msg {
      background: var(--err-s);
      color: var(--err);
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 16px;
      display: none;
      align-items: center;
      gap: 8px;
    }

    .error-msg.show {
      display: flex;
    }

    .footer {
      text-align: center;
      margin-top: 24px;
      font-size: 13px;
      color: var(--t2);
    }

    .footer a {
      color: var(--t0);
      text-decoration: none;
      font-weight: 700;
      transition: opacity .2s;
    }

    .footer a:hover {
      opacity: .7;
    }

    .theme-btn {
      position: absolute;
      top: 20px;
      right: 20px;
      background: var(--s1);
      border: 1px solid var(--ln);
      color: var(--t1);
      width: 36px;
      height: 36px;
      border-radius: 10px;
      cursor: pointer;
      transition: all .2s;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .theme-btn:hover {
      background: var(--s2);
      color: var(--t0);
    }

    @keyframes shake {

      0%,
      100% {
        transform: translateX(0);
      }

      25% {
        transform: translateX(-6px);
      }

      75% {
        transform: translateX(6px);
      }
    }

    .shake {
      animation: shake .3s ease;
    }

