  :root {
    --vs-primary:   0 123 255;
    --vs-success:   40,199,111;
    --vs-danger:    234,84,85;
    --vs-warning:   255,159,67;
    --vs-info:      30,139,195;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }

  .login-card {
    display: flex;
    width: 900px;
    max-width: 96vw;
    min-height: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  }

  /* ---- LEFT PANEL ---- */
  .login-left {
    flex: 1;
    background: linear-gradient(160deg, #1565c0 0%, #0d47a1 40%, #01579b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
  }
  .login-left::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
  }
  .login-left::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
  }
  .login-left img.brand-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .login-left h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }
  .login-left p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.6;
    max-width: 260px;
  }
  .login-left .feature-list {
    margin-top: 30px;
    list-style: none;
    text-align: left;
    width: 100%;
    max-width: 240px;
  }
  .login-left .feature-list li {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .login-left .feature-list li i {
    width: 20px;
    color: #90caf9;
  }

  /* ---- RIGHT PANEL ---- */
  .login-right {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 45px;
  }
  .login-right .panel { width: 100%; }

  .login-right h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 4px;
  }
  .login-right .subtitle {
    color: #78909c;
    font-size: 0.88rem;
    margin-bottom: 30px;
  }

  .input-wrap {
    position: relative;
    margin-bottom: 20px;
  }
  .input-wrap i {
    position: absolute;
    top: 50%; left: 14px;
    transform: translateY(-50%);
    color: #90a4ae;
    font-size: 15px;
  }
  .input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    color: #333;
    background: #f9fbff;
  }
  .input-wrap input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
    background: #fff;
  }

  .btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1565c0, #0d47a1);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 4px;
  }
  .btn-login:hover { opacity: 0.92; transform: translateY(-1px); }

  .btn-link-plain {
    display: block;
    text-align: center;
    margin-top: 14px;
    color: #1565c0;
    font-size: 0.87rem;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
  }
  .btn-link-plain:hover { text-decoration: underline; }

  .version-tag {
    text-align: center;
    margin-top: 28px;
    font-size: 0.75rem;
    color: #bdbdbd;
  }

  /* ---- TOAST ---- */
  #toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .toast-item {
    display: flex;
    align-items: flex-start;
    min-width: 300px;
    max-width: 380px;
    background: #fff; /* Changed from #fff to dark background */
    color: #f5f5f5;   /* Light text for contrast */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    overflow: hidden;
    animation: toastSlideIn 1s cubic-bezier(.21,1.02,.73,1) forwards; /* 1s fade-in */
    position: relative;
/*     opacity: 0 !important; Ensure starts hidden */
    transform: translateX(100px); /* More pronounced slide */
    will-change: opacity, transform;
  }
  .toast-item.hide {
    animation: toastSlideOut 0.4s ease forwards;
  }
  @keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
  }
  .toast-accent {
    width: 5px;
    min-height: 100%;
    flex-shrink: 0;
  }
  .toast-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    padding: 16px 0;
    font-size: 18px;
  }
  .toast-body {
    flex: 1;
    padding: 12px 10px 14px 0;
    color: #f5f5f5; /* Ensure body text is light */
  }
  .toast-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2px;
    color: #fff; /* Ensure title is white for contrast */
  }
  .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #bbb;
    padding: 8px 10px 0 0;
    line-height: 1;
    flex-shrink: 0;
  }
  .toast-close:hover { color: #fff; }
  .toast-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
  }
  @keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
  }
  /* type colors */
  .toast-success .toast-accent  { background: #28c76f; }
  .toast-success .toast-icon-wrap { color: #28c76f; }
  .toast-success .toast-title    { color: #1a7a45; }
  .toast-success .toast-progress { background: #28c76f; }

  .toast-error .toast-accent  { background: #ea5455; }
  .toast-error .toast-icon-wrap { color: #ea5455; }
  .toast-error .toast-title    { color: #a31515; }
  .toast-error .toast-progress { background: #ea5455; }

  .toast-warning .toast-accent  { background: #ff9f43; }
  .toast-warning .toast-icon-wrap { color: #ff9f43; }
  .toast-warning .toast-title    { color: #a85e00; }
  .toast-warning .toast-progress { background: #ff9f43; }

  .toast-info .toast-accent  { background: #1e8bc3; }
  .toast-info .toast-icon-wrap { color: #1e8bc3; }
  .toast-info .toast-title    { color: #0d5275; }
  .toast-info .toast-progress { background: #1e8bc3; }

  /* ---- RESPONSIVE ---- */
  @media (max-width: 700px) {
    .login-left { display: none; }
    .login-right { padding: 40px 28px; border-radius: 20px; }
    .login-card { border-radius: 20px; }
  }
  @media (max-width: 400px) {
    .login-right { padding: 32px 18px; }
  }