:root {
  color: #102a2a;
  background: #f4f7f8;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
}

.shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 420px);
  padding: 40px 28px;
  border: 1px solid #dfe8e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(15 53 53 / 10%);
  text-align: center;
}

.mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7f3;
}

.mark span {
  width: 20px;
  height: 20px;
  border: 3px solid #0f8f7f;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mark.error {
  background: #fff0f0;
}

.mark.error span {
  position: relative;
  width: 3px;
  height: 22px;
  border: 0;
  border-radius: 2px;
  background: #d83b3b;
  animation: none;
}

.mark.error span::after {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d83b3b;
  content: "";
}

h1 {
  margin: 0;
  color: #122323;
  font-size: 20px;
  line-height: 1.4;
}

p {
  margin: 12px 0 0;
  color: #657575;
  font-size: 15px;
  line-height: 1.7;
}

.return-link {
  display: flex;
  height: 44px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9caca;
  border-radius: 12px;
  color: #255050;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.return-link[hidden] {
  display: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .mark span {
    animation: none;
  }
}
