
    :root {
      --accent: #111;
      --muted: #bbb;
      --bg: #f9fafb;
      --card-bg: #fff;
    }

    * {
      box-sizing: border-box;
      font-family: 'Inter', sans-serif;
    }

    body {
      margin: 0;
      height: 100vh;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }

    .home-link {
      position: absolute;
      top: 24px;
      left: 24px;
      color: #555;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      z-index: 10;
      transition: color 0.2s;
    }

    .home-link:hover {
      color: var(--accent);
    }

    .screen {
      display: none;
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background: var(--bg);
      align-items: center;
      justify-content: center;
      transition: opacity 0.4s ease;
    }

    .screen.active {
      display: flex;
    }

    .card {
      background: var(--card-bg);
      border-radius: 16px;
      box-shadow: 0 4px 30px rgba(0,0,0,0.1);
      padding: 40px 36px;
      width: 100%;
      max-width: 400px;
      text-align: center;
    }

    .logo {
      background: var(--accent);
      color: #fff;
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      font-weight: bold;
      margin: 0 auto 16px auto;
    }

    h1 {
      margin: 0;
      color: #111;
      font-size: 26px;
    }

    .subtitle {
      color: var(--muted);
      font-size: 15px;
      margin: 6px 0 24px 0;
    }

    .error-message {
        color: #ef4444;
        font-size: 14px;
        margin-bottom: 16px;
        font-weight: 500;
        min-height: 20px;
    }

    .input-group {
      text-align: left;
      margin-bottom: 16px;
    }

    label {
      font-weight: 500;
      font-size: 14px;
      color: #334155;
    }

    input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      margin-top: 6px;
      font-size: 15px;
      outline: none;
    }

    input:focus {
      border-color: var(--accent);
    }

    .btn {
      width: 100%;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      border: none;
      border-radius: 8px;
      padding: 12px 0;
      font-size: 16px;
      cursor: pointer;
      margin-top: 10px;
      transition: 0.2s;
    }

    .btn:hover {
      background: #0a6edb;
    }

    .switch-link {
      margin-top: 18px;
      font-size: 14px;
      color: #555;
    }

    .switch-link a {
      color: var(--accent);
      font-weight: 500;
      text-decoration: none;
      cursor: pointer;
    }


    .actions {
      text-align: right;
      margin-bottom: 12px;
    }

    .forgot {
      font-size: 13px;
      color: var(--accent);
      text-decoration: none;
    }

/* ==============================
   Toast Notification System
   ============================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  position: relative;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.hide {
  transform: translateX(120%);
  opacity: 0;
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #374151;
}

/* Toast Types */
.toast.success {
  border-left: 4px solid #10b981;
}

.toast.success .toast-icon {
  background: #d1fae5;
  color: #10b981;
}

.toast.success .toast-title {
  color: #065f46;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.error .toast-icon {
  background: #fee2e2;
  color: #ef4444;
}

.toast.error .toast-title {
  color: #991b1b;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.warning .toast-icon {
  background: #fef3c7;
  color: #f59e0b;
}

.toast.warning .toast-title {
  color: #92400e;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

.toast.info .toast-icon {
  background: #dbeafe;
  color: #3b82f6;
}

.toast.info .toast-title {
  color: #1e40af;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  animation: progress 4s linear forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==============================
   Button Loading State
   ============================== */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================
   Responsive Toast
   ============================== */
@media (max-width: 480px) {
  .toast-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}
