html {
  color-scheme: dark;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #121214;
  color: #f7f2f8;
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100%;
}
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ed923d;
  outline-offset: 3px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  box-sizing: border-box;
  background: radial-gradient(ellipse at 80% 0, #292346 0, transparent 50%), #111113;
}
.login-card {
  width: min(440px, 100%);
  padding: 36px;
  background: #202024;
  border: 1px solid #39383f;
  border-radius: 26px;
  box-sizing: border-box;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 36px;
}
.login-brand span {
  background: #5850ff;
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
}
.login h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 12px;
}
.login p {
  color: #b5b4bd;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.login form,
.login label {
  display: grid;
  gap: 10px;
}
.login form {
  gap: 18px;
}
.login label {
  font-size: 14px;
  color: #c5c4cd;
}
.login input {
  padding: 13px;
  background: #111113;
  border: 1px solid #48474f;
  border-radius: 10px;
  color: #fff;
  width: 100%;
  box-sizing: border-box;
}
.login button {
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #48474f;
  padding: 12px 16px;
  color: #fff;
  background: #29292e;
}
.login .login-primary {
  background: #5850ff;
  border-color: #5850ff;
  font-weight: 600;
}
.login button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#login-error {
  color: #ffb0a7;
  font-size: 14px;
  line-height: 1.4;
}
#login-error:empty {
  display: none;
}
.demo-accounts {
  border-top: 1px solid #39383f;
  padding-top: 24px;
  margin-top: 26px;
}
.demo-accounts p {
  margin-bottom: 14px;
  font-size: 14px;
}
.demo-accounts > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-accounts button {
  font-size: 13px;
  padding: 9px 12px;
}
.demo-accounts small {
  display: block;
  margin-top: 14px;
  color: #b5b4bd;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 580px) {
  .login-card {
    padding: 26px;
  }
  .login {
    padding: 20px 14px;
  }
}
