@font-face { font-family: "Work Sans"; src: url("./regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("./medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root { color-scheme: dark; --accent: #7defd1; --surface: #19191b; }
body { margin: 0; color: #f4f4f5; background: var(--surface); font: 16px/1.35 "Work Sans", sans-serif; }
header { position: absolute; inset: 20px auto auto 20px; }
header a, header img { display: block; }
header img { filter: brightness(0) invert(1); }
main { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 32px; align-items: center; min-height: 100vh; min-height: 100svh; padding: 72px 32px; }
.illustration { grid-column: 1 / 4; justify-self: center; width: 40vw; height: auto; }
section { grid-column: 4 / 6; max-width: 412px; width: 100%; }
h1 { margin: 0 0 8px; font-size: 24px; font-weight: 500; line-height: 1.25; }
#tagline { font-size: 14px; color: #afb1b4; margin: 0 0 24px; }
form { display: grid; gap: 8px; }
label { display: block; font-size: 12px; font-weight: 500; text-transform: uppercase; }
input:not([type=hidden]) { width: 100%; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-size: 14px; background: #222528; color: #fff; }
input::placeholder { color: #94989c; }
#password-row { margin-top: 8px; }
.password-box { position: relative; margin-top: 8px; }
#password { padding-right: 44px; }
#eye { display: grid; place-items: center; position: absolute; right: 0; top: 0; height: 40px; width: 40px; background: transparent; color: #b6bbbf; border: 0; cursor: pointer; }
#eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
a { color: var(--accent); font-weight: 500; text-decoration: none; }
a:hover { text-decoration: underline; }
#forgot { justify-self: end; font-size: 14px; }
#submit { min-height: 40px; border: 0; margin-top: 4px; border-radius: 8px; font: 500 13px "Work Sans", sans-serif; text-transform: uppercase; background: var(--accent); color: #102d25; cursor: pointer; }
form:invalid #submit, #submit:disabled { background: #303435; color: #999fa0; }
#error { margin: 4px 0; font-size: 14px; color: #ffabb3; }
#back { display: inline-block; margin-top: 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 992px) { main { display: flex; justify-content: center; padding: 88px 24px 40px; } .illustration { display: none; } }
@media (pointer: coarse) { input:not([type=hidden]) { min-height: 44px; font-size: 16px; } #submit, #eye { min-height: 44px; } }
