@font-face {
  font-family: OpenCloud;
  src: url("./regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: OpenCloud;
  src: url("./bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #20434f; --lilac: #e2baff; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; isolation: isolate;
  background: var(--ink); color: var(--ink);
  font: 16px/1.2 OpenCloud, sans-serif;
}
body::before {
  content: ""; position: fixed; right: -3vw; bottom: -3vh; z-index: -1;
  height: 50vh; aspect-ratio: 21.45 / 27.82;
  background: url("./icon.svg") center / contain no-repeat; pointer-events: none;
}
main { flex: 1; display: grid; place-items: center; }
.login { width: min(100%, 500px); }
.wordmark { display: block; width: auto; max-width: 90%; height: 80px; object-fit: contain; margin: 0 auto 44px; }
.card { padding: 40px; background: #fff; }
h1 { margin: 0 0 48px; text-align: center; font-size: 32px; line-height: 38px; }
form { display: flex; flex-direction: column; }
label { font-weight: 700; line-height: 19px; margin-bottom: 12px; }
input:not([type=hidden]) {
  width: 100%; min-width: 0; height: 45px; padding: 10px 16px;
  font: 16px Arial, sans-serif; background: white; color: #141414;
  border: 1px solid var(--ink); border-radius: 4px;
}
input:focus { outline: 2px solid var(--lilac); outline-offset: 0; border-color: var(--lilac); }
label[for=password] { margin-top: 20px; }
button {
  min-height: 40px; margin-top: 44px; padding: 8px 16px;
  font: 700 16px/1.5 Roboto, Helvetica, Arial, sans-serif;
  background: var(--lilac); color: var(--ink); border: none; border-radius: 24px; cursor: pointer;
}
button:hover { background: #d9a8ff; }
button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[role=alert] { margin: 16px 0 -24px; color: #9b2525; font-size: 14px; }
footer { padding: 8px 12px; min-height: 35px; text-align: center; color: white; font-size: 12.8px; line-height: 19px; }
@media (max-width: 600px) {
  .wordmark { height: 60px; }
  body::before { display: none; }
}
@media (max-height: 600px) { main { padding-block: 16px; } }
