*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
  :root{
    --primary:#6366f1;
    --primary-dark:#4f46e5;
    --primary-light:#a5b4fc;
    --success:#10b981;
    --success-bg:#ecfdf5;
    --success-border:#a7f3d0;
    --error:#ef4444;
    --error-bg:#fef2f2;
    --error-border:#fecaca;
    --bg:#0f172a;
    --card-bg:#ffffff;
    --text:#1e293b;
    --text-muted:#64748b;
    --border:#e2e8f0;
    --input-bg:#f8fafc;
  }
  body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans SC',sans-serif;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--bg);
    overflow:hidden;
    position:relative;
  }

  /* ---- Animated Background ---- */
  .bg-grid{
    position:fixed;inset:0;z-index:0;
    background-image:
      linear-gradient(rgba(99,102,241,.07) 1px,transparent 1px),
      linear-gradient(90deg,rgba(99,102,241,.07) 1px,transparent 1px);
    background-size:60px 60px;
  }
  .bg-glow{
    position:fixed;z-index:0;border-radius:50%;filter:blur(120px);opacity:.35;
    animation:floatGlow 12s ease-in-out infinite alternate;
  }
  .bg-glow.one{width:500px;height:500px;background:#6366f1;top:-10%;left:-5%;animation-delay:0s}
  .bg-glow.two{width:400px;height:400px;background:#8b5cf6;bottom:-10%;right:-5%;animation-delay:-4s}
  .bg-glow.three{width:300px;height:300px;background:#06b6d4;top:40%;left:50%;animation-delay:-8s}
  @keyframes floatGlow{
    0%{transform:translate(0,0) scale(1)}
    50%{transform:translate(40px,-30px) scale(1.1)}
    100%{transform:translate(-20px,20px) scale(.95)}
  }

  /* ---- Card ---- */
  .card{
    position:relative;z-index:1;
    width:100%;max-width:520px;
    margin:24px;
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(24px) saturate(180%);
    -webkit-backdrop-filter:blur(24px) saturate(180%);
    border:1px solid rgba(255,255,255,.5);
    border-radius:24px;
    box-shadow:
      0 4px 6px -1px rgba(0,0,0,.05),
      0 20px 50px -12px rgba(99,102,241,.25),
      0 0 0 1px rgba(99,102,241,.05);
    padding:44px 40px 36px;
    animation:cardIn .6s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes cardIn{
    from{opacity:0;transform:translateY(30px) scale(.97)}
    to{opacity:1;transform:translateY(0) scale(1)}
  }

  /* ---- Header ---- */
  .header{text-align:center;margin-bottom:36px}
  .logo-wrap{
    display:inline-flex;align-items:center;justify-content:center;
    width:64px;height:64px;border-radius:18px;
    background:linear-gradient(135deg,var(--primary),#8b5cf6);
    box-shadow:0 8px 24px rgba(99,102,241,.35);
    margin-bottom:16px;
    animation:logoPulse 3s ease-in-out infinite;
  }
  @keyframes logoPulse{
    0%,100%{box-shadow:0 8px 24px rgba(99,102,241,.35)}
    50%{box-shadow:0 8px 32px rgba(99,102,241,.55)}
  }
  .logo-wrap svg{width:60px;height:60px;fill:#fff}
  .header h1{
    font-size:22px;font-weight:700;color:var(--text);
    letter-spacing:-.3px;margin-bottom:6px;
  }
  .header p{font-size:13px;color:var(--text-muted);font-weight:400}

  /* ---- Alert ---- */
  .alert{
    display:flex;align-items:flex-start;gap:10px;
    padding:14px 16px;border-radius:12px;margin-bottom:24px;
    font-size:13px;line-height:1.6;
    animation:alertIn .4s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes alertIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
  .alert.error{background:var(--error-bg);border:1px solid var(--error-border);color:#991b1b}
  .alert.success{background:var(--success-bg);border:1px solid var(--success-border);color:#065f46}
  .alert-icon{flex-shrink:0;width:20px;height:20px;margin-top:1px}

  /* ---- Form ---- */
  .form-group{margin-bottom:22px}
  .form-group label{
    display:flex;align-items:center;gap:6px;
    font-size:13px;font-weight:600;color:var(--text);
    margin-bottom:8px;
  }
  .form-group label .label-icon{
    width:16px;height:16px;color:var(--primary);flex-shrink:0;
  }
  .input-wrap{position:relative}
  .input-wrap input{
    width:100%;padding:13px 16px 13px 44px;
    background:var(--input-bg);
    border:1.5px solid var(--border);
    border-radius:12px;
    font-size:14px;color:var(--text);
    transition:all .2s ease;
    outline:none;
  }
  .input-wrap input::placeholder{color:#94a3b8}
  .input-wrap input:focus{
    border-color:var(--primary);
    background:#fff;
    box-shadow:0 0 0 4px rgba(99,102,241,.1);
  }
  .input-icon{
    position:absolute;left:14px;top:50%;transform:translateY(-50%);
    width:18px;height:18px;color:#94a3b8;
    pointer-events:none;transition:color .2s;
  }
  .input-wrap input:focus ~ .input-icon,
  .input-wrap input:focus + .input-icon{color:var(--primary)}
  .form-hint{
    display:flex;align-items:center;gap:4px;
    margin-top:6px;font-size:12px;color:var(--text-muted);
  }
  .form-hint svg{width:13px;height:13px;flex-shrink:0;opacity:.6}

  /* ---- Buttons ---- */
  .btn-primary{
    width:100%;padding:14px 24px;
    background:linear-gradient(135deg,var(--primary),#7c3aed);
    color:#fff;border:none;border-radius:12px;
    font-size:15px;font-weight:600;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:8px;
    transition:all .25s ease;
    box-shadow:0 4px 14px rgba(99,102,241,.35);
    position:relative;overflow:hidden;
  }
  .btn-primary::before{
    content:'';position:absolute;inset:0;
    background:linear-gradient(135deg,rgba(255,255,255,.15),transparent);
    opacity:0;transition:opacity .25s;
  }
  .btn-primary:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(99,102,241,.45);
  }
  .btn-primary:hover::before{opacity:1}
  .btn-primary:active{transform:translateY(0);box-shadow:0 2px 8px rgba(99,102,241,.3)}
  .btn-primary svg{width:18px;height:18px}

  .btn-download{
    width:100%;padding:14px 24px;margin-top:16px;
    background:linear-gradient(135deg,var(--success),#059669);
    color:#fff;border:none;border-radius:12px;
    font-size:15px;font-weight:600;cursor:pointer;
    display:flex;align-items:center;justify-content:center;gap:8px;
    transition:all .25s ease;
    box-shadow:0 4px 14px rgba(16,185,129,.35);
    text-decoration:none;
    animation:alertIn .4s cubic-bezier(.16,1,.3,1) both;
  }
  .btn-download:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(16,185,129,.45);
  }
  .btn-download:active{transform:translateY(0)}
  .btn-download svg{width:18px;height:18px}

  /* ---- Divider ---- */
  .divider{
    display:flex;align-items:center;gap:12px;
    margin:28px 0;color:var(--text-muted);font-size:12px;
  }
  .divider::before,.divider::after{
    content:'';flex:1;height:1px;
    background:linear-gradient(90deg,transparent,var(--border),transparent);
  }

  /* ---- Footer ---- */
  .footer{
    text-align:center;margin-bottom:-10px;padding-top:20px;
    border-top:1px solid var(--border);
  }
  .footer p{font-size:12px;color:#94a3b8;line-height:1.7}
  .footer .badge{
    display:inline-flex;align-items:center;gap:4px;
    padding:4px 10px;border-radius:20px;
    background:rgba(99,102,241,.08);
    color:var(--primary);font-size:11px;font-weight:600;
    margin-top:8px;
  }
  .footer .badge svg{width:12px;height:12px}

  /* ---- Responsive ---- */
  @media(max-width:560px){
    .card{padding:32px 24px 28px;border-radius:20px;margin:16px}
    .header h1{font-size:20px}
    .logo-wrap{width:56px;height:56px;border-radius:16px}
    .logo-wrap svg{width:28px;height:28px}
  }