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

  :root {
    --bg: #0a0a0f;
    --surface: #111118;
    --border: rgba(255,255,255,0.07);
    --border-active: rgba(99,102,241,0.6);
    --text: #f0f0f5;
    --muted: #6b6b80;
    --accent: #6366f1;
    --accent-glow: rgba(99,102,241,0.25);
    --danger: #f87171;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
      linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
  }

  .glow-blob {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    top: -100px; left: -100px;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
  }
  .glow-blob.b2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
    top: auto; left: auto; bottom: -80px; right: -80px;
    animation-delay: -4s;
  }

  @keyframes float {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(30px, 20px); }
  }

  .login-wrap {
    position: relative; z-index: 1;
    width: 100%; max-width: 400px;
    padding: 0 24px;
  }

  .logo-area {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeUp 0.6s ease both;
  }

  .logo-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 32px rgba(99,102,241,0.35);
  }

  .logo-icon svg { width: 26px; height: 26px; fill: white; }

  h1 {
    font-family: 'Syne', sans-serif;
    font-size: 26px; font-weight: 700;
    letter-spacing: -0.5px;
  }

  .subtitle {
    font-size: 14px; color: var(--muted);
    margin-top: 4px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    animation: fadeUp 0.6s 0.1s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .field { margin-bottom: 20px; }

  label {
    display: block;
    font-size: 12px; font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  input[type=text], input[type=password] {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
  }

  input:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }

  .btn {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 15px; font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 8px;
    letter-spacing: 0.02em;
  }

  .btn:hover { opacity: 0.9; }
  .btn:active { transform: scale(0.98); }

  .error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--danger);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
  }

  .forgot-link-wrap {
    text-align: center;
    margin-top: 14px;
  }

  .forgot-link {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
  }

  .forgot-link:hover {
    color: var(--text);
  }

  .footer-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 24px;
    animation: fadeUp 0.6s 0.2s ease both;
  }
