:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #17181b;
  color: #e3e5e8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.login { width: min(320px, 100%); }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #a9adb5;
}

input {
  display: block;
  width: 100%;
  height: 44px;
  margin-bottom: 22px;
  padding: 0 13px;
  border: 1px solid #34363d;
  border-radius: 6px;
  background: #1c1e22;
  color: inherit;
  font: inherit;
  font-size: 14px;
  outline: none;
}

input:focus { border-color: #71757e; }

input:-webkit-autofill {
  -webkit-text-fill-color: #e3e5e8;
  box-shadow: 0 0 0 1000px #1c1e22 inset;
}

button {
  width: 100%;
  height: 44px;
  border: 1px solid #3b3e46;
  border-radius: 6px;
  background: #292c32;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

button:hover { background: #32353c; }
button:active { background: #24272d; }
button:focus-visible { outline: 2px solid #71757e; outline-offset: 3px; }

.error {
  margin: -5px 0 20px;
  color: #d9a6a6;
  font-size: 12px;
  line-height: 1.5;
}
