:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #eee9e6;
  background: #100e10;
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  position: relative;
  isolation: isolate;
}
.login-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgb(9 7 9 / 22%);
  pointer-events: none;
}
.login-shell { width: min(100%, 360px); }
.login-brand { margin: 0 auto; width: 100%; font-size: 32px; }
.login-brand a { display: block; border-radius: 3px; }
.brand-logo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
.login-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 32px;
  color: #c5b5b8;
  font-size: 13px;
  line-height: 1.5;
}
.login-heading::before, .login-heading::after { content: ""; flex: 1; height: 1px; background: #634149; }
.login-form { display: grid; gap: 10px; }
.login-form label { font-size: 14px; line-height: 1.5; font-weight: 500; }
.login-form input {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #64545a;
  border-radius: 4px;
  padding: 0 14px;
  background: rgb(17 14 18 / 94%);
  color: #f5f0ed;
  font: inherit;
  font-size: 16px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 16%);
}
#username { margin-bottom: 10px; }
:focus-visible { outline: 2px solid #e1a5af; outline-offset: 4px; }
.login-form input:focus-visible { border-color: #c18794; outline-offset: 2px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 56px; }
button { font: inherit; cursor: pointer; }
.icon-button {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: #c5b5b8;
  background: transparent;
}
.icon-button:hover { color: #fff; background: #33232b; }
svg { width: 19px; height: 19px; flex: 0 0 auto; }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  padding: 12px 20px;
  border: 1px solid #b4485e;
  border-radius: 4px;
  background: #811f34;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.login-submit:hover { background: #9b2a43; border-color: #cf7b8c; }
.login-submit:active { background: #68182a; }
.form-error, .account-success {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 2px solid #e594a5;
  background: #27171e;
  color: #ffdae1;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.account-success { border-color: #92b8a2; background: #16231f; color: #d5ecdf; }
.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
  color: #b4a5ab;
  font-size: 12px;
  line-height: 1.5;
}
.login-footer svg { width: 14px; height: 14px; }
@media (max-width: 480px) {
  body { padding: 36px 28px; }
  .login-brand { width: min(100%, 310px); }
  .login-heading { margin-top: 24px; }
  body::before { background: rgb(9 7 9 / 36%); }
}
@media (max-height: 600px) and (min-width: 481px) {
  body { padding: 28px 24px; }
  .login-brand { width: 240px; }
  .login-heading { margin: 18px 0 22px; }
  .login-footer { margin-top: 20px; }
}
