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

  :root {
    --navy: #0d1b2e;
    --navy-mid: #152640;
    --navy-light: #1e3554;
    --teal: #00c9a7;
    --teal-dark: #00a88a;
    --teal-glow: rgba(0,201,167,0.15);
    --white: #ffffff;
    --gray-100: #f4f6f9;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --danger: #e74c5e;
    --font: 'Plus Jakarta Sans', sans-serif;
  }

  body {
    font-family: var(--font);
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card {
    display: flex;
    width: 900px;
    max-width: 98vw;
    min-height: 520px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(13,27,46,0.12);
  }

  /* LEFT PANEL */
  .left {
    flex: 1;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
  }

  .left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(0,201,167,0.15);
    top: -60px; left: -60px;
  }
  .left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(0,201,167,0.1);
    bottom: -40px; right: -40px;
  }

  .left-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--teal);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }

  .left h2 {
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    position: relative; z-index: 1;
  }

  .left p {
    color: var(--gray-300);
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
    max-width: 220px;
    position: relative; z-index: 1;
  }

  .left-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
    position: relative; z-index: 1;
  }

  .icon-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,201,167,0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .icon-card i {
    color: var(--teal);
    font-size: 18px;
  }

  .icon-card span {
    color: var(--gray-300);
    font-size: 11px;
    font-weight: 500;
  }

  /* RIGHT PANEL */
  .right {
    flex: 1;
    padding: 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .right h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
  }

  .right .subtitle {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 36px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .input-wrap {
    position: relative;
  }

  .input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-300);
    font-size: 15px;
    transition: color 0.2s;
  }

  .input-wrap input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--gray-300);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
  }

  .input-wrap input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
  }

  .input-wrap input:focus + i,
  .input-wrap:focus-within i {
    color: var(--teal);
  }

  .toggle-pass {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray-300);
    font-size: 15px;
    background: none;
    border: none;
    padding: 0;
  }

  .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.1s;
    position: relative;
    overflow: hidden;
  }

  .btn-login::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--teal);
    border-radius: 0 0 10px 10px;
  }

  .btn-login:hover { opacity: 0.9; }
  .btn-login:active { transform: scale(0.99); }
  .btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

  .error-msg {
    background: rgba(231,76,94,0.08);
    border: 1px solid rgba(231,76,94,0.3);
    color: var(--danger);
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: none;
  }

  .error-msg.show { display: block; }

  .footer-note {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-500);
  }

  .spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
    display: none;
  }

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

  @media (max-width: 640px) {
    .left { display: none; }
    .right { padding: 40px 28px; }
  }