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

    :root {
      --bg: #06061a;
      --card: rgba(15, 20, 45, 0.85);
      --border: rgba(99, 102, 241, 0.25);
      --text: #f1f5f9;
      --muted: #94a3b8;
      --gradient: linear-gradient(135deg, #6366f1, #a855f7);
      --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; }

    /* Background */
    .bg-grid {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      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: 50px 50px;
    }

    .bg-glow {
      position: fixed;
      width: 500px;
      height: 500px;
      border-radius: 50%;
      filter: blur(120px);
      opacity: 0.2;
      pointer-events: none;
      z-index: 0;
    }

    .bg-glow-1 { top: -100px; left: -80px; background: #6366f1; }
    .bg-glow-2 { bottom: -100px; right: -80px; background: #a855f7; opacity: 0.15; }

    /* Header */
    .login-header {
      position: relative;
      z-index: 10;
      padding: 1.25rem 2rem;
      display: flex;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      font-weight: 700;
      font-size: 1.25rem;
    }

    .logo-icon {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      background: var(--gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 1rem;
      color: #fff;
      box-shadow: 0 0 18px rgba(99, 102, 241, 0.45);
    }

    /* Main layout */
    .login-main {
      position: relative;
      z-index: 1;
      flex: 1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
      padding: 1rem 2rem 2rem;
      align-items: center;
    }

    /* Left side */
    .login-left {
      padding-right: 1rem;
    }

    .welcome-badge {
      display: inline-block;
      padding: 0.35rem 0.9rem;
      font-size: 0.8rem;
      font-weight: 500;
      color: #c4b5fd;
      background: rgba(139, 92, 246, 0.15);
      border: 1px solid rgba(139, 92, 246, 0.3);
      border-radius: 999px;
      margin-bottom: 1.5rem;
    }

    .login-left h1 {
      font-size: clamp(2rem, 4.5vw, 2.9rem);
      font-weight: 800;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: 1rem;
    }

    .login-left h1 .grad {
      background: linear-gradient(90deg, #818cf8, #c084fc);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .login-left .desc {
      font-size: 1.05rem;
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 2.25rem;
      max-width: 440px;
    }

    .features {
      display: flex;
      flex-direction: column;
      gap: 1.15rem;
    }

    .feature {
      display: flex;
      align-items: flex-start;
      gap: 0.9rem;
    }

    .feature-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }

    .feature h4 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.15rem;
    }

    .feature p {
      font-size: 0.85rem;
      color: var(--muted);
      line-height: 1.45;
    }

    /* Globe decoration */
    .globe-deco {
      margin-top: 2.5rem;
      height: 80px;
      position: relative;
      overflow: hidden;
      opacity: 0.7;
    }

    .globe-deco svg {
      width: 100%;
      height: 120px;
    }

    /* Right side – form card */
    .login-right {
      display: flex;
      justify-content: center;
    }

    .login-card {
      width: 100%;
      max-width: 420px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 2rem 1.75rem;
      backdrop-filter: blur(16px);
      box-shadow: 0 0 60px rgba(99, 102, 241, 0.08);
    }

    .card-logo {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 30%, #a5b4fc, #6366f1 55%, #4f46e5);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 800;
      color: #fff;
      margin: 0 auto 1.25rem;
      box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.35),
        0 0 25px 6px rgba(99, 102, 241, 0.4);
    }

    .login-card h2 {
      text-align: center;
      font-size: 1.4rem;
      font-weight: 800;
      margin-bottom: 0.3rem;
    }

    .login-card .card-sub {
      text-align: center;
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 1.75rem;
    }

    .form-group {
      margin-bottom: 1.15rem;
    }

    .form-group label {
      display: block;
      font-size: 0.88rem;
      font-weight: 600;
      color: #e2e8f0;
      margin-bottom: 0.4rem;
    }

    .input-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .input-wrap .input-icon {
      position: absolute;
      left: 0.9rem;
      font-size: 1rem;
      color: #64748b;
      pointer-events: none;
    }

    .input-wrap input {
      width: 100%;
      padding: 0.75rem 1rem 0.75rem 2.6rem;
      font-size: 0.95rem;
      font-family: inherit;
      color: var(--text);
      background: rgba(6, 6, 26, 0.65);
      border: 1px solid rgba(99, 102, 241, 0.25);
      border-radius: 10px;
      outline: none;
      transition: border-color 0.2s;
    }

    .input-wrap input::placeholder { color: #64748b; }

    .input-wrap input:focus {
      border-color: rgba(139, 92, 246, 0.55);
    }

    .toggle-pass {
      position: absolute;
      right: 0.75rem;
      background: none;
      border: none;
      color: #64748b;
      cursor: pointer;
      font-size: 1.05rem;
      padding: 0.25rem;
      line-height: 1;
    }

    .toggle-pass:hover { color: #a78bfa; }

    .form-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.35rem;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .remember {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.88rem;
      color: var(--muted);
      cursor: pointer;
    }

    .remember input {
      width: 16px;
      height: 16px;
      accent-color: #8b5cf6;
      cursor: pointer;
    }

    .forgot {
      font-size: 0.88rem;
      color: #a78bfa;
      font-weight: 500;
    }

    .forgot:hover { color: #c4b5fd; }

    .btn-login {
      width: 100%;
      padding: 0.85rem;
      font-size: 1rem;
      font-weight: 600;
      color: #fff;
      background: var(--gradient);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      box-shadow: 0 0 22px rgba(99, 102, 241, 0.4);
      transition: transform 0.2s, box-shadow 0.2s;
      margin-bottom: 1.35rem;
    }

    .btn-login:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 30px rgba(99, 102, 241, 0.55);
    }

    .btn-login:disabled {
      opacity: 0.65;
      cursor: not-allowed;
      transform: none;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.25rem;
      color: var(--muted);
      font-size: 0.85rem;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(99, 102, 241, 0.2);
    }

    .social-btns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }

    .btn-social {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.7rem 0.5rem;
      font-size: 0.88rem;
      font-weight: 500;
      color: #e2e8f0;
      background: rgba(6, 6, 26, 0.5);
      border: 1px solid rgba(99, 102, 241, 0.25);
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }

    .btn-social:hover {
      border-color: rgba(99, 102, 241, 0.5);
      background: rgba(99, 102, 241, 0.1);
    }

    .btn-social img,
    .btn-social .social-icon {
      width: 18px;
      height: 18px;
      font-size: 1rem;
    }

    .no-account {
      text-align: center;
      font-size: 0.88rem;
      color: var(--muted);
    }

    .no-account a {
      color: #a78bfa;
      font-weight: 500;
    }

    .no-account a:hover { color: #c4b5fd; }

    /* Simple bottom bar (not full footer) */
    .login-footer {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 1.25rem 1.5rem;
      font-size: 0.85rem;
      color: #64748b;
      border-top: 1px solid rgba(99, 102, 241, 0.1);
    }

    .login-footer a {
      color: #94a3b8;
      margin: 0 0.4rem;
    }

    .login-footer a:hover { color: #a78bfa; }

    .form-error {
      font-size: 0.85rem;
      color: #f87171;
      margin-top: 0.35rem;
      display: none;
    }

    .form-group.has-error input {
      border-color: rgba(248, 113, 113, 0.5);
    }

    .form-group.has-error .form-error {
      display: block;
    }

    /* Responsive */
    @media (max-width: 900px) {
      .login-main {
        grid-template-columns: 1fr;
        max-width: 480px;
        padding-top: 0.5rem;
      }

      .login-left {
        text-align: center;
        padding-right: 0;
      }

      .login-left .desc {
        margin-left: auto;
        margin-right: auto;
      }

      .features {
        align-items: center;
      }

      .feature {
        text-align: left;
        max-width: 340px;
      }

      .globe-deco { display: none; }
    }

    @media (max-width: 480px) {
      .login-header { padding: 1rem 1.25rem; }
      .login-main { padding: 0.5rem 1rem 1.5rem; }
      .login-card { padding: 1.5rem 1.25rem; }
      .social-btns { grid-template-columns: 1fr; }
      .login-left h1 { font-size: 1.75rem; }
    }