/* =========================================================
   Furiend 绒友 · 登录
   水彩纸、手绘线、暖橙色 —— 给两个人，或一群人
   ========================================================= */

:root {
  --paper: #fbf3e5;
  --paper-light: #fffaf1;
  --paper-deep: #f5e8d5;
  --ink: #4a3529;
  --ink-soft: #6d5443;
  --muted: #9b806c;
  --faint: #bca48f;
  --line: #dfc8b1;
  --line-soft: #edddcb;
  --orange: #dc8b5f;
  --orange-deep: #c96e43;
  --orange-soft: #f0b796;
  --peach: #f5c8b2;
  --rose: #efc9c0;
  --butter: #f7dfb5;
  --sage: #b9c5a8;
  --shadow-paper: 0 30px 60px -34px rgba(139, 91, 57, .34), 0 9px 22px -16px rgba(139, 91, 57, .24);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hand: "KaiTi", "STKaiti", "Kaiti SC", "SimYou", serif;
  --script: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse 760px 590px at 102% -8%, rgba(247, 205, 164, .55) 0%, rgba(247, 205, 164, 0) 66%),
    radial-gradient(ellipse 620px 540px at -10% 2%, rgba(243, 200, 181, .46) 0%, rgba(243, 200, 181, 0) 67%),
    radial-gradient(ellipse 620px 440px at -8% 104%, rgba(242, 204, 182, .46) 0%, rgba(242, 204, 182, 0) 70%),
    radial-gradient(ellipse 760px 560px at 108% 106%, rgba(238, 195, 181, .35) 0%, rgba(238, 195, 181, 0) 72%),
    linear-gradient(180deg, #fcf6ea 0%, #fbf2e3 54%, #fbf4e8 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: multiply;
  background-image: url("../assets/paper.svg");
  background-size: 560px 560px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 81;
  pointer-events: none;
  box-shadow: inset 0 0 110px rgba(186, 133, 91, .16);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  color: var(--ink);
  background: #f3cdb9;
}

:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 17px;
  height: 17px;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100svh;
  opacity: 0;
  transition: opacity .85s var(--ease);
}

body.is-ready .page {
  opacity: 1;
}

body.is-loading {
  overflow: hidden;
}

/* ---------- loading screen ---------- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 630px at 50% 44%, rgba(255, 250, 241, .92) 0%, rgba(255, 250, 241, 0) 72%),
    radial-gradient(ellipse 580px 460px at 3% 94%, rgba(242, 196, 181, .48) 0%, rgba(242, 196, 181, 0) 68%),
    radial-gradient(ellipse 650px 470px at 101% 0%, rgba(247, 207, 166, .5) 0%, rgba(247, 207, 166, 0) 66%),
    #fbf3e5;
  opacity: 1;
  visibility: visible;
  transition: opacity .75s var(--ease), visibility .75s var(--ease);
}

.loading-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("../assets/paper.svg");
  background-size: 560px 560px;
}

.loading-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(186, 133, 91, .18);
}

body.is-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.loading-wash span {
  position: absolute;
  border-radius: 45% 55% 48% 52%;
  filter: blur(2px);
}

.loading-wash span:nth-child(1) {
  top: -18%;
  left: -12%;
  width: 56vw;
  height: 54vw;
  background: radial-gradient(ellipse at 50% 50%, rgba(243, 198, 177, .46), rgba(243, 198, 177, 0) 70%);
  transform: rotate(15deg);
}

.loading-wash span:nth-child(2) {
  right: -16%;
  bottom: -22%;
  width: 62vw;
  height: 54vw;
  background: radial-gradient(ellipse at 50% 50%, rgba(247, 207, 168, .4), rgba(247, 207, 168, 0) 72%);
  transform: rotate(-13deg);
}

.loading-wash span:nth-child(3) {
  top: 16%;
  left: 38%;
  width: 36vw;
  height: 33vw;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 249, 238, .85), rgba(255, 249, 238, 0) 72%);
}

.loading-frame {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 30px;
  transform: translateY(-1.5vh);
}

.loading-brand-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  line-height: 0;
}

.loading-brand-img {
  display: block;
  width: min(80vw, 1180px);
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(.98) contrast(.98) drop-shadow(0 14px 18px rgba(161, 105, 68, .07));
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

.loading-progress {
  position: relative;
  width: min(820px, 72vw);
  height: 38px;
  margin-top: clamp(18px, 2.6vh, 30px);
}

.loading-rail {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 26px;
  border: 1.5px solid rgba(200, 143, 103, .9);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(252, 241, 226, .95), rgba(248, 228, 208, .72));
  box-shadow:
    inset 0 0 0 4px rgba(255, 250, 242, .4),
    0 3px 0 rgba(255, 250, 242, .5);
  transform: translateY(-50%);
}

.loading-rail::before,
.loading-rail::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(215, 166, 128, .65);
  border-radius: 50%;
  background: #fbf2e4;
  transform: translateY(-50%);
}

.loading-rail::before {
  left: -7px;
}

.loading-rail::after {
  right: -7px;
}

.loading-fill {
  position: absolute;
  top: 50%;
  left: 4px;
  width: calc(var(--progress, 0) * 1%);
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4c7aa, #e59a70);
  opacity: .58;
  transform: translateY(-50%);
}

.loading-paws {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.paw-step {
  position: absolute;
  bottom: calc(100% + 2px);
  left: var(--x);
  width: 23px;
  height: 23px;
  color: #e5a17a;
  opacity: 0;
  transform: translateX(-50%) translateY(5px) scale(.6) rotate(var(--r));
  transform-origin: 50% 100%;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}

.paw-step.is-on {
  opacity: .82;
  transform: translateX(-50%) translateY(0) scale(1) rotate(var(--r));
}

.paw-step svg {
  width: 100%;
  height: 100%;
}

.loading-ball {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 4;
  display: block;
  width: 68px;
  height: 68px;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
  filter:
    drop-shadow(0 7px 7px rgba(143, 85, 50, .18))
    drop-shadow(0 0 6px rgba(255, 246, 235, .6));
}

.ball-spin {
  position: absolute;
  inset: 0;
  transform: rotate(0deg);
  will-change: transform;
}

.ball-art {
  display: block;
  width: 100%;
  height: 100%;
}

.ball-face {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ball-eye {
  position: absolute;
  top: 45%;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #5b4032;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48);
}

.ball-eye.e1 {
  left: 34%;
}

.ball-eye.e2 {
  right: 34%;
}

.ball-blush {
  position: absolute;
  top: 56%;
  width: 7px;
  height: 4px;
  border-radius: 50%;
  background: #e9a98e;
  opacity: .52;
  filter: blur(1px);
}

.ball-blush.b1 {
  left: 20%;
}

.ball-blush.b2 {
  right: 20%;
}

.ball-mouth {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 5px;
  height: 3px;
  border-bottom: 1px solid #9f6d54;
  border-radius: 0 0 5px 5px;
  transform: translateX(-50%);
  opacity: .8;
}

.loading-caption {
  margin-top: clamp(30px, 5.5vh, 58px);
  color: #a18570;
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: .15em;
}

.loading-dots {
  display: inline-block;
  width: 15px;
  text-align: left;
  animation: dots-pulse 1.4s steps(4, end) infinite;
}

@keyframes dots-pulse {
  0% { opacity: .25; }
  50% { opacity: 1; }
  100% { opacity: .25; }
}

.loading-skip {
  position: fixed;
  bottom: 31px;
  left: 50%;
  padding: 6px 12px;
  border: 1px dashed rgba(184, 137, 105, .46);
  border-radius: 999px;
  background: rgba(255, 251, 243, .38);
  color: #a78a75;
  font-family: var(--hand);
  font-size: 11.5px;
  letter-spacing: .08em;
  transform: translateX(-50%);
  transition: background .2s, border-color .2s;
}

.loading-skip:hover {
  border-color: rgba(172, 116, 81, .7);
  background: rgba(255, 251, 243, .8);
}

.loading-screen.is-skipping .loading-ball {
  transition: transform .35s var(--ease);
}


/* ---------- watercolor atmosphere ---------- */
.paper-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wash {
  position: absolute;
  border-radius: 44% 56% 51% 49%;
  filter: blur(1px);
  opacity: .72;
}

.wash-one {
  top: -220px;
  left: -190px;
  width: 640px;
  height: 570px;
  background:
    radial-gradient(ellipse at 56% 51%, rgba(242, 188, 165, .52) 0%, rgba(242, 188, 165, .18) 46%, rgba(242, 188, 165, 0) 72%);
  transform: rotate(18deg);
}

.wash-two {
  top: -250px;
  right: -160px;
  width: 660px;
  height: 590px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(247, 204, 153, .46) 0%, rgba(247, 204, 153, .14) 48%, rgba(247, 204, 153, 0) 72%);
  transform: rotate(-12deg);
}

.wash-three {
  bottom: -300px;
  left: -190px;
  width: 690px;
  height: 590px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(241, 190, 178, .4) 0%, rgba(241, 190, 178, .12) 48%, rgba(241, 190, 178, 0) 72%);
  transform: rotate(18deg);
}

.wash-four {
  right: -210px;
  bottom: -280px;
  width: 720px;
  height: 600px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(237, 193, 173, .4) 0%, rgba(237, 193, 173, .14) 48%, rgba(237, 193, 173, 0) 72%);
  transform: rotate(-15deg);
}

.doodle {
  position: absolute;
  color: #dfa58a;
  opacity: .32;
}

.heart-one {
  top: 17%;
  left: 3.7%;
  width: 31px;
  height: 28px;
  transform: rotate(-18deg);
}

.heart-two {
  top: 60%;
  right: 4.2%;
  width: 20px;
  height: 18px;
  color: #ecc28e;
  opacity: .45;
  transform: rotate(16deg);
}

.paw-one {
  right: 7.2%;
  bottom: 11%;
  width: 37px;
  height: 37px;
  color: #e6b99e;
  opacity: .35;
  transform: rotate(22deg);
}

.dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e7b89c;
  opacity: .5;
}

.dot-one {
  top: 32%;
  left: 7.1%;
  width: 7px;
  height: 7px;
}

.dot-two {
  top: 44%;
  right: 3.2%;
  background: #eac78e;
}

.dot-three {
  bottom: 14%;
  left: 4.2%;
  opacity: .3;
}

/* ---------- header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 27px 54px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  border-radius: 14px;
  transform: rotate(-1.3deg);
}

.brand-word {
  color: #bf754d;
  font-family: var(--script);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  text-shadow:
    0 2px 0 rgba(255, 250, 242, .85),
    0 0 1px rgba(145, 82, 49, .28);
}

.brand-cn {
  color: #a88b74;
  font-family: var(--hand);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  transform: translateY(-2px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-note {
  color: #9d806a;
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: .02em;
}

.create-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 17px;
  border: 1px dashed rgba(171, 122, 86, .58);
  border-radius: 16px 19px 15px 20px;
  background: rgba(255, 251, 241, .44);
  color: #785847;
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: .025em;
  box-shadow: inset 0 0 0 3px rgba(255, 251, 241, .28);
  transition: background .22s, border-color .22s, transform .22s var(--ease);
}

.create-pill .icon {
  width: 15px;
  height: 15px;
  color: var(--orange);
  transition: transform .22s var(--ease);
}

.create-pill:hover {
  border-color: rgba(163, 107, 72, .8);
  background: rgba(255, 251, 241, .78);
  transform: translateY(-1px) rotate(.4deg);
}

.create-pill:hover .icon {
  transform: translateX(2px);
}

/* ---------- layout ---------- */
.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 432px;
  align-items: center;
  gap: clamp(46px, 7vw, 106px);
  flex: 1;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 54px 26px;
}

.intro {
  width: 100%;
  max-width: 680px;
  min-width: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #987961;
  font-family: var(--hand);
  font-size: 16px;
  letter-spacing: .06em;
}

.eyebrow-paw {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px dashed rgba(180, 127, 93, .5);
  border-radius: 50%;
  color: #c57c56;
  transform: rotate(-9deg);
}

.eyebrow-paw svg {
  width: 13px;
  height: 13px;
}

.intro h1 {
  margin-top: 17px;
  color: #483327;
  font-family: var(--serif);
  font-size: clamp(44px, 3.85vw, 56px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.22;
}

.headline-line {
  display: inline-block;
}

@media (min-width: 991px) {
  .headline-line {
    white-space: nowrap;
  }
}

.intro h1 .accent {
  position: relative;
  display: inline-block;
  margin: 0 2px;
  color: #d57e53;
  font-family: var(--hand);
  font-size: 1.08em;
  letter-spacing: -.015em;
  transform: rotate(-1deg);
}

.accent-line {
  position: absolute;
  right: -3px;
  bottom: -8px;
  left: -2px;
  width: calc(100% + 5px);
  height: 15px;
  color: #e8b79e;
  opacity: .9;
}

.lede {
  margin-top: 20px;
  color: #826653;
  font-family: var(--hand);
  font-size: 20px;
  letter-spacing: .035em;
  line-height: 1.8;
}

/* ---------- cat scene ---------- */
.hero {
  --cat-size: clamp(260px, 25vw, 340px);
  position: relative;
  width: 100%;
  height: clamp(295px, 29vw, 364px);
  margin-top: 19px;
}

.cat-wash {
  position: absolute;
  top: 2%;
  left: 2.5%;
  width: clamp(280px, 27vw, 355px);
  height: clamp(280px, 27vw, 350px);
  border-radius: 51% 49% 44% 56%;
  background:
    radial-gradient(ellipse at 52% 50%, rgba(247, 201, 171, .94) 0%, rgba(247, 201, 171, .48) 48%, rgba(247, 201, 171, 0) 73%);
  transform: rotate(-6deg);
  filter: blur(1px);
}

.cat-wash::before {
  content: "";
  position: absolute;
  inset: 19% 10% 12% 5%;
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(ellipse at 50% 50%, rgba(242, 179, 143, .5) 0%, rgba(242, 179, 143, 0) 72%);
  filter: blur(7px);
}

.cat-ground {
  position: absolute;
  bottom: 16px;
  left: 9%;
  width: 45%;
  height: 30px;
  border-radius: 50%;
  background: rgba(166, 103, 64, .23);
  filter: blur(8px);
}

.cat-photo {
  position: absolute;
  bottom: 5px;
  left: 7%;
  width: var(--cat-size);
  aspect-ratio: 1;
  filter:
    saturate(1.1)
    contrast(1.06)
    brightness(.99)
    drop-shadow(0 0 1px rgba(121, 76, 46, .4))
    drop-shadow(0 2px 1px rgba(126, 79, 48, .15))
    drop-shadow(0 13px 13px rgba(145, 92, 57, .14));
  animation: cat-float 7s ease-in-out infinite;
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 96.5%, transparent 100%);
}

@keyframes cat-float {
  0%, 100% { transform: translateY(0) rotate(-.25deg); }
  50% { transform: translateY(-5px) rotate(.25deg); }
}

.cat-note {
  position: absolute;
  top: 12%;
  left: calc(var(--cat-size) + 7%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 176px;
  padding: 12px 13px 11px 15px;
  border: 1px solid rgba(198, 153, 119, .45);
  border-radius: 7px 10px 8px 11px;
  background: rgba(255, 251, 241, .9);
  box-shadow: 0 10px 20px -16px rgba(135, 86, 52, .5);
  transform: rotate(2.2deg);
}

.note-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 48px;
  height: 14px;
  background: rgba(242, 210, 169, .72);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(2% 8%, 99% 0%, 96% 92%, 0 100%);
}

.cat-note-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cat-note b {
  color: #59402f;
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cat-note small {
  color: #9f816b;
  font-family: var(--hand);
  font-size: 11px;
  letter-spacing: .03em;
}

.note-heart {
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #d99579;
  transform: rotate(8deg);
}

.cat-bubble {
  position: absolute;
  top: 47%;
  left: calc(var(--cat-size) + 7%);
  z-index: 3;
  padding: 10px 14px 9px;
  border: 1px solid rgba(208, 166, 136, .46);
  border-radius: 16px 17px 5px 16px;
  background: rgba(255, 251, 243, .9);
  color: #8b6d59;
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: .035em;
  line-height: 1.55;
  box-shadow: 0 8px 20px -16px rgba(128, 81, 50, .4);
  transform: rotate(-1.4deg);
  animation: bubble-float 5s ease-in-out infinite;
}

.bubble-tail {
  position: absolute;
  bottom: -7px;
  left: 14px;
  width: 13px;
  height: 13px;
  border-bottom: 1px solid rgba(208, 166, 136, .46);
  border-left: 1px solid rgba(208, 166, 136, .46);
  border-radius: 0 0 0 5px;
  background: #fffaf2;
  transform: skewY(-28deg) rotate(-12deg);
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-4px) rotate(-.6deg); }
}

@keyframes card-nudge {
  0%, 100% { transform: rotate(-.55deg) translateX(0); }
  20% { transform: rotate(-.55deg) translateX(-5px); }
  43% { transform: rotate(-.55deg) translateX(4px); }
  68% { transform: rotate(-.55deg) translateX(-3px); }
  86% { transform: rotate(-.55deg) translateX(2px); }
}

.login-paper.nudge {
  animation: card-nudge .38s var(--ease);
}

.hero-heart {
  position: absolute;
  top: 20%;
  left: 37%;
  width: 18px;
  height: 16px;
  color: #edb8a1;
  opacity: .75;
  transform: rotate(13deg);
}

.hero-spark {
  position: absolute;
  color: #e4b57b;
  opacity: .8;
  pointer-events: none;
}

.hero-spark.s1 {
  top: 62%;
  left: 39%;
  font-size: 15px;
}

.hero-spark.s2 {
  top: 27%;
  right: 5%;
  font-size: 17px;
}

.friend-stack {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px dashed rgba(186, 139, 107, .4);
  border-radius: 999px;
  background: rgba(255, 251, 243, .46);
  transition: background .2s, border-color .2s;
}

.friend-stack:hover {
  border-color: rgba(173, 119, 83, .65);
  background: rgba(255, 251, 243, .8);
}

.friend-faces {
  display: flex;
  padding-left: 2px;
}

.friend-faces img {
  width: 34px;
  height: 34px;
  margin-left: -9px;
  border: 2px solid #fcf6ea;
  border-radius: 50%;
  object-fit: contain;
  object-position: center bottom;
  background: #fff8ee;
  padding: 2px;
}

.friend-faces img:first-child {
  margin-left: 0;
}

.friend-copy {
  color: #907560;
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: .015em;
  white-space: nowrap;
}

.friend-copy b {
  color: #c67851;
  font-family: "Trebuchet MS", var(--sans);
  font-size: 13px;
}

.friend-arrow {
  width: 13px;
  height: 13px;
  color: #c18462;
}

/* ---------- login paper ---------- */
.login-area {
  position: relative;
  width: 100%;
  max-width: 432px;
  justify-self: end;
  padding-top: 9px;
}

.bunny-peek {
  position: absolute;
  bottom: -45px;
  left: -101px;
  z-index: 0;
  width: 192px;
  aspect-ratio: 1;
  pointer-events: none;
  transform: rotate(-3deg);
  opacity: .96;
  filter: drop-shadow(0 14px 14px rgba(145, 92, 57, .09));
}

.bunny-peek img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.login-paper {
  position: relative;
  z-index: 1;
  min-height: 590px;
  padding: 34px 35px 23px;
  border: 1px solid rgba(188, 145, 109, .44);
  border-radius: 30px 36px 28px 34px;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .94) 0%, rgba(255, 249, 239, .96) 100%);
  box-shadow: var(--shadow-paper), inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: rotate(-.55deg);
  isolation: isolate;
}

.login-paper::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1px dashed rgba(207, 170, 136, .28);
  border-radius: 23px 29px 21px 27px;
  pointer-events: none;
}

.paper-tape {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 29px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .34) 34%, rgba(255, 255, 255, .08) 70%),
    rgba(240, 211, 170, .7);
  clip-path: polygon(1% 14%, 99% 0%, 96% 91%, 4% 100%);
  transform: translateX(-50%) rotate(-2.1deg);
  box-shadow: 0 3px 5px rgba(140, 97, 64, .05);
}

.login-content {
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.login-head {
  position: relative;
}

.login-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a88b74;
  font-family: var(--hand);
  font-size: 10.5px;
  letter-spacing: .15em;
}

.kicker-line {
  display: inline-block;
  width: 17px;
  height: 1px;
  background: #d9b59b;
  transform: rotate(-2deg);
}

.login-head h2 {
  margin-top: 7px;
  color: #4a3428;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.28;
}

.login-sub {
  margin-top: 5px;
  color: #967b67;
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.6;
}

.login-tabs {
  position: relative;
  display: flex;
  gap: 24px;
  margin-top: 18px;
  border-bottom: 1px solid rgba(218, 193, 170, .55);
}

.tab-btn {
  position: relative;
  padding: 0 1px 9px;
  color: #a28671;
  font-family: var(--hand);
  font-size: 15px;
  letter-spacing: .025em;
  transition: color .2s;
}

.tab-btn::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 0;
  height: 4px;
  border-radius: 50%;
  background: #d98a63;
  opacity: 0;
  transform: scaleX(.55) rotate(-1deg);
  transition: opacity .2s, transform .25s var(--ease);
}

.tab-btn.is-active {
  color: #584031;
  font-weight: 700;
}

.tab-btn.is-active::after {
  opacity: .9;
  transform: scaleX(1.06) rotate(-1deg);
}

/* ---------- form ---------- */
#loginForm {
  margin-top: 15px;
}

.form-field {
  margin-bottom: 11px;
}

.form-field.is-hidden {
  display: none;
}

.form-field > label,
.label-row label {
  display: block;
  margin-bottom: 5px;
  color: #7c604e;
  font-family: var(--hand);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .04em;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiet-link {
  margin-bottom: 5px;
  color: #b08a71;
  font-family: var(--hand);
  font-size: 12px;
  transition: color .2s;
}

.quiet-link:hover {
  color: var(--orange-deep);
}

.password-hint {
  margin-bottom: 5px;
  color: #b49a86;
  font-family: var(--hand);
  font-size: 10.5px;
  letter-spacing: .02em;
}

.auth-error {
  margin: -2px 0 7px;
  color: #bd6652;
  font-family: var(--hand);
  font-size: 11.5px;
  line-height: 1.4;
}

.auth-error:empty {
  display: none;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 13px;
  border: 1.2px solid #e0cbb7;
  border-radius: 12px 15px 12px 14px;
  background: rgba(255, 251, 242, .66);
  box-shadow: inset 0 1px 3px rgba(155, 111, 78, .045);
  transition: border-color .22s, background .22s, box-shadow .22s;
}

.input-shell:focus-within {
  border-color: #dd9a77;
  background: #fffdf7;
  box-shadow: 0 0 0 4px rgba(221, 154, 119, .1);
}

.form-field.has-error .input-shell {
  border-color: #d18167;
  background: #fff9f4;
  box-shadow: 0 0 0 4px rgba(209, 129, 103, .08);
}

.form-field.is-valid .input-shell {
  border-color: #aebfa0;
}

.input-icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  color: #b49780;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.phone-prefix {
  flex: none;
  color: #715444;
  font-family: "Trebuchet MS", var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.prefix-line {
  flex: none;
  width: 1px;
  height: 15px;
  margin: 0 10px 0 8px;
  background: #e5d2c0;
  transform: rotate(4deg);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #503b2e;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .02em;
}

.input-shell input::placeholder {
  color: #b9a28f;
  opacity: 1;
}

.input-shell input:-webkit-autofill,
.input-shell input:-webkit-autofill:hover,
.input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #503b2e;
  -webkit-box-shadow: 0 0 0 1000px #fffdf7 inset;
  transition: background-color 9999s ease-out;
}

#password,
#code {
  letter-spacing: .07em;
}

.eye-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -5px;
  border-radius: 9px;
  color: #ad917c;
  transition: color .2s, background .2s;
}

.eye-btn:hover {
  color: #725443;
  background: rgba(240, 222, 204, .45);
}

.eye-btn svg {
  width: 17px;
  height: 17px;
}

.eye-btn .icon-eye-off {
  display: none;
}

.eye-btn.is-visible .icon-eye {
  display: none;
}

.eye-btn.is-visible .icon-eye-off {
  display: block;
}

.field-valid {
  display: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  color: #7e936f;
}

.field-valid svg {
  width: 100%;
  height: 100%;
}

.form-field.is-valid .field-valid {
  display: block;
}

.field-error {
  margin-top: 4px;
  color: #bd6652;
  font-family: var(--hand);
  font-size: 11.5px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.send-code {
  flex: none;
  height: 31px;
  margin-right: -6px;
  padding: 0 9px;
  border: 1px dashed rgba(191, 132, 98, .55);
  border-radius: 8px 10px 8px 9px;
  background: rgba(248, 231, 214, .7);
  color: #ad694b;
  font-family: var(--hand);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s, border-color .2s;
}

.send-code:hover {
  border-color: rgba(181, 111, 73, .8);
  background: rgba(246, 220, 199, .9);
}

.send-code:disabled {
  cursor: default;
  border-color: rgba(194, 171, 151, .45);
  background: rgba(242, 231, 219, .6);
  color: #b29a87;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.remember {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #806553;
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  user-select: none;
}

.remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox {
  display: grid;
  flex: none;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.2px solid #d4baa4;
  border-radius: 5px 6px 4px 6px;
  background: rgba(255, 252, 246, .8);
  color: #fff;
  transform: rotate(-1deg);
  transition: background .2s, border-color .2s;
}

.checkbox svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .18s, transform .18s;
}

.remember input:checked + .checkbox {
  border-color: #d9875e;
  background: #dc9068;
}

.remember input:checked + .checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.remember input:focus-visible + .checkbox {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

.remember em {
  color: #b39b88;
  font-size: 11px;
  font-style: normal;
}

.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 53px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(174, 93, 54, .36);
  border-radius: 48px 43px 49px 45px;
  background:
    radial-gradient(ellipse 70% 160% at 9% -20%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 58%),
    radial-gradient(ellipse 80% 160% at 105% 120%, rgba(166, 85, 48, .17) 0%, rgba(166, 85, 48, 0) 60%),
    linear-gradient(180deg, #e6a077 0%, #df9167 60%, #d9875e 100%);
  color: #fff9ef;
  font-family: var(--hand);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow:
    0 11px 22px -14px rgba(165, 89, 50, .7),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  transform: rotate(-.15deg);
  transition: transform .22s var(--ease), box-shadow .22s, filter .22s;
}

.submit-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 245, 230, .18);
  border-radius: inherit;
  pointer-events: none;
}

.submit-btn:hover {
  filter: saturate(1.04);
  transform: translateY(-1px) rotate(.1deg);
  box-shadow:
    0 15px 26px -14px rgba(165, 89, 50, .78),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-wash {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 35%;
  height: 160%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .19), rgba(255, 255, 255, 0));
  transform: rotate(22deg);
  transition: left .55s var(--ease);
}

.submit-btn:hover .btn-wash {
  left: 110%;
}

.btn-label,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  opacity: .9;
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff9ef;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.submit-btn.is-loading .btn-label,
.submit-btn.is-loading .btn-icon {
  display: none;
}

.submit-btn.is-loading .btn-loader {
  display: block;
}

.submit-btn.is-loading {
  cursor: wait;
  filter: none;
}

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

.demo-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  color: #b59c89;
  font-family: var(--hand);
  font-size: 10.5px;
  letter-spacing: .01em;
}

.demo-note span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #dfb399;
}

/* ---------- alternate login ---------- */
.or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0 10px;
  color: #b59a86;
  font-family: var(--hand);
  font-size: 11.5px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(222, 201, 182, 0), rgba(222, 201, 182, .8), rgba(222, 201, 182, 0));
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  border: 1px dashed rgba(202, 169, 143, .66);
  border-radius: 12px 14px 11px 14px;
  background: rgba(255, 252, 246, .46);
  color: #745847;
  font-family: var(--hand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  transition: border-color .2s, background .2s, transform .2s;
}

.social-btn:hover {
  border-color: rgba(180, 137, 106, .9);
  background: rgba(255, 252, 246, .85);
  transform: translateY(-1px);
}

.social-stamp {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 8px 9px 7px 9px;
}

.social-stamp svg {
  width: 15px;
  height: 15px;
}

.social-stamp.wechat {
  background: #eef3e8;
  color: #7c9972;
}

.social-stamp.qq {
  background: #edf2f6;
  color: #7d99b1;
}

.signup-line {
  margin-top: 15px;
  color: #967d6b;
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: .015em;
  text-align: center;
}

.signup-line button {
  margin-left: 2px;
  color: #b96e4c;
  font-family: var(--hand);
  font-size: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

.signup-line button:hover {
  text-decoration: underline;
}

.terms {
  margin-top: 8px;
  color: #b49d8b;
  font-family: var(--sans);
  font-size: 9.5px;
  text-align: center;
  letter-spacing: .01em;
  line-height: 1.6;
}

.terms a {
  color: #9f806b;
  text-underline-offset: 2px;
}

.terms a:hover {
  text-decoration: underline;
}

.login-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 13px;
  color: #ad937f;
  font-family: var(--hand);
  font-size: 11.5px;
  letter-spacing: .035em;
}

.login-caption svg {
  width: 11px;
  height: 11px;
}

/* ---------- success ---------- */
.login-success {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 34px 28px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, .98) 0%, rgba(255, 249, 239, .98) 100%);
  text-align: center;
  animation: success-in .45s var(--ease) both;
}

.login-success[hidden] {
  display: none;
}

@keyframes success-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card.is-success .login-content,
.login-paper.is-success .login-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
}

.success-cat {
  width: 112px;
  height: 112px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 4px solid #fff7eb;
  border-radius: 50%;
  background: #fdf7ee;
  box-shadow:
    0 10px 20px -14px rgba(143, 88, 51, .55),
    0 0 0 1px rgba(201, 155, 120, .42);
  transform: rotate(-2deg);
}

.success-cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  padding: 3px;
}

.login-success .login-kicker {
  justify-content: center;
  margin-bottom: 7px;
}

.login-success h2 {
  color: #4a3428;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.3;
}

.login-success h2:focus {
  outline: none;
}

.success-copy {
  margin-top: 8px;
  color: #957a66;
  font-family: var(--hand);
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.8;
}

.success-note {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 11px 12px;
  border: 1px solid rgba(218, 195, 173, .7);
  border-radius: 13px 15px 12px 14px;
  background: rgba(251, 243, 232, .7);
  text-align: left;
}

.mini-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid #fffaf1;
  border-radius: 50%;
  color: #755645;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.mini-avatar + .mini-avatar {
  margin-left: -7px;
}

.avatar-yu {
  background: linear-gradient(145deg, #f7d8c2, #eeb59d);
}

.avatar-zhe {
  background: linear-gradient(145deg, #dfe7d2, #b9cbaa);
  color: #58684c;
}

.success-note > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.success-note b {
  overflow: hidden;
  color: #654b3c;
  font-family: var(--hand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.success-note small {
  overflow: hidden;
  color: #a58b78;
  font-family: var(--hand);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.success-note > svg {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #dc9677;
}

.logout-btn {
  height: 40px;
  margin-top: 19px;
  padding: 0 24px;
  border: 1px dashed rgba(187, 137, 103, .66);
  border-radius: 14px 16px 13px 15px;
  background: rgba(255, 252, 246, .56);
  color: #876956;
  font-family: var(--hand);
  font-size: 13px;
  letter-spacing: .05em;
  transition: background .2s, border-color .2s, transform .2s;
}

.enter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 18px;
  border: 1px solid rgba(174, 93, 54, .32);
  border-radius: 999px;
  background:
    radial-gradient(ellipse 70% 160% at 9% -20%, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #e6a077 0%, #df9167 60%, #d9875e 100%);
  color: #fff9ef;
  font-family: var(--hand);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 9px 18px -12px rgba(165, 89, 50, .65);
  transition: transform .2s var(--ease), filter .2s;
}

.enter-btn svg {
  width: 15px;
  height: 15px;
}

.enter-btn:hover {
  filter: saturate(1.04);
  transform: translateY(-1px);
}

.enter-btn + .logout-btn {
  margin-top: 9px;
}

.logout-btn:hover {
  border-color: rgba(166, 111, 77, .85);
  background: rgba(255, 252, 246, .95);
  transform: translateY(-1px);
}

.success-spark {
  position: absolute;
  color: #e5ad91;
  opacity: .8;
}

.success-spark.c1 {
  top: 13%;
  left: 17%;
  font-size: 18px;
}

.success-spark.c2 {
  top: 24%;
  right: 15%;
  color: #e6bf89;
  font-size: 14px;
}

.success-spark.c3 {
  right: 23%;
  bottom: 18%;
  color: #e6bf89;
  font-size: 13px;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 5px 54px 21px;
  color: #ad927d;
  font-family: var(--hand);
  font-size: 11px;
  letter-spacing: .03em;
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-note span {
  color: #d99073;
  font-family: var(--sans);
  font-size: 11px;
}

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  padding: 10px 16px 10px 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(72, 51, 39, .94);
  color: #fff8ed;
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: .02em;
  box-shadow: 0 16px 38px -14px rgba(48, 31, 23, .6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  backdrop-filter: blur(10px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(244, 197, 157, .18);
  color: #f3c39c;
}

.toast-icon svg {
  width: 12px;
  height: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .site-header,
  .site-footer {
    padding-right: 38px;
    padding-left: 38px;
  }

  .login-layout {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 40px;
    padding-right: 38px;
    padding-left: 38px;
  }

  .intro h1 {
    font-size: clamp(46px, 4.45vw, 56px);
  }

  .hero {
    --cat-size: clamp(245px, 25vw, 315px);
    height: clamp(295px, 27vw, 330px);
  }

  .cat-photo {
    left: 5%;
  }

  .cat-note {
    left: calc(var(--cat-size) + 7%);
  }

  .cat-bubble {
    left: calc(var(--cat-size) + 7%);
  }

  .friend-stack {
    right: 0;
  }

  .login-paper {
    padding-right: 29px;
    padding-left: 29px;
  }

  .bunny-peek {
    left: -81px;
    width: 168px;
  }
}

@media (max-width: 990px) {
  .login-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 540px;
    padding: 25px 28px 20px;
  }

  .intro {
    max-width: 470px;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .intro h1 {
    margin-top: 14px;
    font-size: clamp(35px, 6.1vw, 46px);
  }

  .lede {
    margin-top: 13px;
    font-size: 16px;
  }

  .hero {
    --cat-size: 240px;
    height: 235px;
    margin-top: 15px;
  }

  .cat-wash {
    top: 3%;
    left: 50%;
    width: 290px;
    height: 240px;
    transform: translateX(-50%) rotate(-6deg);
  }

  .cat-ground {
    bottom: 18px;
    left: 50%;
    width: 230px;
    transform: translateX(-50%);
  }

  .cat-photo {
    bottom: 2px;
    left: 50%;
    width: var(--cat-size);
    transform: translateX(-50%);
    animation: none;
  }

  .cat-note {
    top: 15%;
    left: auto;
    right: 2%;
    min-width: 154px;
    padding: 9px 10px 8px 12px;
  }

  .cat-note b {
    font-size: 16px;
  }

  .cat-note small {
    font-size: 10px;
  }

  .cat-bubble {
    top: 40%;
    left: auto;
    right: 3%;
    font-size: 12.5px;
    padding: 8px 10px 7px;
  }

  .hero-heart,
  .hero-spark,
  .friend-stack {
    display: none;
  }

  .login-area {
    width: 100%;
    max-width: 432px;
    margin-top: 24px;
    padding-top: 0;
  }

  .bunny-peek {
    display: none;
  }

  .login-paper {
    min-height: 0;
    padding: 32px 31px 22px;
    transform: none;
  }

  .login-success {
    min-height: 560px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 17px 18px 0;
  }

  .brand-word {
    font-size: 37px;
  }

  .brand-cn {
    font-size: 11px;
  }

  .header-right {
    gap: 8px;
  }

  .header-note {
    display: none;
  }

  .create-pill {
    height: 35px;
    padding: 0 12px;
    font-size: 12.5px;
  }

  .create-pill .icon {
    width: 13px;
    height: 13px;
  }

  .login-layout {
    padding: 18px 18px 16px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .eyebrow-paw {
    width: 22px;
    height: 22px;
  }

  .intro h1 {
    font-size: clamp(32px, 8.9vw, 39px);
    line-height: 1.28;
  }

  .lede {
    display: none;
  }

  .hero {
    --cat-size: clamp(132px, 34vw, 150px);
    height: 128px;
    margin-top: 7px;
  }

  .cat-wash {
    width: 178px;
    height: 137px;
  }

  .cat-photo {
    width: var(--cat-size);
    bottom: 0;
  }

  .cat-ground {
    bottom: 3px;
    width: 130px;
  }

  .cat-note,
  .cat-bubble {
    display: none;
  }

  .login-area {
    margin-top: 16px;
  }

  .login-paper {
    padding: 27px 21px 19px;
    border-radius: 25px 28px 23px 27px;
  }

  .login-paper::after {
    inset: 6px;
    border-radius: 19px 22px 17px 21px;
  }

  .paper-tape {
    width: 94px;
    height: 25px;
  }

  .login-head h2 {
    font-size: 28px;
  }

  .login-sub {
    font-size: 12.5px;
  }

  .login-tabs {
    gap: 19px;
    margin-top: 15px;
  }

  .tab-btn {
    font-size: 13.5px;
  }

  .form-field > label,
  .label-row label {
    font-size: 13px;
  }

  .input-shell {
    height: 48px;
  }

  .remember {
    font-size: 11.5px;
  }

  .remember em {
    display: none;
  }

  .submit-btn {
    height: 50px;
    font-size: 15px;
  }

  .demo-note {
    font-size: 9.5px;
  }

  .social-btn {
    height: 40px;
    font-size: 11.5px;
  }

  .signup-line {
    font-size: 11.5px;
  }

  .terms {
    font-size: 9px;
  }

  .login-caption {
    font-size: 10.5px;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
    padding: 4px 18px 18px;
    font-size: 9.5px;
    text-align: center;
  }

  .login-success {
    min-height: 540px;
    padding: 30px 22px 24px;
  }

  .success-cat {
    width: 96px;
    height: 96px;
    margin-bottom: 14px;
  }

  .login-success h2 {
    font-size: 27px;
  }

  .success-copy {
    font-size: 13px;
  }

  .success-note {
    margin-top: 17px;
  }
}

@media (max-width: 700px) {
  .loading-frame {
    transform: translateY(-1vh);
    padding: 0 20px;
  }

  .loading-brand-img {
    width: 88vw;
  }

  .loading-progress {
    width: min(86vw, 480px);
    height: 34px;
    margin-top: 12px;
  }

  .loading-rail {
    height: 23px;
  }

  .loading-ball {
    width: 52px;
    height: 52px;
  }

  .paw-step {
    width: 19px;
    height: 19px;
  }

  .loading-caption {
    margin-top: 34px;
    font-size: 13px;
    letter-spacing: .12em;
  }

  .loading-skip {
    bottom: 22px;
    font-size: 10.5px;
  }
}

@media (max-height: 650px) and (min-width: 701px) {
  .loading-brand-img {
    width: min(66vw, 780px);
  }

  .loading-caption {
    margin-top: 24px;
  }

  .loading-skip {
    bottom: 20px;
  }
}

@media (max-height: 840px) and (min-width: 991px) {
  .site-header {
    padding-top: 19px;
  }

  .login-layout {
    padding-top: 8px;
    padding-bottom: 14px;
  }

  .intro h1 {
    margin-top: 12px;
    font-size: clamp(44px, 4.1vw, 55px);
  }

  .lede {
    margin-top: 13px;
    font-size: 17px;
    line-height: 1.7;
  }

  .hero {
    --cat-size: clamp(235px, 23vw, 295px);
    height: 260px;
    margin-top: 10px;
  }

  .cat-photo {
    width: var(--cat-size);
    bottom: 5px;
  }

  .cat-note {
    top: 7%;
  }

  .cat-bubble {
    top: 41%;
  }

  .login-paper {
    min-height: 590px;
    padding-top: 29px;
    padding-bottom: 19px;
  }

  .login-tabs {
    margin-top: 14px;
  }

  #loginForm {
    margin-top: 13px;
  }

  .form-field {
    margin-bottom: 9px;
  }

  .input-shell {
    height: 47px;
  }

  .submit-btn {
    height: 49px;
    margin-top: 13px;
  }

  .or-divider {
    margin: 11px 0 8px;
  }

  .social-btn {
    height: 39px;
  }

  .signup-line {
    margin-top: 12px;
  }

  .terms {
    margin-top: 6px;
  }

  .site-footer {
    padding-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
