:root{
  --bg1:#0f172a;
  --bg2:#1e293b;
  --accent:#2563eb;
  --accent-2:#60a5fa;
  --card:#0b1220;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --ok:#22c55e;
  --warn:#f59e0b;
  --error:#ef4444;
  --shadow:0 10px 25px rgba(0,0,0,.35);
}

*{box-sizing:border-box}

html,body{
  height:100%;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, #1f2937 5%, transparent 50%),
              radial-gradient(1200px 600px at 80% 110%, #111827 5%, transparent 50%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.container{
  width:100%;
  max-width:460px;
  grid-template-columns: 1.1fr 0.9fr;
  gap:28px;
}

@media (max-width: 900px){
  .container{ grid-template-columns: 1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.logo{
  width:42px;height:42px;border-radius:10px;flex:0 0 auto;
  box-shadow:0 6px 14px rgba(0,0,0,.35);
}

.title{
  font-size:1.4rem;
  font-weight:700;
  letter-spacing:.2px;
}

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

.form .field{
  margin:16px 0 8px;
}

.input{
  width:100%;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(15,23,42,.6);
  color:var(--text);
  outline:none;
  font-size:1rem;
}

.input:focus{
  border-color: var(--accent-2);
  box-shadow:0 0 0 4px rgba(37,99,235,.25);
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:10px 0 4px;
  color:var(--muted);
  font-size:.95rem;
}

.actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  align-items:center;
}

.btn{
  padding:14px 18px;
  border-radius:12px;
  border:none;
  font-weight:600;
  letter-spacing:.2px;
  cursor:pointer;
  transition: transform .04s ease, opacity .2s ease;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color:white;
  box-shadow:0 10px 18px rgba(37,99,235,.35);
}

.btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none;
}

.helper{
  color:var(--muted);
  font-size:.9rem;
}

.info-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.bullets{
  list-style:none;
  margin:0;padding:0;
}

.bullets li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:10px 0;
  color:var(--muted);
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(37,99,235,.15);
  color:#bfdbfe;
  font-weight:600;
  font-size:.85rem;
}

.footer{
  text-align:center;
  margin-top:14px;
  color:var(--muted);
  font-size:.85rem;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.55);
  padding:20px;
}
.modal.open{ display:flex; }
.modal-card{
  width:100%;
  max-width:760px;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  box-shadow: var(--shadow);
  padding:22px;
  max-height:80vh;
  overflow:auto;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.close{
  background:transparent;border:none;color:var(--text);font-size:1.6rem;cursor:pointer;
}
hr{ border:0; border-top:1px solid rgba(255,255,255,.08); margin:16px 0; }
.small{ font-size:.85rem; color:var(--muted); }
.success{ color: var(--ok); }
.error{ color: var(--error); }