* { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  place-items: center;
  background: #f3f5fa;
  color: #15233e;
  font: 15px/1.5 system-ui, "Microsoft YaHei", sans-serif;
}

.login-card {
  width: min(100%, 380px);
  padding: 32px;
  border: 1px solid #e0e5f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(21 35 62 / 7%);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: flex; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; border-radius: 9px; background: #3457e5; }
.brand-mark i { width: 4px; height: 12px; border-radius: 3px; background: #fff; }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-mark i:last-child { height: 8px; }

h1 { margin: 24px 0; font-size: 23px; }
form, label { display: grid; gap: 7px; }
form { gap: 16px; }
input, button { font: inherit; }
input { width: 100%; padding: 9px 11px; border: 1px solid #cad3e4; border-radius: 8px; color: inherit; }
button { padding: 10px; border: 0; border-radius: 8px; background: #3457e5; color: #fff; cursor: pointer; }
button:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 2px solid #3457e5; outline-offset: 3px; }
.error { color: #ba2542; }
