* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg-900: #0f141a;
  --bg-850: #121922;
  --bg-800: #161d26;
  --bg-780: #1a222c;
  --bg-700: #202a35;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text-main: #f5f8fb;
  --text-soft: rgba(245, 248, 251, 0.72);
  --text-faint: rgba(245, 248, 251, 0.46);
  --brand-a: #7dffb6;
  --brand-b: #15c9ff;
  --brand-ink: #06131b;
  --shadow-xl: 0 22px 48px rgba(0, 0, 0, 0.28);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(54, 84, 120, 0.22), transparent 24%),
    linear-gradient(180deg, #13181f 0%, #171d25 40%, #12171d 100%);
  color: var(--text-main);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.portal-shell,
.auth-shell,
.workspace-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.portal-shell {
  padding-top: 66px;
}

.portal-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.35;
  pointer-events: none;
}

.portal-glow-left {
  width: 320px;
  height: 320px;
  top: -100px;
  left: -80px;
  background: rgba(34, 220, 194, 0.24);
}

.portal-glow-right {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -120px;
  background: rgba(35, 173, 255, 0.18);
}

.portal-navbar,
.workspace-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 26px;
  background: rgba(15, 18, 23, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

.portal-navbar-left,
.portal-brand,
.portal-actions,
.workspace-topbar-left,
.workspace-topbar-right {
  display: flex;
  align-items: center;
}

.portal-navbar-left,
.workspace-topbar-left {
  gap: 14px;
}

.portal-brand,
.workspace-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portal-brand-mark,
.workspace-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--brand-ink);
  font-weight: 800;
}

.portal-brand-copy h1,
.workspace-brand-copy h1 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.portal-brand-copy p,
.workspace-brand-copy p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 12px;
}

.portal-version,
.workspace-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.portal-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.portal-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  text-decoration: none;
}

.portal-nav a.active {
  color: #ffffff;
  font-weight: 700;
  position: relative;
}

.portal-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 20px;
  height: 4px;
  margin-left: -10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
}

.portal-enter-btn,
.portal-hero-btn,
.auth-submit,
.auth-toggle button,
.workspace-action-btn,
.workspace-secondary-btn,
.workspace-create-btn,
.workspace-logout-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.portal-enter-btn,
.workspace-action-btn,
.workspace-create-btn {
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--brand-ink);
  font-weight: 700;
}

.workspace-secondary-btn,
.workspace-logout-btn,
.auth-toggle button,
.auth-link-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--line-soft);
}

.portal-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 40px;
  padding: 70px 48px 54px;
}

.portal-hero {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 18px;
}

.portal-emblem {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 800;
  font-size: 24px;
}

.portal-kicker {
  font-size: 28px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.92);
}

.portal-hero h2 {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(48px, 4.8vw, 72px);
  line-height: 1.14;
  letter-spacing: 0.02em;
}

.portal-hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.portal-hero-btn {
  min-width: 220px;
  padding: 18px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  color: var(--brand-ink);
  box-shadow: 0 0 28px rgba(20, 199, 255, 0.22);
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

.portal-card,
.workspace-panel,
.workspace-stat {
  padding: 30px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(59, 73, 77, 0.78), rgba(31, 40, 50, 0.86));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xl);
}

.portal-card {
  text-align: center;
}

.portal-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.portal-card h3 {
  margin: 0 0 14px;
  font-size: 32px;
  color: #ffffff;
}

.portal-card p,
.workspace-muted,
.workspace-list li span:last-child,
.workspace-table td {
  color: var(--text-soft);
  line-height: 1.8;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 110px 24px 32px;
}

.auth-page {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.auth-hero,
.auth-card {
  border-radius: 28px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 26, 34, 0.94), rgba(14, 20, 28, 0.96));
  box-shadow: var(--shadow-xl);
}

.auth-hero {
  padding: 42px;
  display: grid;
  gap: 28px;
}

.auth-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-labels span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.auth-hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.auth-kicker {
  color: rgba(125, 255, 182, 0.92);
  letter-spacing: 0.24em;
  font-size: 13px;
}

.auth-hero h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.12;
}

.auth-hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.auth-feature {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.auth-feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.auth-feature p {
  font-size: 14px;
  line-height: 1.7;
}

.auth-card {
  padding: 34px;
  display: grid;
  gap: 22px;
}

.auth-card-head h3 {
  margin: 0 0 10px;
  font-size: 34px;
}

.auth-card-head p {
  margin: 0;
  color: var(--text-soft);
}

.auth-toggle {
  display: inline-flex;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.auth-toggle button {
  min-width: 100px;
  padding: 11px 18px;
  border-radius: 12px;
}

.auth-toggle button.is-active {
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--brand-ink);
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.auth-field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  outline: none;
}

.auth-field input:focus,
.workspace-panel textarea:focus,
.workspace-panel select:focus {
  border-color: rgba(21, 201, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(21, 201, 255, 0.08);
}

.auth-submit {
  margin-top: 8px;
  min-height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: var(--brand-ink);
  font-weight: 800;
}

.auth-message {
  min-height: 24px;
  color: #ffbfbf;
  font-size: 14px;
}

.auth-message.is-success {
  color: #9af5c4;
}

.auth-footer {
  color: var(--text-faint);
  font-size: 13px;
}

.workspace-shell {
  background:
    radial-gradient(circle at top left, rgba(35, 173, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(71, 255, 177, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg-900), #101720);
}

.workspace-topbar {
  grid-template-columns: auto 1fr auto;
}

.workspace-topbar-right {
  gap: 12px;
}

.workspace-user {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.workspace-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 92px 24px 24px;
}

.workspace-sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 116px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(16, 22, 30, 0.92);
  border: 1px solid var(--line-soft);
  display: grid;
  align-content: start;
  gap: 18px;
}

.workspace-sidebar a {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text-soft);
  text-decoration: none;
}

.workspace-sidebar a:hover,
.workspace-sidebar a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.workspace-content {
  display: grid;
  gap: 22px;
}

.workspace-hero {
  padding: 30px 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(18, 29, 40, 0.95), rgba(20, 26, 34, 0.88));
  border: 1px solid var(--line-soft);
  display: grid;
  gap: 16px;
}

.workspace-hero h2,
.workspace-panel h3,
.workspace-section-title {
  margin: 0;
}

.workspace-hero p {
  margin: 0;
  color: var(--text-soft);
  max-width: 880px;
  line-height: 1.8;
}

.workspace-project-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at left center, rgba(21, 201, 255, 0.08), transparent 34%);
}

.workspace-project-banner[hidden] {
  display: none;
}

.workspace-project-banner-copy {
  display: grid;
  gap: 6px;
}

.workspace-project-banner-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.workspace-project-banner-copy strong {
  color: #ffffff;
  font-size: 22px;
}

.workspace-project-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.workspace-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workspace-stat strong {
  display: block;
  font-size: 14px;
  color: var(--text-soft);
}

.workspace-stat span {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.workspace-panel {
  display: grid;
  gap: 16px;
}

.workspace-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-list,
.workspace-table {
  width: 100%;
}

.workspace-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.workspace-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.workspace-list li.is-active-project {
  border-color: rgba(21, 201, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(21, 201, 255, 0.12);
}

.workspace-project-link {
  margin-top: 8px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.workspace-list li strong,
.workspace-table th {
  color: #ffffff;
}

.workspace-table {
  border-collapse: collapse;
}

.workspace-table th,
.workspace-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

.workspace-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(125, 255, 182, 0.1);
  color: #9ef9c9;
  font-size: 12px;
}

.workspace-form {
  display: grid;
  gap: 14px;
}

.workspace-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.workspace-panel textarea,
.workspace-panel select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  outline: none;
}

.workspace-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.workspace-status {
  min-height: 24px;
  color: #9af5c4;
  font-size: 14px;
}

.workspace-status.is-error {
  color: #ffbfbf;
}

.workspace-empty {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  color: var(--text-soft);
}

@media (max-width: 1400px) {
  .portal-card-grid,
  .workspace-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-project-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {
  .portal-navbar,
  .workspace-topbar {
    grid-template-columns: 1fr;
    height: auto;
    padding: 14px 18px;
  }

  .portal-nav {
    justify-content: flex-start;
    overflow: auto;
  }

  .portal-shell {
    padding-top: 134px;
  }

  .auth-page,
  .workspace-body {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 820px) {
  .portal-main,
  .auth-shell,
  .workspace-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .portal-main {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .portal-kicker {
    font-size: 18px;
    letter-spacing: 0.18em;
  }

  .portal-hero h2,
  .auth-hero h2 {
    font-size: 34px;
  }

  .portal-card-grid,
  .workspace-stats,
  .auth-feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-card,
  .workspace-panel,
  .workspace-stat {
    padding: 22px;
  }
}

.momi-auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(64, 86, 114, 0.12), transparent 28%),
    linear-gradient(180deg, #151515 0%, #121212 100%);
  color: #f4f6f9;
}

.momi-auth-topbar {
  height: 78px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.momi-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.momi-auth-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #79ffb3, #15c9ff);
  color: #07131b;
  font-weight: 800;
  font-size: 14px;
}

.momi-auth-brand-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.momi-auth-brand-text strong {
  font-size: 14px;
  color: #f7fbff;
}

.momi-auth-brand-text span {
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
}

.momi-auth-top-actions {
  display: flex;
  gap: 10px;
}

.momi-auth-switch {
  min-width: 52px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f3f5f8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.momi-auth-switch.is-active {
  background: linear-gradient(90deg, #79ffb3, #18c9ff);
  color: #07131b;
}

.momi-auth-main {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 22px;
  padding: 12px 24px 36px;
  overflow: hidden;
}

.momi-auth-watermark {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(240px, 32vw, 420px);
  font-weight: 900;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.momi-auth-heading {
  position: relative;
  z-index: 1;
  margin-top: 58px;
  text-align: center;
}

.momi-auth-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.momi-auth-heading p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.24);
  font-size: 13px;
}

.momi-auth-stage {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.momi-login-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 330px;
  border-radius: 14px;
  background: #2a2d33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.momi-login-art {
  position: relative;
  display: grid;
  place-items: end center;
  padding: 20px 20px 0;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.05), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.momi-team-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 308px;
}

.momi-avatar {
  position: absolute;
  display: grid;
  justify-items: center;
}

.momi-avatar-head {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f3d4bb;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.05);
}

.momi-avatar-body {
  width: 108px;
  height: 118px;
  margin-top: -8px;
  border-radius: 36px 36px 20px 20px;
}

.momi-avatar-a {
  left: 18px;
  bottom: 46px;
}

.momi-avatar-a .momi-avatar-body {
  background: #5e7cd1;
}

.momi-avatar-b {
  left: 144px;
  top: 16px;
}

.momi-avatar-b .momi-avatar-body {
  background: #8cc28a;
}

.momi-avatar-c {
  left: 230px;
  top: 36px;
}

.momi-avatar-c .momi-avatar-body {
  background: #4e5967;
}

.momi-avatar-d {
  left: 304px;
  bottom: 64px;
}

.momi-avatar-d .momi-avatar-body {
  background: #f1efe8;
}

.momi-avatar-e {
  left: 126px;
  bottom: 6px;
  transform: scale(1.18);
  z-index: 2;
}

.momi-avatar-e .momi-avatar-body {
  background: #edf0f5;
}

.momi-login-panel,
.momi-register-card {
  padding: 46px 38px 34px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.momi-panel-tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 6px;
}

.momi-panel-tabs span {
  position: relative;
  font-size: 13px;
  color: #61f0c0;
  font-weight: 700;
}

.momi-panel-tabs span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  margin-left: -15px;
  background: #2fd8e3;
}

.momi-panel-tabs .is-muted {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
}

.momi-panel-tabs .is-muted::after {
  display: none;
}

.momi-auth-form {
  display: grid;
  gap: 14px;
}

.momi-auth-field {
  display: grid;
  gap: 6px;
}

.momi-auth-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.momi-auth-field input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9d9dd;
  border-radius: 4px;
  background: #ffffff;
  color: #141414;
  outline: none;
}

.momi-auth-field input:focus {
  border-color: #28d3e3;
  box-shadow: 0 0 0 3px rgba(40, 211, 227, 0.12);
}

.momi-auth-submit {
  height: 42px;
  margin-top: 6px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, #79f5a1, #19c8f9);
  color: #0c1a22;
  font-weight: 800;
  cursor: pointer;
}

.momi-auth-message {
  min-height: 18px;
  color: #ff8d8d;
  font-size: 12px;
  text-align: center;
}

.momi-auth-message.is-success {
  color: #7df5af;
}

.momi-register-card {
  width: min(380px, 100%);
  margin: 0 auto;
  border-radius: 14px;
  background: #2a2d33;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.momi-register-title {
  text-align: center;
  color: #2ce1d8;
  font-weight: 800;
  font-size: 18px;
}

.momi-register-form {
  margin-top: 8px;
}

.momi-register-tip {
  color: #ff6d6d;
  font-size: 12px;
  line-height: 1.6;
}

.momi-auth-footer {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .momi-login-card {
    grid-template-columns: 1fr;
  }

  .momi-login-art {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .momi-auth-topbar {
    padding: 0 16px;
  }

  .momi-auth-main {
    padding: 6px 16px 24px;
  }

  .momi-auth-heading {
    margin-top: 34px;
  }

  .momi-login-panel,
  .momi-register-card {
    padding: 26px 20px 22px;
  }

  .momi-panel-tabs {
    gap: 18px;
  }

  .momi-avatar-a {
    left: 8px;
  }

  .momi-avatar-b {
    left: 96px;
  }

  .momi-avatar-c {
    left: 178px;
  }

  .momi-avatar-d {
    left: 248px;
  }

  .momi-avatar-e {
    left: 96px;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  img,
  video,
  canvas,
  svg {
    max-width: 100%;
  }

  .portal-navbar,
  .workspace-topbar {
    position: sticky;
    top: 0;
    gap: 12px;
    padding: 12px;
  }

  .portal-navbar-left,
  .portal-actions,
  .workspace-topbar-left,
  .workspace-topbar-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .portal-shell {
    padding-top: 0;
  }

  .portal-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    padding-bottom: 2px;
  }

  .portal-enter-btn,
  .workspace-action-btn,
  .workspace-create-btn,
  .workspace-secondary-btn,
  .workspace-logout-btn {
    flex: 1 1 140px;
  }

  .portal-main,
  .auth-shell,
  .workspace-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .workspace-topbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-panel,
  .workspace-stat,
  .auth-hero,
  .auth-card {
    border-radius: 12px;
    padding: 18px;
  }

  .momi-auth-topbar {
    height: auto;
    min-height: 64px;
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
  }

  .momi-auth-brand-text {
    flex-wrap: wrap;
  }

  .momi-auth-top-actions {
    width: 100%;
  }

  .momi-auth-switch {
    flex: 1 1 0;
  }

  .momi-auth-main {
    min-height: auto;
    overflow: visible;
  }

  .momi-auth-watermark {
    font-size: clamp(110px, 42vw, 220px);
  }

  .momi-auth-stage {
    width: 100%;
  }

  .momi-login-art {
    display: none;
  }

  .momi-login-card {
    min-height: 0;
  }
}

@media (max-width: 420px) {
  .portal-brand-copy p,
  .workspace-brand-copy p {
    display: none;
  }

  .portal-hero h2,
  .auth-hero h2 {
    font-size: 28px;
  }

  .portal-main {
    gap: 24px;
  }

  .momi-panel-tabs {
    gap: 12px;
  }
}
