  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500&display=swap');

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

  body {
    font-family: 'DM Sans', sans-serif;
    background: #2d2481;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  .bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18; pointer-events: none; }
  .orb1 { width: 420px; height: 420px; background: #6366f1; top: -100px; left: -120px; }
  .orb2 { width: 320px; height: 320px; background: #a78bfa; bottom: -80px; right: -80px; }
  .orb3 { width: 200px; height: 200px; background: #38bdf8; top: 50%; left: 60%; }

  .card {
    background: #ddddff;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px;
    padding: 48px 44px 44px;
    width: 420px;
    position: relative;
    backdrop-filter: blur(20px);
    animation: fadeUp 0.6s cubic-bezier(.22,.68,0,1.2) both;
  }

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

  .logo-wrap { display: flex; justify-content: center; margin-bottom: 36px; }
  .logo-icon { width: 150px; height: auto; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

  .tagline {
    font-size: 13px; color: #2d2481; text-align: center;
    font-weight: 300; letter-spacing: 0.6px; margin-bottom: 32px; text-transform: uppercase;
  }

  .heading { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: black; margin-bottom: 6px; }
  .sub { font-size: 14px; color: black; margin-bottom: 24px; font-weight: 300; }

  .alert-error {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid #f87171;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: #b91c1c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
  }
  .alert-error i { flex-shrink: 0; }

  .field { position: relative; margin-bottom: 18px; }
  .field label { display: block; font-size: 12px; font-weight: 500; color: black; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
  .field .icon {
    position: absolute; left: 16px; top: 45px;
    transform: translateY(-50%); color: rgb(0 0 0 / 45%);
    font-size: 14px; pointer-events: none; transition: color 0.2s;
  }
  .field input {
    width: 100%;
    background: rgb(255 255 255 / 50%);
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 13px 44px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: rgb(0 0 0 / 75%);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  }
  .field input::placeholder { color: rgb(0 0 0 / 30%); }
  .field input:focus { border-color: #7c6efa; background: rgba(99,102,241,0.08); box-shadow: 0 0 0 3px rgba(124,110,250,0.15); }
  .field:focus-within .icon { color: #a78bfa; }
  .field input.input-error { border-color: #f87171 !important; }

  .email-wrap { display: flex; }
  .email-wrap input:first-child { width: 55%; border-radius: 12px 0 0 12px; border-right: none; }
  .email-wrap input:last-child  { width: 45%; border-radius: 0 12px 12px 0; padding: 13px 10px; color: rgb(0 0 0 / 40%); background: rgb(255 255 255 / 30%); cursor: default; font-size: 13px; }

  .field-error { font-size: 12px; color: #dc2626; margin-top: 6px; display: flex; align-items: center; gap: 5px; }

  .toggle-pw {
    position: absolute; right: 14px; top: 45px; transform: translateY(-50%);
    background: none; border: none; color: rgb(0 0 0 / 45%);
    cursor: pointer; font-size: 14px; padding: 4px; transition: color 0.2s;
  }
  .toggle-pw:hover { color: #a78bfa; }

  .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; margin-top: 4px; }

  .remember { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #2d2481; font-weight: 400; }
  .remember input[type=checkbox] { display: none; }
  .checkbox-box { width: 16px; height: 16px; border: 1px solid #2d2481; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: background 0.15s, border-color 0.15s; flex-shrink: 0; }
  .remember input:checked + .checkbox-box { background: #6366f1; border-color: #6366f1; }
  .checkbox-box i { font-size: 9px; color: #fff; display: none; }
  .remember input:checked + .checkbox-box i { display: block; }

  .forgot { font-size: 13px; color: #7c6efa; text-decoration: none; font-weight: 400; transition: color 0.2s; }
  .forgot:hover { color: #2d2481; }

  .btn-login {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
    border: none; border-radius: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(99,102,241,0.3);
    position: relative; overflow: hidden;
  }
  .btn-login:hover { opacity: 0.92; transform: translateY(-1px); }
  .btn-login:active { transform: scale(0.98); }
  .btn-login .spinner { display: none; }
  .btn-login.loading .label-text { opacity: 0; }
  .btn-login.loading .spinner {
    display: block; position: absolute;
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.6s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
