* { box-sizing: border-box }
body { margin: 0; color: #222323; font: 16px/1.45 system-ui, sans-serif; background: #faf9f6 }
.board-preview { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none }
main { position: relative; display: grid; place-items: center; min-height: 100dvh; padding: 1rem; background: rgb(37 38 44 / 35%) }
.card { width: min(100%, 25rem); padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid #dad7d0; border-radius: 1rem; background: white; box-shadow: 0 14px 56px #34322819 }
.mark { width: 32px }
h1 { margin: 1rem 0 .35rem; font-size: 1.75rem; line-height: 1.15; letter-spacing: -.045em }
#subtitle, #identity { color: #545450; margin: .45rem 0 1.4rem; overflow-wrap: anywhere }
form, #account, label { display: grid; gap: .7rem }
label { gap: .3rem; font-size: .9rem; font-weight: 600 }
input, button, select { width: 100%; min-height: 44px; border: 1px solid #bdbbb5; border-radius: .5rem; background: white; font: inherit; padding: .55rem .7rem; color: inherit }
button { cursor: pointer; font-weight: 600 }
button[type=submit], #workspace { color: white; background: #242523; border-color: #242523 }
button:disabled { opacity: .65 }
a { color: inherit }
#switch { display: block; text-align: center; margin-top: 1rem; font-size: .9rem }
#email-auth-error { margin: 0; color: #b42318; font-size: .9rem; font-weight: 600 }
#email-auth-error:empty, #status:empty, [hidden] { display: none !important }
#google { display: flex; align-items: center; justify-content: center; gap: .65rem }
.recovery-link { justify-self: start; font-size: .9rem }
#recovery-error { color: #b42318; margin: 0; font-weight: 600 }
#recovery-error:empty { display: none }

#auth-loader {
  width: 24px;
  height: 24px;
  border: 3px solid #fff;
  border-top-color: #343633;
  border-radius: 50%;
  visibility: hidden;
  animation: show-loader 0s .5s forwards, spin-loader .8s linear infinite;
}
@keyframes show-loader { to { visibility: visible } }
@keyframes spin-loader { to { transform: rotate(1turn) } }
@media (prefers-reduced-motion: reduce) {
  #auth-loader { animation: show-loader 0s .5s forwards }
}
