/**
 * INK-GAG 制作台 · 登录基座（P-css-m：v2 已外置 login-v2.css）
 * 加载：须在 ink-gag-studio.css 之后、login-v2 之前。
 */

/* —— 登录基座（原主 CSS「创意登录台」）—— */
/* —— 创意登录台 —— */
.igs-login-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  overflow: auto;
  --gate-mx: 0;
  --gate-my: 0;
}
.igs-login-gate[hidden] { display: none !important; }

/* —— 会话恢复遮罩（软刷新 / 冷启动有 cookie 时，避免闪登录页）—— */
.igs-session-restore {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(20, 28, 40, 0.72), rgba(8, 10, 14, 0.88));
  backdrop-filter: blur(6px);
}
.igs-session-restore[hidden] { display: none !important; }
.igs-session-restore__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 12rem;
  padding: 1.35rem 1.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8eef6;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.igs-session-restore__card strong {
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.igs-session-restore__card p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.72;
  line-height: 1.4;
}
.igs-session-restore__spin {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(140, 200, 255, 0.95);
  animation: igs-session-restore-spin 0.75s linear infinite;
}
@keyframes igs-session-restore-spin {
  to { transform: rotate(360deg); }
}
.igs-login-gate.is-unlocking .igs-login-gate__stage {
  animation: igs-gate-unlock 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes igs-gate-unlock {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.06) translateY(-12px); filter: blur(4px); }
}
.igs-login-gate__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d1a16;
}
.igs-login-gate__hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.igs-login-gate__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.02);
  animation: igs-gate-hero-breathe 18s ease-in-out infinite alternate;
}
@keyframes igs-gate-hero-breathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}
.igs-login-gate__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 58% at 50% 46%, transparent 0%, rgba(8, 15, 12, 0.35) 68%, rgba(6, 10, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 14, 11, 0.35) 0%, transparent 28%, transparent 72%, rgba(8, 14, 11, 0.55) 100%);
}
.igs-login-gate__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.38;
  z-index: 2;
  will-change: transform;
  animation: igs-gate-float 9s ease-in-out infinite;
  transform: translate3d(calc(var(--gate-mx) * var(--p, 0.03) * 100px), calc(var(--gate-my) * var(--p, 0.03) * 100px), 0);
}
.igs-login-gate__orb--a {
  --p: 0.035;
  width: 18rem; height: 18rem; left: -4rem; top: 10%;
  background: rgba(61, 154, 122, 0.45);
}
.igs-login-gate__orb--b {
  --p: -0.028;
  width: 14rem; height: 14rem; right: -2rem; bottom: 12%;
  background: rgba(196, 120, 70, 0.35);
  animation-delay: -3.5s;
}
.igs-login-gate__orb--c {
  --p: 0.02;
  width: 10rem; height: 10rem; left: 42%; top: -3rem;
  background: rgba(243, 220, 170, 0.22);
  animation-delay: -6s;
  animation-duration: 11s;
}
.igs-login-gate__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.7;
  animation: igs-gate-grid-drift 28s linear infinite;
}
@keyframes igs-gate-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}
.igs-login-gate__inkwash {
  position: absolute;
  inset: -10%;
  z-index: 2;
  background:
    radial-gradient(circle at 22% 70%, rgba(20, 40, 32, 0.45) 0%, transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(40, 28, 18, 0.35) 0%, transparent 32%);
  opacity: 0.85;
  animation: igs-gate-wash 14s ease-in-out infinite alternate;
  pointer-events: none;
}
.igs-login-gate__aurora {
  position: absolute;
  inset: -25%;
  z-index: 2;
  pointer-events: none;
  background:
    conic-gradient(from 200deg at 42% 38%, rgba(61, 154, 122, 0.16), transparent 35%, rgba(196, 120, 70, 0.12), transparent 62%, rgba(243, 220, 170, 0.14), transparent 85%, rgba(61, 154, 122, 0.14));
  filter: blur(52px);
  opacity: 0.72;
  animation: igs-gate-aurora 20s ease-in-out infinite alternate;
}
@keyframes igs-gate-aurora {
  from { transform: translate(-4%, -3%) rotate(0deg) scale(1); opacity: 0.55; }
  to { transform: translate(5%, 4%) rotate(28deg) scale(1.1); opacity: 0.82; }
}
.igs-login-gate__paper {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 250, 235, 0.35) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}
@keyframes igs-gate-wash {
  from { transform: scale(1) translate(0, 0); opacity: 0.7; }
  to { transform: scale(1.06) translate(-1.5%, 1%); opacity: 0.95; }
}
.igs-login-gate__vine {
  position: absolute;
  top: 0;
  z-index: 3;
  width: min(26vw, 10rem);
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}
.igs-login-gate__vine--l { left: 0; }
.igs-login-gate__vine--r {
  right: 0;
  left: auto;
  transform: scaleX(1);
  opacity: 0.75;
}
.igs-login-gate__vine-path {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: igs-gate-vine 4.5s ease-out 0.3s both;
}
.igs-login-gate__vine--r .igs-login-gate__vine-path { animation-delay: 0.55s; }
@keyframes igs-gate-vine {
  to { stroke-dashoffset: 0; }
}
.igs-login-gate__particles,
.igs-login-gate__burst,
.igs-login-gate__petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.igs-login-gate__petal {
  position: absolute;
  top: -6%;
  left: var(--x, 50%);
  width: var(--w, 8px);
  height: calc(var(--w, 8px) * 1.35);
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(145deg, rgba(244, 234, 212, 0.75), rgba(200, 230, 210, 0.45));
  opacity: 0;
  transform: rotate(var(--rot, 15deg));
  animation: igs-gate-petal var(--dur, 14s) linear var(--delay, 0s) infinite;
}
@keyframes igs-gate-petal {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(var(--rot, 15deg)); }
  8% { opacity: 0.7; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), 115vh, 0) rotate(calc(var(--rot, 15deg) + 180deg)); }
}
.igs-login-gate__dot {
  position: absolute;
  left: var(--x, 50%);
  bottom: -8%;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: var(--c, rgba(200, 230, 210, 0.55));
  opacity: 0;
  animation: igs-gate-dot var(--dur, 8s) linear var(--delay, 0s) infinite;
}
@keyframes igs-gate-dot {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.6); }
  12% { opacity: 0.85; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0), -110vh, 0) scale(1.1); }
}
.igs-login-gate__spark {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 40%);
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--c, #f4ead4);
  opacity: 0;
  animation: igs-gate-spark 0.7s ease-out forwards;
}
@keyframes igs-gate-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -40px)) scale(0.2); }
}
.igs-login-gate__scraps {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.igs-login-gate__scrap {
  position: absolute;
  pointer-events: auto;
  border: 0;
  font-family: var(--igs-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2a241c;
  background: #f4ead4;
  padding: 0.3rem 0.6rem;
  border-radius: 0.2rem 0.55rem 0.2rem 0.55rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
  opacity: 0;
  cursor: pointer;
  transform: rotate(var(--rot, -6deg)) translateY(8px);
  animation:
    igs-gate-scrap-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--in-delay, 0.4s) forwards,
    igs-gate-scrap 11s ease-in-out var(--float-delay, 1s) infinite;
}
.igs-login-gate__scrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1.5px dashed rgba(40, 36, 30, 0.18);
  border-radius: inherit;
  pointer-events: none;
}
.igs-login-gate__scrap:hover {
  filter: brightness(1.06);
  z-index: 2;
}
.igs-login-gate__scrap.is-hit {
  animation: igs-gate-scrap-hit 0.45s ease;
}
@keyframes igs-gate-scrap-in {
  to { opacity: 0.78; transform: rotate(var(--rot, -6deg)) translateY(0); }
}
@keyframes igs-gate-scrap-hit {
  0% { transform: rotate(var(--rot, -6deg)) scale(1); }
  40% { transform: rotate(calc(var(--rot, -6deg) - 4deg)) scale(1.08); }
  100% { transform: rotate(var(--rot, -6deg)) scale(1); opacity: 0.9; }
}
.igs-login-gate__scrap--a { left: 5%; top: 16%; --rot: -8deg; --in-delay: 0.35s; --float-delay: 0.9s; }
.igs-login-gate__scrap--b { right: 6%; top: 20%; --rot: 7deg; --in-delay: 0.5s; --float-delay: -1.2s; background: #efe3c8; }
.igs-login-gate__scrap--c { left: 3%; bottom: 20%; --rot: 5deg; --in-delay: 0.65s; --float-delay: -3.5s; background: #e8f0e6; }
.igs-login-gate__scrap--d { right: 4%; bottom: 16%; --rot: -5deg; --in-delay: 0.8s; --float-delay: -5.5s; }
.igs-login-gate__scrap--e { left: 46%; top: 7%; --rot: 3deg; --in-delay: 0.45s; --float-delay: -0.8s; background: #f0e0d0; }
.igs-login-gate__scrap--f { right: 8%; top: 38%; --rot: -4deg; --in-delay: 0.55s; --float-delay: -2.2s; }
.igs-login-gate__scrap--g { left: 8%; top: 42%; --rot: 6deg; --in-delay: 0.7s; --float-delay: -4.1s; background: #e6efe8; }
@keyframes igs-gate-scrap {
  0%, 100% { transform: translateY(0) rotate(var(--rot, -6deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--rot, -6deg) + 3deg)); }
}
@keyframes igs-gate-float {
  0%, 100% { transform: translate3d(calc(var(--gate-mx) * var(--p, 0.03) * 100px), calc(var(--gate-my) * var(--p, 0.03) * 100px), 0) scale(1); }
  50% { transform: translate3d(calc(var(--gate-mx) * var(--p, 0.03) * 100px), calc(var(--gate-my) * var(--p, 0.03) * 100px - 18px), 0) scale(1.04); }
}
.igs-login-gate__stage {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: igs-gate-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.igs-login-gate__shell {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .igs-login-gate__stage--premium {
    width: min(1080px, 94vw);
  }
  .igs-login-gate__shell {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 520px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1rem, 2.5vw, 2rem);
    border-radius: 1.75rem;
    background: rgba(12, 22, 18, 0.28);
    border: 1px solid rgba(201, 168, 106, 0.14);
    box-shadow:
      0 32px 80px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 252, 246, 0.06);
    backdrop-filter: blur(14px) saturate(1.15);
  }
  .igs-login-gate__stage--premium .igs-login-gate__brand {
    text-align: left;
    padding-left: 0.35rem;
  }
  .igs-login-gate__stage--premium .igs-login-gate__title {
    justify-content: flex-start;
    font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  }
  .igs-login-gate__stage--premium .igs-login-gate__mark {
    margin: 0 0 1rem;
  }
  .igs-login-gate__stage--premium .igs-login-gate__punch {
    margin-left: 0;
  }
  .igs-login-gate__stage--premium .igs-login-gate__steps {
    margin-left: 0;
  }
}
@keyframes igs-gate-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.igs-login-gate__brand { text-align: center; color: #f3efe4; }
.igs-login-gate__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 4.25rem; height: 4.25rem;
  margin: 0 auto 0.85rem;
  border: 0;
  padding: 0;
  border-radius: 1.15rem;
  background: linear-gradient(145deg, var(--igs-accent) 0%, var(--igs-color-cta, var(--igs-accent-2)) 55%, color-mix(in srgb, var(--igs-accent) 70%, #142028) 100%);
  color: var(--igs-on-accent, #142028);
  font-family: var(--igs-serif);
  font-size: 1.75rem;
  font-weight: 700;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 168, 106, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: igs-gate-mark 2.8s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
}
.igs-login-gate__mark:hover {
  filter: brightness(1.08);
}
.igs-login-gate__mark:active {
  transform: scale(0.96) rotate(0deg);
}
.igs-login-gate__mark-glyph {
  position: relative;
  z-index: 2;
}
.igs-login-gate__mark-ring {
  position: absolute;
  inset: -6px;
  border-radius: 1.25rem;
  border: 1.5px dashed rgba(243, 239, 228, 0.35);
  opacity: 0.7;
  animation: igs-gate-ring 4.5s linear infinite;
  pointer-events: none;
}
@keyframes igs-gate-ring {
  to { transform: rotate(360deg); }
}
.igs-login-gate__mark-ink {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(243,239,228,0.55) 0%, transparent 62%);
  opacity: 0;
  transform: scale(0.2);
  pointer-events: none;
  z-index: 1;
}
.igs-login-gate__mark.is-splash .igs-login-gate__mark-ink {
  animation: igs-gate-splash 0.65s ease-out;
}
.igs-login-gate__mark.is-splash .igs-login-gate__mark-ring {
  animation: igs-gate-ring-pop 0.55s ease-out;
}
@keyframes igs-gate-splash {
  0% { opacity: 0.9; transform: scale(0.2); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes igs-gate-ring-pop {
  0% { opacity: 0.9; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.45) rotate(40deg); }
}
@keyframes igs-gate-mark {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg) translateY(-2px); }
}
.igs-login-gate__kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.62);
}
.igs-login-gate__kicker span {
  color: #c8e6d6;
  font-weight: 700;
}
.igs-login-gate__title {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--igs-serif);
  font-size: clamp(2.15rem, 6.5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  justify-content: center;
  gap: 0.1em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.igs-login-gate__title-word {
  display: inline-block;
  animation: igs-gate-title-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.igs-login-gate__title-word:nth-child(2) { animation-delay: 0.08s; }
.igs-login-gate__title-word:nth-child(3) { animation-delay: 0.16s; }
@keyframes igs-gate-title-pop {
  from { opacity: 0; transform: translateY(12px) rotate(-4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.igs-login-gate__punch {
  margin: 0 auto 0.35rem;
  min-height: 1.4em;
  max-width: 22rem;
  padding: 0.28rem 0.75rem;
  border-radius: 0.35rem 0.85rem 0.35rem 0.85rem;
  background: rgba(244, 234, 212, 0.14);
  border: 1px dashed rgba(243, 239, 228, 0.28);
  color: #f4ead4;
  font-family: var(--igs-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.igs-login-gate__punch.is-flip {
  opacity: 0;
  transform: translateY(6px);
}
.igs-login-gate__lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(243, 239, 228, 0.72);
}
.igs-login-gate__steps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.55rem auto 0;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(243, 239, 228, 0.08);
  border: 1px solid rgba(243, 239, 228, 0.14);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(243, 239, 228, 0.7);
}
.igs-login-gate__steps i {
  width: 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 230, 210, 0.7), transparent);
}
.igs-login-gate__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.65rem 1.55rem 1.35rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(165deg, rgba(255, 253, 248, 0.97) 0%, rgba(248, 244, 234, 0.94) 100%);
  border: 1px solid rgba(201, 168, 106, 0.28);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  backdrop-filter: blur(16px) saturate(1.1);
  overflow: hidden;
  animation: igs-gate-card-float 7s ease-in-out infinite;
  min-width: min(100%, 22rem);
}
.igs-login-gate__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.65), transparent);
  pointer-events: none;
  z-index: 2;
}
.igs-login-gate__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(61, 154, 122, 0.22);
  animation: igs-gate-card-glow 5s ease-in-out infinite alternate;
}
@keyframes igs-gate-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes igs-gate-card-glow {
  from { box-shadow: inset 0 0 0 1px rgba(61, 154, 122, 0.18), 0 20px 50px rgba(0,0,0,0.28); }
  to { box-shadow: inset 0 0 0 1px rgba(196, 120, 70, 0.28), 0 24px 56px rgba(36, 54, 42, 0.32); }
}

.igs-login-gate__mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(40, 55, 45, 0.08);
  border: 1px solid rgba(40, 55, 45, 0.08);
}
.igs-login-gate__mode-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.6rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(40, 50, 42, 0.55);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.igs-login-gate__mode-btn:hover {
  color: rgba(30, 50, 40, 0.85);
}
.igs-login-gate__mode-btn.is-on {
  color: #1d3f32;
  background: linear-gradient(135deg, #e8f3ea, #f7f0e0);
  box-shadow: 0 2px 8px rgba(40, 70, 50, 0.12);
}
.igs-login-gate__pane {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
.igs-login-gate__pane.is-on {
  display: flex;
  animation: igs-gate-pane-in 0.28s ease;
}
.igs-login-gate__pane[hidden] {
  display: none !important;
}
@keyframes igs-gate-pane-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.igs-login-gate__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: stretch;
}
.igs-login-gate__code-btn {
  appearance: none;
  border: 1px solid rgba(40, 70, 50, 0.18);
  border-radius: 0.55rem;
  padding: 0 0.85rem;
  white-space: nowrap;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f4d32;
  background: linear-gradient(180deg, #f4f7f2, #e8eee6);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.igs-login-gate__code-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
.igs-login-gate__code-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.igs-login-gate__dev-code {
  margin: -0.2rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px dashed rgba(160, 110, 40, 0.35);
  background: rgba(255, 244, 214, 0.85);
  color: #6a4a12;
  font-size: 0.8rem;
  line-height: 1.4;
}
.igs-login-gate__dev-code strong {
  letter-spacing: 0.28em;
  font-size: 1.05rem;
  color: #3d2a08;
}
  transform: perspective(900px) rotateX(calc(var(--gate-my) * -3deg)) rotateY(calc(var(--gate-mx) * 4deg));
  transition: transform 0.15s ease-out, box-shadow 0.2s ease;
}
.igs-login-gate__card.is-busy {
  box-shadow: 0 20px 50px rgba(0,0,0,0.28), 0 0 0 2px rgba(31,107,88,0.25);
}
.igs-login-gate__card.is-ok {
  animation: igs-gate-card-ok 0.45s ease;
}
@keyframes igs-gate-card-ok {
  0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.28); }
  40% { box-shadow: 0 20px 50px rgba(0,0,0,0.28), 0 0 0 3px rgba(27,107,69,0.35); }
}
.igs-login-gate__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 48%, transparent 56%);
  transform: translateX(-30%) rotate(8deg);
  pointer-events: none;
  animation: igs-gate-shine 5.5s ease-in-out infinite;
}
@keyframes igs-gate-shine {
  0%, 55%, 100% { transform: translateX(-40%) rotate(8deg); opacity: 0; }
  60% { opacity: 0.7; }
  78% { transform: translateX(40%) rotate(8deg); opacity: 0; }
}
.igs-login-gate__inkbar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: rgba(31, 107, 88, 0.08);
  z-index: 2;
  overflow: hidden;
}
.igs-login-gate__inkbar i {
  display: block;
  height: 100%;
  width: var(--ink, 0%);
  background: linear-gradient(90deg, #2f8f72, #c45c28);
  transition: width 0.25s ease;
}
.igs-login-gate__card-lab {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--igs-accent);
}
.igs-login-gate__field {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--igs-muted);
}
.igs-login-gate__field input {
  width: 100%;
  border: 1px solid rgba(40, 55, 45, 0.14);
  border-radius: 0.65rem;
  padding: 0.82rem 0.95rem;
  min-height: 3rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--igs-ink);
  background: rgba(255, 253, 248, 0.92);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.igs-login-gate--blend .igs-login-gate__field input,
.igs-login-gate--blend .igs-login-gate__river-field input,
.igs-login-gate--blend .igs-login-gate__pw input,
.igs-login-gate--blend #igsGateLoginEmail,
.igs-login-gate--blend #igsGateLoginPassword {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.igs-login-gate__pw {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  align-items: stretch;
}
.igs-login-gate__field > label {
  cursor: pointer;
}
.igs-login-gate__pw input { padding-right: 0.7rem; }
.igs-login-gate__pw-toggle {
  border: 1px solid var(--igs-line);
  border-radius: 0.55rem;
  background: #f3efe6;
  color: var(--igs-accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 0.65rem;
  cursor: pointer;
  min-width: 3.1rem;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.igs-login-gate__pw-toggle-txt {
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.igs-login-gate__pw-toggle:hover { background: #e8f0e6; }
.igs-login-gate__pw-toggle.is-on {
  background: rgba(31,107,88,0.14);
  border-color: rgba(31,107,88,0.4);
}
.igs-login-gate__caps {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #a65c2e;
}
.igs-login-gate__field input:focus {
  outline: 2px solid rgba(31,107,88,0.35);
  border-color: var(--igs-accent);
  box-shadow: 0 0 0 4px rgba(31,107,88,0.12);
  transform: translateY(-1px);
}
.igs-login-gate--blend .igs-login-gate__field input:focus,
.igs-login-gate--blend .igs-login-gate__river-field input:focus,
.igs-login-gate--blend .igs-login-gate__pw input:focus,
.igs-login-gate--blend #igsGateLoginEmail:focus,
.igs-login-gate--blend #igsGateLoginPassword:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  background: transparent !important;
}
.igs-login-gate__quick {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.igs-login-gate__chip {
  border: 1px dashed rgba(31,107,88,0.4);
  background: rgba(31,107,88,0.06);
  color: var(--igs-accent);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.igs-login-gate__chip small {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.7;
  margin-left: 0.15rem;
}
.igs-login-gate__chip:hover { background: rgba(31,107,88,0.12); transform: translateY(-1px); }
.igs-login-gate__chip.is-pop {
  animation: igs-gate-chip-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  background: rgba(31,107,88,0.16);
  border-style: solid;
}
@keyframes igs-gate-chip-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1); }
}
.igs-login-gate__submit {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1.1rem;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--igs-accent) 0%, var(--igs-color-cta, var(--igs-accent-2)) 52%, color-mix(in srgb, var(--igs-accent) 65%, var(--igs-ink)) 100%);
  box-shadow:
    0 10px 28px color-mix(in srgb, var(--igs-accent) 38%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.igs-login-gate__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--igs-accent) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.igs-login-gate__submit:disabled {
  opacity: 0.85;
  cursor: wait;
}
.igs-login-gate__submit.is-loading .igs-login-gate__submit-lab::after {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.45rem;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.05rem;
  animation: igs-gate-spin 0.7s linear infinite;
}
@keyframes igs-gate-spin {
  to { transform: rotate(360deg); }
}
.igs-login-gate__submit-lab { position: relative; z-index: 1; }
.igs-login-gate__submit-ink {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  opacity: 0;
  pointer-events: none;
}
.igs-login-gate__submit.is-ink .igs-login-gate__submit-ink {
  animation: igs-gate-btn-ink 0.55s ease-out;
}
@keyframes igs-gate-btn-ink {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(28); }
}
.igs-login-gate__hint {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--igs-muted);
  line-height: 1.45;
}
.igs-login-gate__hint.is-shake {
  animation: igs-gate-shake 0.4s ease;
  color: #a65c2e;
}
.igs-login-gate__hint.is-ok { color: #1b6b45; font-weight: 700; }
.igs-login-gate__foot {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(106, 100, 90, 0.85);
  letter-spacing: 0.02em;
}
@keyframes igs-gate-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (max-width: 640px) {
  .igs-login-gate__scrap--e,
  .igs-login-gate__vine--r { display: none; }
  .igs-login-gate__scrap { font-size: 0.7rem; }
  .igs-login-gate__card { transform: none; }
  .igs-login-gate__steps { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .igs-login-gate__hero img,
  .igs-login-gate__orb,
  .igs-login-gate__grid,
  .igs-login-gate__inkwash,
  .igs-login-gate__aurora,
  .igs-login-gate__petal,
  .igs-login-gate__scrap,
  .igs-login-gate__mark,
  .igs-login-gate__mark-ring,
  .igs-login-gate__shine,
  .igs-login-gate__vine-path,
  .igs-login-gate__title-word,
  .igs-login-gate__dot,
  .igs-login-gate__card,
  .igs-login-gate__card::after {
    animation: none !important;
  }
  .igs-login-gate__card { transform: none; }
  .igs-login-gate__vine-path { stroke-dashoffset: 0; }
  .igs-login-gate__scrap { opacity: 0.72; transform: rotate(var(--rot, -6deg)); }
}
