body.is-public .auth-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--s6);
}

body.is-public .auth-card {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: var(--s7) 0;
  padding: var(--s6);
  background: var(--bg);
}

body.is-public .auth-card.auth-card-wide {
  max-width: 720px;
}

.auth-art {
  position: absolute;
  top: var(--s6);
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  z-index: 0;
  border-radius: var(--radius-l);
  background: var(--grad);
  overflow: hidden;
}

.auth-art::before,
.auth-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.auth-art::before {
  top: 50%;
  left: 50%;
  width: min(1100px, 90%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.auth-art::after {
  top: 50%;
  left: 50%;
  width: min(720px, 60%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.auth-art-soft {
  background: var(--tint-lav);
}

.auth-art-soft::before,
.auth-art-soft::after {
  border-color: rgba(107, 41, 252, 0.16);
}

.auth-art-soft .auth-bubble {
  background: var(--grad);
  color: #ffffff;
  opacity: 0.22;
}

.auth-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  animation: pub-float 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.auth-bubble-1 {
  top: 12%;
  left: 8%;
}

.auth-bubble-2 {
  top: 58%;
  left: 14%;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  animation-delay: -2s;
}

.auth-bubble-3 {
  top: 14%;
  right: 10%;
  animation-delay: -4s;
}

.auth-bubble-4 {
  right: 16%;
  bottom: 14%;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  animation-delay: -1s;
}

.auth-bubble-5 {
  top: 40%;
  right: 5%;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  animation-delay: -3s;
}

.auth-bubble-6 {
  bottom: 10%;
  left: 5%;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  animation-delay: -5s;
}

@keyframes pub-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }

  50% {
    transform: translateY(-16px) rotate(3deg);
  }
}

@media (max-width: 760px) {
  .auth-art {
    display: none;
  }

  body.is-public .auth-card {
    margin: var(--s4) 0;
  }
}

@media (max-width: 560px) {
  body.is-public .auth-card {
    padding: var(--s5);
  }
}

.profile-card {
  position: relative;
  gap: var(--s4);
  padding: var(--s6);
  border-color: transparent;
  background: linear-gradient(135deg, var(--tint-lav), var(--tint-sky));
  overflow: hidden;
}

.profile-card::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0.1;
  pointer-events: none;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-card .avatar-l {
  width: 96px;
  height: 96px;
  border: 4px solid var(--bg);
  font-size: var(--fs-2xl);
}

.profile-card .profile-name {
  font-size: var(--fs-3xl);
  letter-spacing: -0.02em;
}

.post-list {
  gap: var(--s5);
}

.post-card {
  border-color: transparent;
  background: var(--tint-lav);
}

.post-card:nth-child(5n + 2) {
  background: var(--tint-sky);
}

.post-card:nth-child(5n + 3) {
  background: var(--tint-mint);
}

.post-card:nth-child(5n + 4) {
  background: var(--tint-peach);
}

.post-card:nth-child(5n + 5) {
  background: var(--tint-rose);
}

.post-card:hover {
  transform: translateY(-6px);
}

.post-card .post-cover {
  display: block;
  overflow: hidden;
}

.post-card:hover .post-cover img {
  transform: scale(1.06);
}

.post-card-body {
  flex: 1;
}

.post-card-title {
  font-size: var(--fs-xl);
  line-height: 1.2;
}

.err-card {
  align-items: center;
  text-align: center;
}

.err-code {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 180px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

@media (max-width: 900px) {
  .err-code {
    font-size: 112px;
  }
}

.err-card .auth-title,
.err-card p {
  margin: 0;
}

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