      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      :root {
        --green-dark: #1a4a2e;
        --green-mid: #2d7a4f;
        --green-light: #4caf78;
        --green-pale: #a8e6c1;
        --green-ultra: #e8f7ee;
        --earth: #8b5e3c;
        --earth-light: #c49a6c;
        --amber: #e8a020;
        --amber-light: #ffd580;
        --sky: #1e6b9e;
        --sky-light: #4da8da;
        --red: #c0392b;
        --bg: #0d1f12;
        --surface: #132a19;
        --surface2: #1a3821;
        --border: rgba(76, 175, 120, 0.18);
        --text: #e8f5ec;
        --text-muted: #6aaf82;
        --text-dim: #3d6b4d;
        --radius: 12px;
        --font: "Space Grotesk", sans-serif;
        --mono: "DM Mono", monospace;
      }

      body {
        background: var(--bg) !important;
        color: var(--text) !important;
        font-family: var(--font) !important;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        position: relative;
      }

      /* ─── Animated Background ─────────────────────── */
      .bg-layer {
        position: fixed;
        inset: 0;
        z-index: 0;
        overflow: hidden;
      }
      .bg-gradient {
        position: absolute;
        inset: 0;
        background:
          radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 122, 79, 0.12) 0%, transparent 60%),
          radial-gradient(ellipse 60% 50% at 80% 20%, rgba(76, 175, 120, 0.08) 0%, transparent 55%),
          radial-gradient(ellipse 90% 70% at 50% 50%, rgba(26, 74, 46, 0.15) 0%, transparent 70%);
      }

      /* Floating particles */
      .particle {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        opacity: 0;
        animation: floatUp linear infinite;
      }
      @keyframes floatUp {
        0% {
          opacity: 0;
          transform: translateY(0) scale(0.5);
        }
        15% {
          opacity: 1;
        }
        85% {
          opacity: 1;
        }
        100% {
          opacity: 0;
          transform: translateY(-100vh) scale(1);
        }
      }

      /* Grid lines */
      .grid-overlay {
        position: absolute;
        inset: 0;
        background-image:
          linear-gradient(rgba(76, 175, 120, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(76, 175, 120, 0.03) 1px, transparent 1px);
        background-size: 60px 60px;
        animation: gridShift 20s linear infinite;
      }
      @keyframes gridShift {
        0% { transform: translate(0, 0); }
        100% { transform: translate(60px, 60px); }
      }

      /* ─── Login Container ─────────────────────────── */
      .login-container {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 440px;
        padding: 20px;
      }

      /* ─── Logo Section ────────────────────────────── */
      .login-brand {
        text-align: center;
        margin-bottom: 32px;
      }
      .login-logo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--green-mid), var(--green-light));
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 36px;
        margin-bottom: 16px;
        box-shadow:
          0 8px 32px rgba(45, 122, 79, 0.35),
          0 0 0 1px rgba(76, 175, 120, 0.2);
        animation: logoPulse 3s ease-in-out infinite;
      }
      @keyframes logoPulse {
        0%, 100% {
          box-shadow:
            0 8px 32px rgba(45, 122, 79, 0.35),
            0 0 0 1px rgba(76, 175, 120, 0.2);
        }
        50% {
          box-shadow:
            0 8px 40px rgba(45, 122, 79, 0.5),
            0 0 0 3px rgba(76, 175, 120, 0.15),
            0 0 60px rgba(76, 175, 120, 0.1);
        }
      }
      .login-brand-name {
        font-size: 20px;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
      }
      .login-brand-sub {
        font-size: 11px;
        color: var(--text-muted);
        letter-spacing: 2px;
        text-transform: uppercase;
      }

      /* ─── Card ─────────────────────────────────────── */
      .login-card {
        background: rgba(19, 42, 25, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(76, 175, 120, 0.15);
        border-radius: 16px;
        padding: 36px 32px;
        box-shadow:
          0 20px 60px rgba(0, 0, 0, 0.4),
          0 0 0 1px rgba(76, 175, 120, 0.08) inset;
        animation: cardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }
      @keyframes cardEntry {
        from {
          opacity: 0;
          transform: translateY(24px) scale(0.97);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .login-title {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 6px;
      }
      .login-subtitle {
        font-size: 13px;
        color: var(--text-muted);
        margin-bottom: 28px;
        line-height: 1.5;
      }

      /* ─── Form ─────────────────────────────────────── */
      .form-group {
        margin-bottom: 18px;
      }
      .form-group label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 8px;
      }
      .input-wrap {
        position: relative;
        display: flex;
        align-items: center;
      }
      .input-icon {
        position: absolute;
        left: 14px;
        font-size: 16px;
        color: var(--text-dim);
        pointer-events: none;
        transition: color 0.2s;
        z-index: 2;
      }
      .form-input {
        width: 100%;
        padding: 13px 14px 13px 44px;
        background: rgba(26, 56, 33, 0.6);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text);
        font-family: var(--font);
        font-size: 14px;
        outline: none;
        transition: all 0.25s;
      }
      .form-input::placeholder {
        color: var(--text-dim);
      }
      .form-input:focus {
        border-color: var(--green-mid);
        background: rgba(26, 56, 33, 0.8);
        box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.2);
      }
      .form-input:focus ~ .input-icon,
      .form-input:focus + .input-icon {
        color: var(--green-light);
      }
      .input-wrap:focus-within .input-icon {
        color: var(--green-light);
      }

      /* Password toggle */
      .pw-toggle {
        position: absolute;
        right: 12px;
        background: none;
        border: none;
        color: var(--text-dim);
        cursor: pointer;
        font-size: 16px;
        padding: 4px;
        transition: color 0.2s;
        z-index: 2;
      }
      .pw-toggle:hover {
        color: var(--text-muted);
      }

      /* ─── Remember & Forgot ────────────────────────── */
      .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
      }
      .remember-check {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
      }
      .remember-check input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border: 1.5px solid var(--border);
        border-radius: 4px;
        background: rgba(26, 56, 33, 0.6);
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
        flex-shrink: 0;
      }
      .remember-check input[type="checkbox"]:checked {
        background: var(--green-mid);
        border-color: var(--green-mid);
      }
      .remember-check input[type="checkbox"]:checked::after {
        content: "✓";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
      }
      .remember-check span {
        font-size: 12px;
        color: var(--text-muted);
      }
      .forgot-link {
        font-size: 12px;
        color: var(--green-light);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
      }
      .forgot-link:hover {
        color: var(--green-pale);
      }

      /* ─── Login Button ─────────────────────────────── */
      .btn-login {
        width: 100%;
        padding: 14px;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
        color: #fff;
        font-family: var(--font);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(45, 122, 79, 0.3);
        letter-spacing: 0.3px;
      }
      .btn-login::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.08),
          transparent
        );
        transition: left 0.5s;
      }
      .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(45, 122, 79, 0.45);
      }
      .btn-login:hover::before {
        left: 100%;
      }
      .btn-login:active {
        transform: translateY(0);
      }
      .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
      }

      /* Loading state */
      .btn-login.loading {
        pointer-events: none;
      }
      .btn-login.loading .btn-text {
        opacity: 0;
      }
      .btn-login .spinner {
        display: none;
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
      }
      .btn-login.loading .spinner {
        display: flex;
      }
      .spinner-dot {
        width: 6px;
        height: 6px;
        background: #fff;
        border-radius: 50%;
        margin: 0 3px;
        animation: dotBounce 0.6s ease-in-out infinite alternate;
      }
      .spinner-dot:nth-child(2) { animation-delay: 0.15s; }
      .spinner-dot:nth-child(3) { animation-delay: 0.3s; }
      @keyframes dotBounce {
        to { opacity: 0.3; transform: translateY(-6px); }
      }

      /* ─── Error Message ────────────────────────────── */
      .error-msg {
        display: none;
        align-items: center;
        gap: 8px;
        padding: 11px 14px;
        background: rgba(192, 57, 43, 0.12);
        border: 1px solid rgba(192, 57, 43, 0.25);
        border-radius: 8px;
        margin-bottom: 18px;
        font-size: 12px;
        color: #f4a49a;
        animation: shakeError 0.4s ease;
      }
      .error-msg.show {
        display: flex;
      }
      @keyframes shakeError {
        0%, 100% { transform: translateX(0); }
        20% { transform: translateX(-8px); }
        40% { transform: translateX(8px); }
        60% { transform: translateX(-5px); }
        80% { transform: translateX(5px); }
      }

      /* ─── Footer Info ──────────────────────────────── */
      .login-footer {
        text-align: center;
        margin-top: 24px;
      }
      .login-footer-text {
        font-size: 11px;
        color: var(--text-dim);
        line-height: 1.7;
      }
      .sys-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(76, 175, 120, 0.08);
        border: 1px solid rgba(76, 175, 120, 0.15);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 11px;
        color: var(--text-muted);
        margin-top: 12px;
      }
      .sys-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--green-light);
        animation: pulse 2s infinite;
      }
      @keyframes pulse {
        0%, 100% {
          opacity: 1;
          box-shadow: 0 0 0 0 rgba(76, 175, 120, 0.5);
        }
        50% {
          opacity: 0.7;
          box-shadow: 0 0 0 5px rgba(76, 175, 120, 0);
        }
      }

      /* ─── Responsive ───────────────────────────────── */
      @media (max-width: 480px) {
        .login-container {
          padding: 16px;
        }
        .login-card {
          padding: 28px 22px;
          border-radius: 14px;
        }
        .login-logo {
          width: 60px;
          height: 60px;
          font-size: 30px;
          border-radius: 15px;
        }
        .login-brand-name {
          font-size: 17px;
        }
        .login-title {
          font-size: 19px;
        }
        .form-options {
          flex-direction: column;
          gap: 10px;
          align-items: flex-start;
        }
      }

      @media (max-height: 700px) {
        .login-brand {
          margin-bottom: 20px;
        }
        .login-logo {
          width: 56px;
          height: 56px;
          font-size: 26px;
          margin-bottom: 10px;
        }
        .login-card {
          padding: 28px 28px;
        }
        .form-group {
          margin-bottom: 14px;
        }
      }
    
