@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;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: background .3s, color .3s;
      padding: 20px;
    }

    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
      z-index: 0;
    }

    .container {
      width: 100%;
      max-width: 400px;
      position: relative;
      z-index: 1;
      animation: slideUp .35s ease both;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(24px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-area {
      text-align: center;
      margin-bottom: 32px;
    }

    .logo-icon {
      width: 96px;
      height: 96px;
      border-radius: 22px;
      overflow: hidden;
      margin: 0 auto 14px;
      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: 22px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .logo-area p {
      font-size: 13px;
      color: var(--t2);
      margin-top: 6px;
    }

    .card {
      background: rgba(18, 18, 18, 0.65);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 16px;
      padding: 28px;
      box-shadow: var(--sh-lg);
      transition: all 0.3s ease;
    }

    body.light .card {
      background: rgba(240, 240, 240, 0.7);
      border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .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;
    }

    .water-bg-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: -1;
      overflow: hidden;
      background: #020202;
      filter: url(#water-ripple);
    }

    body.light .water-bg-container {
      background: #f5f5f5;
    }

    .blurred-bg-img {
      position: absolute;
      top: -10%;
      left: -10%;
      width: 120%;
      height: 120%;
      background-size: cover;
      background-position: center;
      filter: blur(12px) brightness(0.4) saturate(1.2);
      transform: scale(1.05);
      opacity: 0.85;
      transition: all 0.5s ease;
    }

    body.light .blurred-bg-img {
      filter: blur(12px) brightness(0.9) saturate(1.1);
      opacity: 0.9;
    }

    .water-overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      opacity: 0.6;
      pointer-events: none;
      transition: all 0.5s ease;
    }

    body.light .water-overlay {
      opacity: 0.3;
    }

    .wave {
      position: absolute;
      top: 0;
      left: 0;
      width: 300%;
      height: 100%;
      background: repeating-linear-gradient(45deg,
          rgba(59, 130, 246, 0.1) 0px,
          rgba(96, 165, 250, 0.05) 50px,
          rgba(255, 255, 255, 0) 100px,
          rgba(96, 165, 250, 0.05) 150px,
          rgba(59, 130, 246, 0.1) 200px);
      animation: river-flow 15s infinite linear;
      transform: skewY(-6deg);
    }

    body.light .wave {
      background: repeating-linear-gradient(45deg,
          rgba(37, 99, 235, 0.06) 0px,
          rgba(59, 130, 246, 0.03) 50px,
          rgba(0, 0, 0, 0) 100px,
          rgba(59, 130, 246, 0.03) 150px,
          rgba(37, 99, 235, 0.06) 200px);
    }

    .wave1 {
      animation-duration: 12s;
      opacity: 0.9;
      top: -10%;
    }

    .wave2 {
      animation-duration: 18s;
      opacity: 0.7;
      top: 20%;
      animation-delay: -4s;
    }

    .wave3 {
      animation-duration: 24s;
      opacity: 0.5;
      top: 50%;
      animation-delay: -8s;
    }

    @keyframes river-flow {
      0% {
        transform: translateX(0) skewY(-6deg);
      }

      100% {
        transform: translateX(-33.33%) skewY(-6deg);
      }
    }
