:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #f8f6f6;
  background: #020202;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.opening {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 max(24px, env(safe-area-inset-bottom));
}
.hero {
  width: min(100%, 1440px);
  position: relative;
  display: flow-root;
  flex: 0 0 auto;
  isolation: isolate;
}
.brand {
  position: absolute;
  z-index: 1;
  top: clamp(12px, 3vw, 44px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-mark { width: clamp(42px, 5vw, 68px); height: auto; }
.brand h1 {
  margin: clamp(12px, 1.3vw, 18px) 0 0;
  font-size: clamp(28px, 3.9vw, 56px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.tagline {
  margin: clamp(10px, 1vw, 14px) 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(10px, 1.3vw, 19px);
  letter-spacing: .12em;
  line-height: 1.6;
}
.document-art { display: block; width: 100%; height: auto; margin-top: 56px; }
.login {
  width: min(640px, calc(100% - 48px));
  margin: 12px 0 0;
  padding: 0;
}
.login-fields { display: flex; gap: 20px; align-items: end; }
.login label {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #c8c1c1;
  font-size: 12px;
  letter-spacing: .04em;
}
.login input {
  min-width: 0;
  width: 100%;
  border: 1px solid #585050;
  border-radius: 5px;
  background: #111010;
  color: #fff;
  padding: 12px;
  min-height: 46px;
  font-size: 16px;
}
.login input:hover { border-color: #8d7979; }
.login input:focus-visible, button:focus-visible {
  outline: 2px solid #ff7979;
  outline-offset: 4px;
}
.sign-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 20px;
  color: #fff;
  background: #bc1223;
  border: 1px solid #df2837;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}
.sign-in:hover { background: #d91b2e; }
.sign-in:disabled { cursor: progress; opacity: .7; }
.form-message {
  margin: 12px 0 0;
  min-height: 20px;
  color: #ffb9bd;
  font-size: 13px;
  line-height: 1.5;
}
.preview-controls { margin-top: 12px; text-align: center; }
.sign-out {
  min-height: 44px;
  padding: 10px 20px;
  color: #b9aeae;
  background: transparent;
  border: 1px solid #494040;
  border-radius: 5px;
  font-size: 13px;
}
.sign-out:hover { color: #fff; border-color: #9b6b6b; }
@media (min-width: 1100px) and (min-height: 850px) {
  .hero { width: min(100%, 1440px, calc((100svh - 182px) * 1.77778)); }
}
@media (max-width: 600px) {
  .opening { padding-top: 40px; justify-content: center; }
  .brand { position: relative; top: auto; left: auto; right: auto; margin: 0 16px; }
  .brand-mark { width: 58px; }
  .brand h1 { margin-top: 20px; font-size: 42px; }
  .tagline { margin-top: 14px; font-size: 13px; letter-spacing: .08em; }
  .document-art { margin-top: calc(-8% + 24px); position: relative; z-index: -1; }
  .login { width: min(360px, calc(100% - 48px)); margin-top: 34px; }
  .login-fields { flex-wrap: wrap; gap: 18px 14px; }
  .login label { flex: 1 1 100%; gap: 7px; }
  .sign-in { flex: 1 1 100%; margin-top: 3px; }
  .form-message { margin-top: 12px; }
}
@media (max-height: 600px) and (min-width: 601px) {
  .hero { width: min(100%, 900px); }
  .opening { padding-top: 0; }
}
