:root {
  --y-teal: #0d9488;
  --y-teal-deep: #073b36;
  --y-teal-mid: #0b6b61;
  --y-teal-soft: #e9f7f3;
  --y-pink: #ec4899;
  --y-ink: #122b29;
  --y-muted: #647b77;
  --y-bg: #f3faf7;
  --y-surface: #ffffff;
  --y-line: rgba(13, 148, 136, 0.14);
  --y-shadow: 0 24px 70px rgba(7, 59, 54, 0.12);
  --y-radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--y-ink);
  background: var(--y-bg);
  font-family: "Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.y-login-body,
.y-home-body {
  padding-top: 0;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(13, 148, 136, 0.12), transparent 62%),
    radial-gradient(700px 500px at 100% 10%, rgba(236, 72, 153, 0.055), transparent 60%),
    var(--y-bg);
}

.y-nav {
  position: relative;
  z-index: 20;
  background: rgba(251, 253, 252, 0.86);
  border-bottom: 1px solid var(--y-line);
  backdrop-filter: blur(18px);
}

.y-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  height: 74px;
  margin: 0 auto;
  padding: 0 28px;
}

.y-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--y-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.y-brand:hover,
.y-brand:focus {
  color: var(--y-ink);
  text-decoration: none;
}

.y-brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(7, 59, 54, 0.12);
}

.y-brand-name {
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.y-nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.y-user-chip {
  max-width: 220px;
  overflow: hidden;
  color: var(--y-muted);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.y-nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 999px;
  color: var(--y-teal-deep);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.y-nav-logout:hover,
.y-nav-logout:focus {
  border-color: rgba(13, 148, 136, 0.36);
  background: var(--y-teal-soft);
  color: var(--y-teal-deep);
  text-decoration: none;
}

.y-login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 100vh;
  overflow: hidden;
}

.y-login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(30px, 4.8vw, 68px);
  color: #edfffb;
  background:
    radial-gradient(720px 620px at 96% 4%, rgba(236, 72, 153, 0.18), transparent 58%),
    radial-gradient(760px 720px at 0% 100%, rgba(45, 212, 191, 0.2), transparent 62%),
    linear-gradient(145deg, #062d29 0%, #0a5149 54%, #073b36 100%);
}

.y-login-brand-panel::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 82%);
  pointer-events: none;
}

.y-login-brand-top,
.y-login-brand-copy,
.y-login-brand-panel > .y-login-brand-bottom {
  position: relative;
  z-index: 2;
}

.y-logo-lockup {
  display: flex;
  align-items: center;
  width: min(310px, 82%);
  padding: 16px 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}

.y-logo-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.y-login-eyebrow {
  display: inline-block;
  margin-top: 30px;
  color: #a9e9dd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.y-login-brand-copy h1 {
  max-width: 10em;
  margin: 18px 0 20px;
  color: #ffffff;
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.y-login-brand-copy p {
  max-width: 36em;
  margin: 0;
  color: #c8eee7;
  font-size: 15px;
  line-height: 1.85;
}

.y-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.y-login-points li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #ddfff8;
  font-size: 12px;
  font-weight: 500;
}

.y-login-brand-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}

.y-login-brand-note {
  margin: 0;
  color: #9bd8cf;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.y-login-art {
  position: absolute;
  right: -7%;
  bottom: -3%;
  z-index: 1;
  width: min(78%, 720px);
  opacity: 0.3;
  pointer-events: none;
}

.y-login-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.y-login-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px clamp(22px, 5vw, 72px) 30px;
  background:
    radial-gradient(620px 480px at 100% 0%, rgba(13, 148, 136, 0.08), transparent 62%),
    #fbfdfc;
}

.y-login-card {
  width: min(420px, 100%);
  padding: 36px;
  border: 1px solid rgba(13, 148, 136, 0.13);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(7, 59, 54, 0.1);
}

.y-kicker {
  display: inline-block;
  color: var(--y-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.y-login-card h2 {
  margin: 10px 0 6px;
  color: var(--y-ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.y-login-card .y-login-subtitle {
  margin: 0 0 24px;
  color: var(--y-muted);
  font-size: 13px;
  line-height: 1.65;
}

.y-form-error {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(190, 18, 60, 0.16);
  border-radius: 11px;
  background: #fff5f7;
  color: #9f1239;
  font-size: 12px;
  line-height: 1.55;
}

.y-field {
  display: block;
  margin-top: 16px;
}

.y-field span {
  display: block;
  margin-bottom: 7px;
  color: #36514d;
  font-size: 12px;
  font-weight: 600;
}

.y-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9e9e4;
  border-radius: 12px;
  outline: none;
  background: #f9fdfb;
  color: var(--y-ink);
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.y-input::placeholder {
  color: #9bada9;
}

.y-input:focus {
  border-color: var(--y-teal);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.11);
}

.y-password-wrap {
  position: relative;
}

.y-password-wrap .y-input {
  padding-right: 72px;
}

.y-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 52px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--y-teal);
  font-size: 11px;
  font-weight: 600;
  transform: translateY(-50%);
}

.y-password-toggle:hover,
.y-password-toggle:focus {
  background: var(--y-teal-soft);
  outline: none;
}

.y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.y-btn:hover,
.y-btn:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.y-btn-primary {
  background: var(--y-teal);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.y-btn-primary:hover,
.y-btn-primary:focus {
  background: #0b7f75;
  color: #ffffff;
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.28);
}

.y-btn-ghost {
  border-color: #d4e8e2;
  background: #ffffff;
  color: var(--y-ink);
}

.y-btn-ghost:hover,
.y-btn-ghost:focus {
  border-color: #a9d8ce;
  background: #f4fbf8;
  color: var(--y-ink);
}

.y-btn-block {
  width: 100%;
  margin-top: 22px;
  min-height: 50px;
  font-size: 14px;
}

.y-btn-lg {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
}

.y-login-meta {
  margin-top: 16px;
  color: var(--y-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.y-login-meta a {
  color: var(--y-teal);
  font-weight: 600;
  text-decoration: none;
}

.y-login-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.y-login-footer {
  margin-top: 24px;
  color: #8ba09b;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
}

.y-login-warning {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.5;
}

.y-home {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) 28px 28px;
}

.y-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  min-height: 520px;
}

.y-hero-copy .y-kicker {
  color: var(--y-teal);
}

.y-hero h1 {
  max-width: 10em;
  margin: 16px 0 18px;
  color: var(--y-ink);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.y-hero h1 span {
  color: var(--y-teal);
}

.y-hero-copy > p {
  max-width: 36em;
  margin: 0;
  color: var(--y-muted);
  font-size: 15px;
  line-height: 1.85;
}

.y-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.y-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 21px;
  color: var(--y-muted);
  font-size: 12px;
}

.y-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #b7cbc6;
}

.y-status-dot.is-online {
  background: #12b886;
  box-shadow: 0 0 0 4px rgba(18, 184, 134, 0.12);
}

.y-workspace-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(520px 380px at 100% 0%, rgba(236, 72, 153, 0.2), transparent 64%),
    radial-gradient(620px 520px at 0% 100%, rgba(45, 212, 191, 0.18), transparent 60%),
    linear-gradient(145deg, #062d29, #0a5149 58%, #073b36);
  box-shadow: 0 30px 80px rgba(7, 59, 54, 0.22);
  color: #edfffb;
}

.y-workspace-card::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
  pointer-events: none;
}

.y-workspace-top,
.y-workspace-content,
.y-workspace-tags,
.y-workspace-footer {
  position: relative;
  z-index: 2;
}

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

.y-workspace-icon {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 6px;
  place-items: center;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.y-workspace-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.y-chip {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #c9f6ed;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.y-workspace-content {
  margin-top: auto;
  padding-top: 54px;
}

.y-workspace-label {
  color: #9edbd3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.y-workspace-content h2 {
  max-width: 10em;
  margin: 13px 0 12px;
  color: #ffffff;
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.y-workspace-content p {
  max-width: 31em;
  margin: 0;
  color: #c2eee7;
  font-size: 13px;
  line-height: 1.75;
}

.y-workspace-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.y-workspace-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dcfff8;
  font-size: 10px;
}

.y-workspace-graph {
  position: absolute;
  right: -2%;
  bottom: 28px;
  left: -2%;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.y-workspace-graph svg {
  display: block;
  width: 100%;
  height: auto;
}

.y-workspace-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #a8ded6;
  font-size: 11px;
}

.y-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(34px, 5vw, 64px);
}

.y-feature {
  min-height: 170px;
  padding: 22px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 15px 40px rgba(7, 59, 54, 0.05);
}

.y-feature-icon {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 11px;
  background: var(--y-teal-soft);
  color: var(--y-teal);
}

.y-feature h3 {
  margin: 0 0 8px;
  color: var(--y-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.y-feature p {
  margin: 0;
  color: var(--y-muted);
  font-size: 12px;
  line-height: 1.7;
}

.y-home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 54px;
  padding: 22px 0 2px;
  border-top: 1px solid var(--y-line);
  color: #8ca39e;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.y-home-footer strong {
  color: #5b746f;
  font-weight: 650;
}

.y-home-body .announcement,
.y-login-body .announcement {
  margin: 16px auto 0;
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 12px;
  background: #f0fbf7;
  color: #36514d;
  font-size: 12px;
}

@media (max-width: 960px) {
  .y-login-shell {
    grid-template-columns: 1fr;
  }

  .y-login-brand-panel {
    min-height: auto;
    padding: 32px 26px 30px;
  }

  .y-login-brand-copy h1 {
    max-width: 12em;
    font-size: clamp(32px, 7vw, 44px);
  }

  .y-login-art {
    right: -10%;
    bottom: -16%;
    width: 70%;
    opacity: 0.2;
  }

  .y-login-brand-bottom {
    margin-top: 18px;
  }

  .y-login-form-panel {
    min-height: auto;
    padding: 30px 22px 34px;
  }

  .y-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 8px;
  }

  .y-workspace-card {
    min-height: 360px;
  }

  .y-feature-grid {
    grid-template-columns: 1fr;
  }

  .y-feature {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .y-nav-inner {
    height: 64px;
    padding: 0 18px;
  }

  .y-brand-name {
    font-size: 15px;
  }

  .y-user-chip {
    display: none;
  }

  .y-nav-logout {
    min-height: 32px;
    padding: 0 12px;
    font-size: 11px;
  }

  .y-login-brand-panel {
    padding: 24px 20px 28px;
  }

  .y-logo-lockup {
    width: min(250px, 88%);
    padding: 12px 15px;
    border-radius: 16px;
  }

  .y-login-eyebrow {
    margin-top: 22px;
    font-size: 9px;
  }

  .y-login-brand-copy h1 {
    margin: 12px 0 14px;
    font-size: 34px;
  }

  .y-login-brand-copy p {
    font-size: 13px;
    line-height: 1.7;
  }

  .y-login-points {
    margin-top: 18px;
  }

  .y-login-points li {
    padding: 6px 9px;
    font-size: 10px;
  }

  .y-login-form-panel {
    padding: 22px 16px 28px;
  }

  .y-login-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .y-login-card .y-login-subtitle {
    margin-bottom: 16px;
  }

  .y-login-footer {
    margin-top: 18px;
    font-size: 9px;
  }

  .y-home {
    padding: 26px 18px 22px;
  }

  .y-hero h1 {
    font-size: 38px;
  }

  .y-hero-copy > p {
    font-size: 13px;
  }

  .y-hero-actions {
    margin-top: 22px;
  }

  .y-btn-lg {
    width: 100%;
  }

  .y-workspace-card {
    min-height: 340px;
    padding: 22px;
    border-radius: 24px;
  }

  .y-workspace-content {
    padding-top: 42px;
  }

  .y-workspace-content h2 {
    font-size: 28px;
  }

  .y-feature-grid {
    margin-top: 28px;
  }

  .y-home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin-top: 34px;
    padding-top: 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.y-signup-card {
  width: min(460px, 100%);
}

.y-form-alert {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 11px;
  background: #f0fbf7;
  color: #36514d;
  font-size: 12px;
  line-height: 1.6;
}

.y-form-alert.alert-danger,
.y-form-alert.alert-error {
  border-color: rgba(190, 18, 60, 0.16);
  background: #fff5f7;
  color: #9f1239;
}

.y-form-alert.alert-warning {
  border-color: rgba(217, 119, 6, 0.2);
  background: #fffbeb;
  color: #92400e;
}

.y-form-alert p {
  margin: 0;
}

.y-form-alert p + p {
  margin-top: 7px;
}

.y-check-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  color: #36514d;
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.y-check-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--y-teal);
}

.y-check-row-tos {
  color: var(--y-muted);
}

.y-signup-card .g-recaptcha {
  margin-top: 15px;
}

.y-btn:disabled,
.y-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
