:root{
  --bg:#0b1220;
  --card:#0f172a;
  --border:rgba(255,255,255,.10);
  --text:#e5e7eb;
  --muted:#94a3b8;
  --primary:#2563eb;
  --primary2:#22c55e;
  --danger:#ef4444;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(37,99,235,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(34,197,94,.25), transparent 55%),
    radial-gradient(700px 400px at 50% 90%, rgba(99,102,241,.18), transparent 60%),
    var(--bg);
  min-height:100vh;
}

.wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}

.card{
  width:100%;
  max-width:420px;
  background:rgba(15,23,42,.82);
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}

.logo{
  width:44px;height:44px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(37,99,235,.95), rgba(34,197,94,.85));
  box-shadow:0 12px 30px rgba(37,99,235,.25);
}

h1{
  margin:0;
  font-size:20px;
  letter-spacing:.2px;
}
p{
  margin:6px 0 16px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.field{margin:10px 0}
.label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:0 0 6px 2px;
}
.input{
  width:100%;
  padding:12px 12px;
  border:1px solid var(--border);
  background:rgba(2,6,23,.45);
  color:var(--text);
  border-radius:12px;
  outline:none;
  font-size:15px;
}
.input:focus{
  border-color: rgba(37,99,235,.7);
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top:10px;
}

.btn{
  width:100%;
  padding:12px 14px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  color:#fff;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(34,197,94,1));
  box-shadow: 0 16px 34px rgba(37,99,235,.25);
}
.btn:hover{filter:brightness(.98)}
.btn:active{transform: translateY(1px)}

.msg{
  margin-top:12px;
  font-size:14px;
  color:var(--muted);
}
.msg.error{color:#fca5a5}
.msg.ok{color:#86efac}

small.hint{
  display:block;
  margin-top:12px;
  color:rgba(148,163,184,.8);
  font-size:12px;
}