@font-face {
  font-family: "Outfit";
  src: url("/outfit-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/outfit-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color: #101010;
  background: #f8f8f5;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 520px);
  min-height: 540px;
  padding: 44px 36px;
  border: 1px solid #e7e7e1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 70px rgb(20 42 92 / 9%);
  text-align: center;
}

.logo { display: block; margin: 0 auto 42px; border-radius: 18px; }
.state { display: flex; flex-direction: column; align-items: center; }
.state[hidden] { display: none; }

h1 { margin: 20px 0 14px; font-size: clamp(32px, 7vw, 46px); line-height: 1.04; letter-spacing: -.035em; }
p { margin: 0; color: #626262; font-size: 18px; line-height: 1.5; }

.spinner {
  width: 58px;
  height: 58px;
  border: 5px solid #eaf1ff;
  border-top-color: #2864eb;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  font-weight: 600;
}
.status-icon.success { background: #2864eb; }
.status-icon.error { background: #bd2a20; }

.button {
  display: block;
  width: 100%;
  margin-top: 36px;
  padding: 17px 24px;
  border-radius: 999px;
  background: #2864eb;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.button:focus-visible { outline: 3px solid #9bbaff; outline-offset: 4px; }
.hint { margin-top: 18px; font-size: 14px; }

.form { width: 100%; margin-top: 30px; text-align: left; }
.form label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.form input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #dcdcd6;
  border-radius: 14px;
  color: #101010;
  background: #fbfbf9;
  font: inherit;
  font-size: 18px;
}
.form input:focus { border-color: #2864eb; outline: 3px solid #dfe9ff; }
.form small { display: block; margin-top: 8px; color: #707070; font-size: 13px; }
.form .button { border: 0; cursor: pointer; text-align: center; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .page { padding-inline: 0; background: #fff; }
  .card { min-height: 100dvh; padding: 40px 24px; border: 0; border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
