:root { color-scheme: dark; font: 100%/1.5 system-ui, sans-serif; color: #eef5ff; background: #0c1626; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.login-card { width: min(100%, 28rem); padding: clamp(1.25rem, 5vw, 2rem); border: 1px solid #40546e; border-radius: 1rem; background: #142238; }
.eyebrow, .activity { color: #b9cade; }
h1 { margin: 0; line-height: 1.15; font-size: clamp(1.6rem, 6vw, 2.2rem); }
label { display: block; margin: 1rem 0 .35rem; color: #b9cade; }
input, button { width: 100%; min-height: 48px; border-radius: .45rem; font: inherit; }
input { padding: .55rem .7rem; border: 1px solid #68809c; background: #101d30; color: #fff; }
button { margin-top: 1rem; padding: .55rem .9rem; border: 1px solid transparent; background: #83e8d0; color: #102b28; font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(1.12); }
button:active { transform: translateY(1px); filter: brightness(.94); }
:focus-visible { outline: 3px solid #ffdf95; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .75; }
.activity { min-height: 1.5em; padding: .65rem .8rem; border: 1px solid #40546e; border-radius: .5rem; }
.activity[data-state="working"] { border-color: #8a7445; color: #ffedc5; }
.activity[data-state="working"]::before { content: ""; display: inline-block; width: .75rem; height: .75rem; margin-inline-end: .5rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -.1rem; animation: spin .8s linear infinite; }
.activity[data-state="failed"] { border-color: #a65c56; color: #ffb4ad; }
.error { margin-top: .75rem; padding: .7rem; color: #ffb4ad; border-inline-start: .25rem solid currentColor; background: #101d30; }
.error button { width: auto; min-height: 2.5rem; margin: .55rem 0 0; background: #101d30; color: #eef5ff; border-color: #68809c; }
@keyframes spin { to { transform: rotate(360deg); } }
