.ry-login {
  --ry-ink: #13352d;
  --ry-muted: #64766f;
  --ry-soft: #94a59f;
  --ry-brand: #0bd092;
  --ry-brand-deep: #08a978;
  --ry-brand-tint: #e3f8ef;
  --ry-shadow: 0 16px 44px rgb(19 53 45 / 10%), 0 2px 6px rgb(19 53 45 / 5%);
  --ry-num: 'DIN Alternate', bahnschrift, 'SF Pro Display', sans-serif;

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  height: 100vh;
  padding: 0 clamp(40px, 5.5vw, 100px);
  overflow: hidden auto;
  font-family:
    'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei',
    system-ui, sans-serif;
  color: var(--ry-ink);
  color-scheme: light;
  background:
    radial-gradient(
      900px 640px at 8% 0%,
      rgb(11 208 146 / 20%),
      transparent 64%
    ),
    radial-gradient(
      760px 620px at 100% 100%,
      rgb(63 164 224 / 18%),
      transparent 62%
    ),
    linear-gradient(160deg, #f4fcf8 0%, #eef8f4 50%, #f1f7fb 100%);
  -webkit-font-smoothing: antialiased;
}

.ry-login__waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ry-login__topbar {
  position: absolute;
  top: 24px;
  left: clamp(40px, 5.5vw, 100px);
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}

.ry-login__topbar img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.ry-login__footer {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  font-size: 12px;
  color: var(--ry-soft);
  text-align: center;
}

/* ---------- 左侧介绍 ---------- */
.ry-login__intro {
  position: relative;
  z-index: 1;
  padding: 84px 0 56px;
}

.ry-login__intro h1 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ry-login__intro h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, var(--ry-brand-deep), var(--ry-brand));
  background-clip: text;
}

.ry-login__sub {
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--ry-muted);
}

.ry-login__mobile-mascot {
  display: none;
}

.ry-stage {
  position: relative;
  width: 780px;
  height: 452px;
  margin-top: 20px;
  transform-origin: left top;
}

.ry-stage__halo,
.ry-stage__orbit,
.ry-stage__platform {
  position: absolute;
  left: 390px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ry-stage__halo {
  top: 236px;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle at 50% 40%,
    #fff 0%,
    rgb(220 245 236 / 90%) 45%,
    rgb(214 236 248 / 55%) 70%,
    transparent 72%
  );
}

.ry-stage__orbit {
  top: 236px;
  width: 470px;
  height: 470px;
  border: 1.5px dashed rgb(8 169 120 / 18%);
}

.ry-stage__orbit::after {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  content: '';
  background: #3fa4e0;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgb(63 164 224 / 18%);
}

.ry-stage__platform {
  top: 404px;
  width: 250px;
  height: 38px;
  background: radial-gradient(
    closest-side,
    rgb(8 169 120 / 22%),
    rgb(8 169 120 / 6%) 70%,
    transparent
  );
}

.ry-stage__mascot {
  position: absolute;
  top: 78px;
  left: 390px;
  width: 206px;
  filter: drop-shadow(0 18px 24px rgb(30 110 160 / 18%));
  transform: translateX(-50%);
  animation: ry-bob 4.5s ease-in-out infinite;
}

.ry-stage__bubble {
  position: absolute;
  top: 14px;
  left: 390px;
  z-index: 3;
  padding: 9px 14px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--ry-shadow);
  opacity: 0;
  transform: translateX(-50%);
  animation: ry-pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) 1.1s forwards;
}

.ry-stage__bubble::after {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  content: '';
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.ry-stage__bubble b {
  color: #3fa4e0;
}

.ry-card {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  background: rgb(255 255 255 / 88%);
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: var(--ry-shadow);
  opacity: 0;
  backdrop-filter: blur(14px);
  animation:
    ry-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
    ry-float 7s ease-in-out infinite;
}

.ry-card:nth-of-type(1) {
  animation-delay: 0.1s, 0.8s;
}

.ry-card:nth-of-type(2) {
  animation-delay: 0.2s, 1.4s;
}

.ry-card:nth-of-type(3) {
  animation-delay: 0.3s, 2s;
}

.ry-card:nth-of-type(4) {
  animation-delay: 0.4s, 2.6s;
}

.ry-card:nth-of-type(5) {
  animation-delay: 0.5s, 3.2s;
}

.ry-card:nth-of-type(6) {
  animation-delay: 0.6s, 3.8s;
}

.ry-card:nth-of-type(7) {
  animation-delay: 0.7s, 4.4s;
}

.ry-card__title {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ry-muted);
}

.ry-card__label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.ry-badge {
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ry-brand-deep);
  background: var(--ry-brand-tint);
  border-radius: 999px;
}

.ry-chip {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.ry-card--profile {
  top: 22px;
  left: 0;
  width: 256px;
}

.ry-who {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ry-who__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3ddcaa, var(--ry-brand-deep));
  border: 2px solid #fff;
  border-radius: 50%;
}

.ry-who__name {
  font-size: 15px;
  font-weight: 600;
}

.ry-who__tag {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ry-muted);
}

.ry-who__ring {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
}

.ry-who__ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ry-num);
  font-size: 12px;
  font-weight: 700;
}

.ry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.ry-stat {
  padding: 7px 8px;
  background: #f5faf8;
  border-radius: 10px;
}

.ry-stat b {
  display: block;
  font-family: var(--ry-num);
  font-size: 16px;
  font-weight: 700;
}

.ry-stat b small {
  margin-left: 1px;
  font-size: 11px;
  font-weight: 500;
}

.ry-stat span {
  font-size: 11px;
  color: var(--ry-muted);
}

.ry-down {
  color: var(--ry-brand-deep);
}

.ry-card--diet {
  top: 186px;
  left: 26px;
  width: 232px;
}

.ry-diet {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
}

.ry-diet__kcal {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
}

.ry-diet__kcal span {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  line-height: 1.1;
  text-align: center;
}

.ry-diet__kcal b {
  font-family: var(--ry-num);
  font-size: 15px;
}

.ry-diet__kcal small {
  font-size: 10px;
  color: var(--ry-muted);
}

.ry-diet__macros {
  display: grid;
  flex: 1;
  gap: 7px;
  font-size: 11px;
  color: var(--ry-muted);
}

.ry-macro {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
  align-items: center;
}

.ry-bar {
  height: 6px;
  overflow: hidden;
  background: #edf3f0;
  border-radius: 3px;
}

.ry-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.ry-meals {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.ry-meals span {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-size: 12px;
  color: var(--ry-brand-deep);
  background: var(--ry-brand-tint);
  border-radius: 8px;
}

.ry-meals span:not(.ry-meals__todo)::before {
  margin-right: 4px;
  content: '✓';
  font-weight: 700;
}

.ry-meals .ry-meals__todo {
  color: var(--ry-soft);
  background: #f2f5f4;
}

.ry-card--team {
  top: 372px;
  left: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 262px;
  padding: 11px 14px;
}

.ry-faces {
  display: flex;
}

.ry-faces i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ry-faces i:first-child {
  margin-left: 0;
}

.ry-card--team b,
.ry-card--remind b {
  display: block;
  font-size: 13px;
}

.ry-card--team span,
.ry-card--remind span {
  font-size: 11px;
  color: var(--ry-muted);
}

.ry-card--glucose {
  top: 70px;
  left: 534px;
  width: 230px;
}

.ry-glucose__big {
  margin-top: 6px;
  font-family: var(--ry-num);
  font-size: 26px;
  font-weight: 700;
}

.ry-glucose__big small {
  margin-left: 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--ry-muted);
}

.ry-card--glucose svg {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 4px;
}

.ry-card--ai {
  top: 226px;
  left: 548px;
  width: 232px;
}

.ry-ai__q,
.ry-ai__a {
  padding: 7px 10px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  border-radius: 10px;
}

.ry-ai__q {
  margin-left: 34px;
  color: #fff;
  background: #3fa4e0;
  border-bottom-right-radius: 3px;
}

.ry-ai__a {
  margin-right: 10px;
  background: #f4f7fb;
  border-bottom-left-radius: 3px;
}

.ry-ai__a b {
  font-weight: 600;
  color: var(--ry-brand-deep);
}

.ry-spark {
  color: #7c6cf0;
}

.ry-card--remind {
  top: 384px;
  left: 524px;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 236px;
  padding: 11px 14px;
}

.ry-card--device {
  top: 408px;
  left: 302px;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
}

.ry-card--device .ry-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.ry-card--device b {
  font-size: 12px;
}

.ry-card--device span {
  margin-left: 4px;
  font-size: 11px;
  color: var(--ry-muted);
}

.ry-live-dot {
  width: 7px;
  height: 7px;
  background: var(--ry-brand);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(11 208 146 / 20%);
}

@keyframes ry-bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes ry-pop {
  from {
    opacity: 0;
    scale: 0.6;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes ry-rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes ry-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ---------- 右侧登录卡 ---------- */
.ry-login__card {
  --background: 0 0% 100%;
  --foreground: 165 47% 14%;
  --muted-foreground: 156 8% 43%;
  --primary: 161 90% 37%;
  --input: 156 18% 95%;
  --border: 156 18% 90%;

  position: relative;
  z-index: 1;
  width: 420px;
  padding: 32px 36px 22px;
  color: var(--ry-ink);
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgb(19 53 45 / 12%),
    0 4px 12px rgb(19 53 45 / 4%);
}

.ry-login__card::before {
  position: absolute;
  top: 0;
  right: 36px;
  left: 36px;
  height: 4px;
  content: '';
  background: linear-gradient(90deg, var(--ry-brand), #3fa4e0);
  border-radius: 0 0 4px 4px;
}

.ry-login__view h2 {
  margin-bottom: 6px;
  font-size: 25px;
  line-height: 1.4;
  color: var(--ry-ink);
}

.ry-login__view h2 + p {
  font-size: 14px;
}

.ry-login__view .mb-7 {
  margin-bottom: 22px;
}

.ry-login__view input,
.ry-login__view button[role='combobox'] {
  height: 46px;
  padding-inline: 14px;
  font-size: 15px;
  color: var(--ry-ink);
  background: #f5f8f7;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.ry-login__view form .pb-4 {
  padding-bottom: 24px;
}

.ry-login__view form [role='alert'] {
  margin-top: 3px;
  font-size: 12px;
}

.ry-login__view input:hover,
.ry-login__view button[role='combobox']:hover {
  background-color: #eff4f2;
}

.ry-login__view input:focus,
.ry-login__view input:focus-visible,
.ry-login__view button[role='combobox']:focus,
.ry-login__view button[role='combobox'][data-state='open'] {
  background-color: #fff;
  border-color: var(--ry-brand);
  outline: none;
  box-shadow: 0 0 0 4px rgb(11 208 146 / 14%);
}

.ry-login__view input::placeholder {
  color: var(--ry-soft);
}

.ry-login__view input[type='checkbox'] {
  height: auto;
}

.ry-login__view .vben-link {
  color: var(--ry-brand-deep);
}

.ry-login__view button[aria-label='login'] {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-indent: 0.4em;
  letter-spacing: 0.4em;
  background: linear-gradient(90deg, #08b07d, #10c991);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(8 169 120 / 28%);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
}

.ry-login__view button[aria-label='login']:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgb(8 169 120 / 34%);
  transform: translateY(-1px);
}

.ry-login__secure {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ry-soft);
}

.ry-login__secure svg {
  color: var(--ry-brand-deep);
}

/* 入驻入口：login.vue 里的 .ry-enroll */
.ry-enroll {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ry-muted);
  text-align: left;
  cursor: pointer;
  background: linear-gradient(90deg, #f3fbf7, #f0f7fc);
  border: 0;
  border-radius: 14px;
}

.ry-enroll:hover {
  background: linear-gradient(90deg, var(--ry-brand-tint), #e6f4fc);
}

.ry-enroll__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ry-brand-deep);
  background: #fff;
  border-radius: 10px;
}

.ry-enroll__text b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ry-ink);
}

.ry-enroll__arrow {
  margin-left: auto;
  color: var(--ry-soft);
}

/* ---------- 适配 ---------- */
@media (max-width: 1400px) {
  .ry-stage {
    margin-bottom: -54px;
    transform: scale(0.88);
  }
}

@media (max-width: 1240px) {
  .ry-stage {
    margin-bottom: -108px;
    transform: scale(0.76);
  }
}

@media (max-width: 1100px) {
  .ry-stage {
    margin-bottom: -154px;
    transform: scale(0.66);
  }
}

@media (max-width: 960px) {
  .ry-login {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    padding: 0 20px 64px;
  }

  .ry-login__topbar {
    top: 20px;
    left: 20px;
  }

  .ry-login__intro {
    display: grid;
    grid-template-columns: 1fr 84px;
    align-items: end;
    padding: 76px 0 18px;
  }

  .ry-login__intro h1 {
    font-size: 28px;
  }

  .ry-login__sub {
    font-size: 14px;
  }

  .ry-stage {
    display: none;
  }

  .ry-login__mobile-mascot {
    display: block;
    grid-row: 1;
    grid-column: 2;
    width: 84px;
  }

  .ry-login__card {
    width: 100%;
    padding: 28px 20px 20px;
    border-radius: 20px;
  }

  .ry-login__card::before {
    right: 20px;
    left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ry-card,
  .ry-stage__bubble {
    opacity: 1;
    animation: none;
  }

  .ry-stage__mascot {
    animation: none;
  }
}

/* 验证码弹窗视口居中：verify.css 默认 .verifybox 是 absolute + top:25%/left:50%，
   会被吸到登录卡容器里偏离屏幕中央 */
.verifybox {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  z-index: 1002 !important;
  transform: translate(-50%, -50%) !important;
}
