/* ---------- 显式表面 ---------- */

/*
   明确陈述而非通过主题的自定义属性。登录页面在任何主题样式表被注入前呈现，
   如果一个加载失败，shell 必须保持可读——解析为空的变量变成黑色背景上的黑色文本，
   这正是问题所在。
*/
.atlas-auth {
  --atlas-auth-canvas: #eaf1f5;
  --atlas-auth-card: #ffffff;
  --atlas-auth-ink: #17212b;
  --atlas-auth-muted: #617181;
  --atlas-auth-line: #d9e3ea;
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: clamp(1rem, 3vw, 3rem);
  background:
    radial-gradient(circle at 14% 18%, rgb(31 139 172 / 14%), transparent 28rem),
    linear-gradient(135deg, var(--atlas-auth-canvas), #f7fafb 64%);
  color: var(--atlas-auth-ink);
}

.atlas-login {
  width: 100%;
  min-width: 0;
}

.atlas-login-window {
  display: grid;
  width: min(68rem, 100%);
  min-height: min(38rem, calc(100dvh - 6rem));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  overflow: hidden;
  border: 1px solid rgb(10 54 94 / 12%);
  border-radius: 1rem;
  background-color: var(--atlas-auth-card);
  box-shadow: 0 24px 70px rgb(20 48 66 / 18%), 0 2px 8px rgb(20 48 66 / 10%);
}

.atlas-login-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 82% 18%, rgb(80 210 190 / 30%), transparent 18rem),
    linear-gradient(145deg, #092f55 0%, #0a4d65 54%, #0d625d 100%);
  color: #f7fbfc;
}

.atlas-login-story::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgb(255 255 255 / 4%), 0 0 0 7rem rgb(255 255 255 / 3%);
  pointer-events: none;
}

.atlas-login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.atlas-login-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 0.75rem;
  background-color: rgb(255 255 255 / 12%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.atlas-login-names {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.atlas-login-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.atlas-login-sub {
  color: rgb(255 255 255 / 64%);
  font-size: 0.6875rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.atlas-login-story-copy {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin-block: auto 2.25rem;
}

.atlas-login-eyebrow {
  margin: 0 0 0.65rem;
  color: #58d1c0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-login-story-copy h1 {
  max-width: 30rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.atlas-login-story-copy > p:last-child {
  max-width: 27rem;
  margin: 1.25rem 0 0;
  color: rgb(255 255 255 / 70%);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.atlas-login-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.atlas-login-benefits li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.875rem;
}

.atlas-login-benefits .atlas-icon {
  color: #58d1c0;
}

.atlas-login-story-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgb(255 255 255 / 42%);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.atlas-login-card {
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 4vw, 3.75rem);
  border-radius: 0;
  background-color: var(--atlas-auth-card);
  color: var(--atlas-auth-ink);
  box-shadow: none;
}

.atlas-login-card-header {
  margin-bottom: 0.5rem;
}

.atlas-login-security-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  place-items: center;
  border-radius: 0.75rem;
  background-color: #e6f2f7;
  color: #0b5f78;
}

.atlas-login-card .atlas-login-eyebrow {
  color: #087c73;
}

.atlas-login-card-header h2 {
  margin: 0;
  color: var(--atlas-auth-ink);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.atlas-login-card-header > p:last-child {
  margin: 0.65rem 0 0;
  color: var(--atlas-auth-muted);
  font-size: 0.875rem;
}

.atlas-login-layout {
  margin-top: 1.25rem;
}

.atlas-login-layout .dxbl-row {
  margin: -0.5rem;
}

.atlas-login-layout .dxbl-fl-item {
  margin-block: 0.5rem;
  padding-inline: 0.5rem;
}

.atlas-login-layout .dxbl-fl-cpt {
  padding: 0 0 0.4rem;
  color: var(--atlas-auth-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}



.atlas-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.atlas-login-options > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--atlas-auth-muted);
  font-size: 0.75rem;
}


.atlas-login-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--atlas-auth-line);
  color: var(--atlas-auth-muted);
  font-size: 0.75rem;
  text-align: center;
}

.atlas-login-error {
  margin: 1rem 0 0;
}

:root[data-theme="dark"] .atlas-auth {
  --atlas-auth-canvas: #0d151b;
  --atlas-auth-card: #172127;
  --atlas-auth-ink: #eef4f6;
  --atlas-auth-muted: #a0b0b8;
  --atlas-auth-line: #304047;
  background:
    radial-gradient(circle at 14% 18%, rgb(31 139 172 / 14%), transparent 28rem),
    linear-gradient(135deg, var(--atlas-auth-canvas), #101c22 64%);
}

:root[data-theme="dark"] .atlas-login-security-mark {
  background-color: #163844;
  color: #70d3c7;
}

@media (max-width: 54rem) {
  .atlas-auth {
    align-items: flex-start;
  }

  .atlas-login-window {
    grid-template-columns: 1fr;
  }

  .atlas-login-story {
    min-height: 15rem;
    padding: 2rem;
  }

  .atlas-login-story-copy {
    margin: 2.5rem 0 0;
  }

  .atlas-login-story-copy h1 {
    max-width: 34rem;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .atlas-login-story-copy > p:last-child,
  .atlas-login-benefits,
  .atlas-login-story-footer {
    display: none;
  }
}

@media (max-width: 38rem) {
  .atlas-auth {
    padding: 0;
    background: var(--atlas-auth-card);
  }

  .atlas-login-window {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .atlas-login-story {
    min-height: 11rem;
    padding: 1.5rem;
  }

  .atlas-login-story-copy {
    margin-top: 1.5rem;
  }

  .atlas-login-story-copy h1 {
    font-size: 1.5rem;
  }

  .atlas-login-card {
    padding: 2rem 1.5rem 2.5rem;
  }

  .atlas-login-security-mark {
    display: none;
  }
}

/* XAF 风格的 Fluent 登录：一张聚焦的卡片，一个主要操作。 */
.atlas-auth {
  --atlas-auth-canvas: #f3f3f3;
  --atlas-auth-card: #ffffff;
  --atlas-auth-ink: #242424;
  --atlas-auth-muted: #616161;
  --atlas-auth-line: #d1d1d1;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 2rem 1rem;
  background: var(--atlas-auth-canvas);
  color: var(--atlas-auth-ink);
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
}

.atlas-login {
  width: min(28rem, 100%);
  min-width: 0;
}

.atlas-login-card {
  display: block;
  width: 100%;
  padding: 2.25rem;
  border: 1px solid var(--atlas-auth-line);
  border-radius: 0.5rem;
  background: var(--atlas-auth-card);
  color: var(--atlas-auth-ink);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.atlas-login-card-header {
  margin: 0 0 1.5rem;
}

.atlas-login-card-header > p {
  margin: 0 0 0.4rem;
  color: #0f6cbd;
  font-size: 1rem;
  font-weight: 600;
}

.atlas-login-card-header h1 {
  margin: 0;
  color: var(--atlas-auth-ink);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.atlas-login-layout {
  margin-top: 0;
}

.atlas-login-layout .dxbl-fl-cpt {
  color: var(--atlas-auth-ink);
  font-size: 0.875rem;
  font-weight: 600;
}




.atlas-login-error {
  margin: 0 0 1rem;
}

:root[data-theme="dark"] .atlas-auth {
  --atlas-auth-canvas: #202020;
  --atlas-auth-card: #292929;
  --atlas-auth-ink: #ffffff;
  --atlas-auth-muted: #d6d6d6;
  --atlas-auth-line: #525252;
  background: var(--atlas-auth-canvas);
}

@media (max-width: 32rem) {
  .atlas-auth {
    align-items: center;
    padding: 1rem;
    background: var(--atlas-auth-canvas);
  }

  .atlas-login-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: none;
  }
}

