:root {
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c2033;
  background: #f4f5fa;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  background: radial-gradient(ellipse at 50% 30%, #6355d815, transparent 68%), #f4f5fa;
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: #292a3b; font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.brand img { display: block; object-fit: contain; }
.card { width: min(100%, 420px); padding: 34px 36px; background: #fff; border: 1px solid #e6e8f2; border-radius: 17px; box-shadow: 0 20px 40px -15px #6355d81b, 0 4px 16px -2px #1c20330a; }
h1 { margin: 0 0 3px; font-size: 24px; font-weight: 730; letter-spacing: -.6px; }
.subtitle { margin: 0 0 18px; color: #687089; font-size: 13px; }
.field + .field { margin-top: 17px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
input, button { font: inherit; }
input {
  width: 100%;
  min-height: 45px;
  padding: 10px 13px;
  color: #1c2033;
  border: 1px solid #dce0ec;
  border-radius: 10px;
  background: #fff;
}
input::placeholder { color: #858da1; }
input:focus { outline: 2px solid #6355d8; outline-offset: 1px; }
button:focus-visible { outline: 2px solid #6355d8; outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 47px; }
#password-visibility { position: absolute; right: 7px; top: 7px; display: grid; place-items: center; width: 32px; height: 31px; color: #687089; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
#password-visibility svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
#password-visibility[aria-pressed="true"] { color: #6355d8; }
.submit { width: 100%; min-height: 44px; margin-top: 25px; color: #fff; background: #6355d8; border: 0; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 3px #6355d82b; cursor: pointer; }
.submit:hover:not(:disabled) { background: #5244c4; }
.submit:disabled { opacity: .72; cursor: wait; }
#sign-in-error { margin: 14px 0 0; color: #99334e; font-size: 12px; }
footer { margin-top: 20px; color: #747d94; text-align: center; font-size: 10px; letter-spacing: 1.3px; }
footer span { letter-spacing: 0; }
@media (max-width: 460px) { .card { padding: 28px 24px; } }
