/* 登录页 · Windows 剪辑工作流入口
 * 宽屏放在登录框右侧；手机/PWA 不展示，避免拉长登录流程。
 */

.login-stage {
  width: min(754px, 100%);
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(220px, 270px);
  align-items: center;
  gap: 24px;
}

.login-stage > .login-card {
  width: 100%;
}

.login-desktop-companion {
  min-width: 0;
}

.desktop-workflow-card {
  position: relative;
  width: 100%;
  min-height: 286px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(151, 173, 218, 0.22);
  border-radius: 24px;
  color: #f7f9ff;
  background:
    radial-gradient(circle at 92% 4%, rgba(78, 151, 255, 0.3), transparent 11rem),
    linear-gradient(155deg, rgba(26, 34, 52, 0.98), rgba(11, 15, 25, 0.98));
  box-shadow: 0 24px 60px rgba(2, 8, 23, 0.3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.desktop-workflow-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(125, 184, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(101, 151, 255, 0.05), 0 0 0 48px rgba(101, 151, 255, 0.025);
  pointer-events: none;
}

.desktop-workflow-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(145deg, #45a7ff, #176fe5);
  box-shadow: 0 13px 28px rgba(24, 112, 229, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.desktop-workflow-icon svg {
  width: 22px;
  height: 22px;
}

.desktop-workflow-kicker {
  margin-bottom: 7px;
  color: #80bcff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.desktop-workflow-card > strong {
  max-width: 100%;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.desktop-workflow-card > small {
  margin-top: 9px;
  color: rgba(225, 232, 247, 0.68);
  font-size: 11px;
  line-height: 1.65;
}

.desktop-workflow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 19px;
  color: rgba(225, 232, 247, 0.58);
  font-size: 10px;
}

.desktop-workflow-meta [data-desktop-version] {
  color: #9dcbff;
  font-weight: 750;
}

.desktop-workflow-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 760;
}

.desktop-workflow-action span {
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .desktop-workflow-card:hover {
    transform: translateY(-3px);
    border-color: rgba(126, 184, 255, 0.42);
    box-shadow: 0 30px 74px rgba(2, 8, 23, 0.38);
  }

  .desktop-workflow-card:hover .desktop-workflow-action span {
    transform: translate(2px, -2px);
  }
}

.desktop-workflow-card:active {
  transform: scale(0.975);
}

html.login-neu .desktop-workflow-card {
  border: 0;
  color: #3a4250;
  background: #e0e5ec;
  box-shadow: 10px 10px 24px #bec5d0, -10px -10px 24px #ffffff;
}

html.login-neu .desktop-workflow-card::after {
  border-color: rgba(109, 93, 252, 0.12);
  box-shadow: 0 0 0 22px rgba(109, 93, 252, 0.04), 0 0 0 48px rgba(109, 93, 252, 0.02);
}

html.login-neu .desktop-workflow-card > small,
html.login-neu .desktop-workflow-meta {
  color: #7b8794;
}

html.login-neu .desktop-workflow-kicker,
html.login-neu .desktop-workflow-meta [data-desktop-version],
html.login-neu .desktop-workflow-action {
  color: #6d5dfc;
}

html.login-tropical .desktop-workflow-card,
html.login-dashboard .desktop-workflow-card,
html.login-material .desktop-workflow-card {
  color: #111827;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(27, 40, 66, 0.12);
}

html.login-tropical .desktop-workflow-card > small,
html.login-dashboard .desktop-workflow-card > small,
html.login-material .desktop-workflow-card > small,
html.login-tropical .desktop-workflow-meta,
html.login-dashboard .desktop-workflow-meta,
html.login-material .desktop-workflow-meta {
  color: #687386;
}

html.login-tropical .desktop-workflow-action,
html.login-tropical .desktop-workflow-kicker,
html.login-tropical .desktop-workflow-meta [data-desktop-version] {
  color: #00897b;
}

html.login-dashboard .desktop-workflow-action,
html.login-dashboard .desktop-workflow-kicker,
html.login-dashboard .desktop-workflow-meta [data-desktop-version] {
  color: #4f46e5;
}

html.login-material .desktop-workflow-action,
html.login-material .desktop-workflow-kicker,
html.login-material .desktop-workflow-meta [data-desktop-version] {
  color: #6200ee;
}

@media (prefers-color-scheme: dark) {
  html.login-neu .desktop-workflow-card {
    color: #e8ecf2;
    background: #23262d;
    box-shadow: 10px 10px 24px #171a1f, -10px -10px 24px #30353e;
  }

  html.login-neu .desktop-workflow-card > small,
  html.login-neu .desktop-workflow-meta {
    color: #9aa5b1;
  }
}

@media (max-width: 800px) {
  .login-stage {
    width: min(460px, 100%);
    grid-template-columns: minmax(0, 1fr);
  }

  .login-desktop-companion {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-workflow-card,
  .desktop-workflow-action span {
    transition: none;
  }

  .desktop-workflow-card:active {
    transform: none;
  }
}
