:root {
  color-scheme:light;
  font:16px/1.5 "Inter","Roboto","PingFang SC","Microsoft YaHei",sans-serif;
  color:#302c3a; background:#f5f3f8;
}
* { box-sizing:border-box; }
body { min-height:100vh; min-height:100dvh; margin:0; display:grid; align-items:center; }
main { width:min(100% - 36px,410px); margin:40px auto; }
.brand { display:flex; align-items:center; margin:0 0 20px 3px; font-size:24px; letter-spacing:-1px; }
.brand b { margin-left:5px; }
.brand span {
  display:grid; place-items:center; width:35px; height:35px; margin-right:10px;
  border-radius:9px; background:#6f57c9; color:#fff; font-size:26px; font-weight:650;
}
.card { background:#fff; border:1px solid #dcd7e4; border-radius:14px; padding:clamp(22px,6vw,34px); }
h1 { font-size:1.5rem; margin:0 0 24px; }
label { display:block; margin:0 0 7px; color:#575060; font-size:.875rem; font-weight:600; }
input[type=password],button { width:100%; border-radius:7px; font:inherit; }
input[type=password] { padding:10px 12px; border:1px solid #c9c1d6; }
input:focus-visible,button:focus-visible { outline:2px solid #8c70d1; outline-offset:2px; }
.message { font-size:.875rem; color:#a53830; margin:12px 0 0; }
.message:empty { display:none; }
button { margin-top:22px; border:0; background:#6950b5; color:#fff; padding:10px 16px; cursor:pointer; }
button:hover { background:#56409b; }
