:root { --ink: #121212; --paper: #f3efe6; --card: #fffdf8; --line: #ded7c8; --muted: #777267; --orange: #ff4f19; --lime: #c6f52c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Space Grotesk', system-ui, sans-serif; background-image: radial-gradient(#dcd5c4 1.2px, transparent 1.2px); background-size: 24px 24px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { outline: none; }
button, .primary { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible { filter: brightness(.88); }
input:focus { background: #f7f5ee; }
.access { width: min(484px, calc(100% - 40px)); margin: clamp(40px, 7vh, 80px) auto 70px; }
.sign-in-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 32px 0; }
.sign-in-page .access { margin: auto; flex-shrink: 0; }
.login-dots { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.sign-in-page.dots-ready { background-image: none; }
.dots-ready .login-dots { opacity: 1; }
.sign-in-page .access { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .login-dots { transition: none; } }
.card { background: var(--card); border: 2.5px solid var(--ink); border-radius: 25px; padding: 36px; box-shadow: 7px 7px 0 var(--ink); }
h1 { font-size: clamp(39px, 5vw, 52px); line-height: 1.08; letter-spacing: -.05em; margin: 0 0 18px; }
.highlight { background: linear-gradient(transparent 65%, var(--orange) 65%, var(--orange) 93%, transparent 93%); }
.intro { font-size: 16px; line-height: 1.6; color: #59564e; margin: 0 0 29px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 9px; }
input { display: block; width: 100%; padding: 14px 15px; min-height: 52px; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; font-size: 17px; }
input::placeholder { color: #969186; }
.message { margin: 17px 0; color: #59564e; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { color: #c72b1c; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 22px; border: 2px solid var(--ink); border-radius: 11px; box-shadow: 4px 4px 0 var(--ink); color: white; background: var(--orange); font-size: 17px; font-weight: 700; padding: 14px 16px; min-height: 53px; }
.primary:hover { background: #ee4210; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sign-in-icon { display: grid; place-items: center end; flex: 0 0 60px; height: 24px; }
.sign-in-icon > span { grid-area: 1 / 1; }
.access-loader, .sign-in-check { display: none; }
.primary[data-state] { opacity: 1; background: var(--orange); }
.primary[data-state] .sign-in-arrow { display: none; }
.primary[data-state="loading"] .access-loader { display: block; position: relative; width: 60px; height: 24px; }
.access-door { position: absolute; right: 0; top: 0; width: 20px; height: 24px; border: 2px solid white; border-radius: 5px; animation: access-door 1.5s ease-in-out infinite; }
.access-door::after { content: ''; position: absolute; right: 3px; top: 9px; width: 3px; height: 3px; border-radius: 50%; background: white; }
.access-pass { position: absolute; left: 0; top: 5px; width: 18px; height: 14px; border: 2px solid var(--ink); border-radius: 4px; background: var(--lime); animation: access-grab 1.5s cubic-bezier(.4, 0, .2, 1) infinite; }
.access-pass::after { content: ''; position: absolute; left: 3px; right: 3px; top: 4px; height: 2px; border-radius: 2px; background: var(--ink); }
.primary[data-state="success"] .sign-in-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); }
@keyframes access-grab {
  0% { opacity: 0; transform: translateX(-4px) rotate(-12deg) scale(.85); }
  15%, 30% { opacity: 1; transform: translateX(0) rotate(-8deg) scale(1); }
  65% { opacity: 1; transform: translateX(36px) rotate(0) scale(.9); }
  82%, 100% { opacity: 0; transform: translateX(42px) rotate(0) scale(.55); }
}
@keyframes access-door { 0%, 35%, 100% { transform: scale(1); } 65% { transform: scale(1.13); } }
@media (prefers-reduced-motion: reduce) {
  .access-pass, .access-door { animation: none; }
  .access-pass { transform: translateX(22px); }
}
.password-field { margin-top: 20px; }
@media (max-width: 480px) { .card { padding: 27px 23px; border-radius: 21px; } }
