:root{
  --bg:#111;
  --card:#1b1b1d;
  --border:#333;
  --accent:#09f;
  --text:#eee;
  --mute:#777;
  --err:#f55;
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:system-ui,Segoe UI,Roboto,Arial;
}
body{
  height:100vh;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
}
.card{
  width:320px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:8px;
  padding:32px 28px;
}
h1{
  font-size:22px;
  font-weight:600;
  color:var(--accent);
  margin-bottom:24px;
  text-align:center;
}
form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
input{
  padding:10px 12px;
  border:1px solid var(--border);
  background:#0000;
  color:var(--text);
  border-radius:4px;
  font-size:14px;
}
input:focus{
  outline:none;
  border-color:var(--accent);
}
button{
  padding:10px;
  border:none;
  border-radius:4px;
  background:var(--accent);
  color:#000;
  font-weight:600;
  cursor:pointer;
  font-size:14px;
}
button:hover{
  filter:brightness(1.1);
}
.switch{
  text-align:center;
  margin-top:16px;
  font-size:13px;
  color:var(--mute);
}
.switch a{
  color:var(--accent);
  text-decoration:none;
}
.error{
  color:var(--err);
  font-size:12px;
  height:14px;
}
.field-error{
  color:var(--err);
  font-size:11px;
  margin-top:4px;
}
input:invalid{box-shadow:none}   /* remove browser red outline */