* { box-sizing: border-box; }
body { margin: 0; background: #161617; }
.login-stage {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  padding: 40px 20px; color: #f4f4f5; color-scheme: dark;
  font: 15px/1.5 system-ui, -apple-system, sans-serif; position: relative; isolation: isolate;
}
.login-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: #161617 url('/media/admin-black-suede.jpg') center / cover; filter: brightness(1.23);
}
.login-card {
  width: min(100%, 480px); padding: 26px 30px 11px; border: 1px solid #ffffff1a;
  border-top-color: #ffffff30; border-radius: 26px; background: linear-gradient(155deg, #242427a8, #131315a6);
  box-shadow: 0 28px 86px #000a, inset 0 1px #ffffff08;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 16px; }
.login-title { margin: 0; color: #e5e5e8; font: 600 16px/1.5 system-ui, sans-serif; }
.login-logo { width: min(100%, 220px); height: auto; }

.login-controls { max-width: 310px; margin: 0 auto; }
form { display: grid; gap: 8px; margin: 0; }
input:not([type=hidden]) {
  width: 100%; min-width: 0; min-height: 40px; padding: 7px 2px; border: 0;
  border-bottom: 1px solid #75777d; border-radius: 0; background: transparent; color: white;
  font: inherit; font-size: 16px;
}
input::placeholder { color: #a9abb3; opacity: 1; }
input:focus-visible { outline: 0; border-color: #d2d4da; box-shadow: 0 1px #d2d4da; }
button, .login-secondary {
  justify-self: center; width: fit-content; border: 0; background: transparent; color: #a9abb3;
  font: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
.login-action { min-height: 36px; margin-top: 3px; padding: 4px 8px; font-size: 14px; font-weight: 600; }
.login-secondary { display: block; margin: 2px auto 0; padding: 4px 6px; font-size: 12px; font-weight: 500; }
button:hover, a:hover { color: #ececef; }
button:focus-visible, a:focus-visible { outline: 2px solid #a9abb3; outline-offset: 2px; }
.login-feedback { margin: 0 0 8px; color: #dfdfe4; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 520px) {
  .login-stage { padding: 28px 14px; }
  .login-card { padding: 22px 16px 9px; border-radius: 24px; }
  .login-logo { width: min(100%, 190px); }

}
[hidden] { display: none !important; }
