:root {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #171b17;
  background: #e9ebe6;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 5vw, 72px);
  place-items: center;
}

.sign-in {
  width: min(100%, 488px);
  padding: clamp(24px, 6vw, 52px);
  border: 1px solid #c6cbc2;
  border-top: 5px solid #171b17;
  background: #fafbf8;
}

.heading { margin-bottom: 34px; }

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  height: 25px;
  padding-inline: 5px;
  align-items: flex-end;
  gap: 3px;
  overflow: hidden;
}

.brand-mark i { width: 7px; background: currentColor; transform: skew(29deg); }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 15px; }
.brand-mark i:nth-child(3) { height: 23px; }

h1 {
  margin: 23px 0 8px;
  font-size: clamp(29px, 6.5vw, 38px);
  line-height: 1.2;
}

p { margin: 0; color: #4f574e; font-size: 16px; line-height: 1.55; }

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

label[for="password"] { margin-top: 20px; }

input:not([type="hidden"]), button {
  border-radius: 4px;
  font: inherit;
  width: 100%;
  min-height: 56px;
  touch-action: manipulation;
}

input:not([type="hidden"]) { border: 1px solid #767f73; padding: 12px 14px; background: #fff; color: inherit; }
input:focus, button:focus-visible { outline: 2px solid #52654b; outline-offset: 3px; }

button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-top: 26px;
  color: #fff;
  border: 1px solid #171b17;
  background: #171b17;
  font-weight: 700;
  cursor: pointer;
}

button:active { background: #353d34; }
button span { font-size: 22px; }
.form-error { color: #9b261f; margin-top: 12px; }

@media (hover: hover) {
  button:hover { background: #303730; }
}
