body[data-workspace="guest"] { min-width: 0; }

.publisher-login {
  --login-text: #f7f3ff;
  --login-muted: #bcb3ce;
  --login-border: #3b314b;
  --login-focus: #b19aff;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 83% 0, #1a1228 0, transparent 53%), #100d18;
  color: var(--login-text);
  color-scheme: dark;
}

.login-showcase {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(152px, .58fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  gap: 21px 22px;
  min-width: 0;
  overflow: hidden;
  margin: 16px 0 16px 16px;
  padding: clamp(24px, 3.7vw, 60px);
  border: 1px solid #3b2b51;
  border-radius: 24px;
  background: #160d23;
}

.login-showcase::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(110deg, #130c20e8, #140d2275 58%, #140d223d),
    linear-gradient(180deg, #130c20 0%, transparent 28%, #130c20a6 72%, #120a1b 100%),
    url("publisher-signin-art.webp") center 38% / cover no-repeat;
  content: "";
}

.login-brand { display: flex; align-items: center; gap: 11px; width: fit-content; }
.login-brand .brand-mark { border-color: #ae91fc; box-shadow: 0 6px 20px #17092b7d; }
.login-wordmark { display: block; font-size: 1.45rem; font-weight: 780; line-height: .97; letter-spacing: -.045em; }
.login-wordmark small { display: block; margin-top: 5px; color: #d3c2eb; font-size: .65rem; font-weight: 640; letter-spacing: .08em; }
.login-showcase-hero { grid-area: 1 / 1; display: flex; min-width: 0; flex-direction: column; align-self: start; gap: clamp(25px, 5vh, 46px); }
.login-showcase-copy h2 {
  width: fit-content;
  color: #f8f3ff;
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 750;
  line-height: 1.01;
  letter-spacing: -.072em;
  text-wrap: balance;
}
.login-showcase-copy h2 span { color: #cfb5ff; background: linear-gradient(95deg, #ac82ff, #e2cbff 80%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.login-showcase-copy p {
  max-width: 34ch;
  margin-top: 14px;
  color: #d3c5e6;
  font-size: clamp(.91rem, 1.5vw, 1.03rem);
  line-height: 1.53;
}

.login-metric-rail { display: grid; grid-area: 1 / 2 / 3; align-content: space-evenly; min-width: 0; gap: 16px; }
.login-performance {
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #694d894d;
  border-radius: 14px;
  background: linear-gradient(148deg, #2b1c3ff2, #191123f5);
  box-shadow: 0 14px 36px #09061078;
}
.login-performance-header { display: flex; align-items: center; gap: 7px; color: #decaf8; font-size: .73rem; font-weight: 690; }
.login-performance-header .icon { width: 14px; height: 14px; flex-basis: 14px; color: #bc9eff; }
.login-metric-value { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 6px; margin-top: 8px; }
.login-metric-value strong { color: #fbf4ff; font-size: clamp(1.25rem, 2.15vw, 1.85rem); font-weight: 745; letter-spacing: -.044em; line-height: 1.19; }
.login-metric-value small { color: #cdbbde; font-size: .65rem; }
.login-mini-chart { display: flex; height: 38px; align-items: end; gap: 4px; margin-top: 12px; border-bottom: 1px solid #8d6dc056; }
.login-mini-chart i { flex: 1; height: var(--bar); border-radius: 3px 3px 0 0; background: linear-gradient(#bb96ff, #7754cc 70%, #5f3899); opacity: .86; }

.login-mini-fill { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 4px; background: #3d2b4f; }
.login-mini-fill span { display: block; width: 80%; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #9461ee, #a4e7da); }
.login-metric-foot { margin-top: 7px; color: #c0afcf; font-size: .67rem; line-height: 1.32; }

.login-feature-list { display: grid; grid-area: 2 / 1; gap: 7px; margin: 0; padding: 0; list-style: none; }
.login-feature-list li { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #68518757; border-radius: 11px; background: #21162bde; }
.login-feature-icon { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 8px; background: #3a2854; color: #d4baff; }
.login-feature-list h3 { margin: 0; color: #f3eafa; font-size: .85rem; font-weight: 720; }
.login-feature-list p { margin: 3px 0 0; color: #c9b9d7; font-size: .73rem; line-height: 1.35; }

.login-facts { display: grid; grid-area: 3 / 1 / 4 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 12px 0 0; border-top: 1px solid #6a53775e; }
.login-facts > div { display: flex; min-width: 0; flex-direction: column-reverse; gap: 3px; padding-left: 13px; border-left: 1px solid #6a53775e; }
.login-facts > div:first-child { padding-left: 0; border-left: 0; }
.login-facts dt { color: #c0afcf; font-size: .69rem; }
.login-facts dd { margin: 0; color: #f3eafa; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 730; letter-spacing: -.025em; line-height: 1.15; }

.login-workspace {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: clamp(28px, 5vw, 80px) clamp(22px, 4vw, 72px);
}

.login-card {
  width: min(100%, 452px);
  min-width: 0;
  padding: clamp(23px, 3.1vw, 40px);
  border: 1px solid var(--login-border);
  border-radius: 23px;
  background: linear-gradient(152deg, #21192f, #171220 65%);
  box-shadow: 0 28px 74px #08061170, inset 0 1px 0 #ffffff06;
}

.login-card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid #5b4484;
  border-radius: 12px;
  background: #34244d;
  color: #dac8ff;
}

.login-card-icon .icon { width: 20px; height: 20px; }
.login-card-icon .i-shield::after { top: 6px; left: 7px; }
.login-card-header h1 { color: var(--login-text); font-size: clamp(1.83rem, 3.25vw, 2.6rem); font-weight: 760; letter-spacing: -.06em; }
.login-card-header p { margin-top: 9px; color: var(--login-muted); font-size: .91rem; line-height: 1.55; }
.login-form { display: grid; margin-top: 24px; }
.login-label { display: block; margin-bottom: 7px; color: #eee8f8; font-size: .81rem; font-weight: 690; }
.login-password-label { margin-top: 16px; }
.login-form input {
  width: 100%;
  min-height: 49px;
  padding: 9px 13px;
  border: 1px solid #4b3c5f;
  border-radius: 10px;
  background: #120e1c;
  color: var(--login-text);
  font-size: 1rem;
  transition: border-color .15s, background .15s;
}
.login-form input::placeholder { opacity: 1; color: #aa9cbc; }
.login-form input:hover { border-color: #705991; }
.login-form input:-webkit-autofill {
  -webkit-text-fill-color: var(--login-text);
  box-shadow: 0 0 0 50px #211832 inset;
}
.login-form input:focus-visible,
.publisher-login button:focus-visible,
.publisher-login summary:focus-visible { outline: 2px solid var(--login-focus); outline-offset: 3px; }

.login-password { position: relative; }
.login-password input { padding-right: 69px; }
.login-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  min-width: 55px;
  padding: 0 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d4c2fa;
  font-size: .77rem;
  font-weight: 700;
}
.login-password-toggle:hover { background: #302340; }

.login-submit {
  display: flex;
  min-height: 49px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid #9470f3;
  border-radius: 10px;
  background: linear-gradient(112deg, #7545db, #6544d2);
  box-shadow: 0 8px 20px #4b27a63d;
  color: #fff;
  font-size: .95rem;
  font-weight: 730;
}
.login-submit span { font-size: 1.14rem; line-height: 1; }
.login-submit:not(:disabled):hover { background: linear-gradient(110deg, #8152e5, #704cda); }
.login-message {
  margin: 13px 0 0;
  color: var(--login-muted);
  font-size: .83rem;
  line-height: 1.45;
}
.login-error {
  padding: 9px 11px;
  border: 1px solid #7d485e;
  border-radius: 8px;
  background: #3a2233;
  color: #ffdeea;
}
.login-options {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 21px;
  padding-top: 15px;
  border-top: 1px solid #392f46;
}
.login-help { flex: 1 1 120px; min-width: 120px; }
.login-help summary, .login-demo {
  min-height: 38px;
  padding: 8px 1px;
  color: #d6c4ff;
  font-size: .81rem;
  font-weight: 650;
  line-height: 1.25;
  cursor: pointer;
}
.login-help summary:hover, .login-demo:hover { color: #f2e9ff; }
.login-help summary::marker { color: #b89be9; }
.login-help p { margin-top: 1px; color: var(--login-muted); font-size: .76rem; line-height: 1.5; }
.login-demo { border: 0; background: transparent; white-space: nowrap; }
.login-demo span { margin-left: 3px; }
.login-registration { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 15px; color: var(--login-muted); font-size: .86rem; }
.login-register-button { min-height: 38px; padding: 0 2px; border: 0; background: transparent; color: #e4d5ff; cursor: pointer; font: inherit; font-weight: 750; }
.login-register-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.login-register-button:focus-visible, .onboarding-dialog :is(summary, a, button, input, textarea, select):focus-visible { outline: 2px solid #8b64ef; outline-offset: 3px; }
.onboarding-dialog { max-height: min(760px, calc(100svh - 24px)); overflow-y: auto; overscroll-behavior: contain; }
.onboarding-dialog .dialog-title { padding-right: 32px; }
.onboarding-terms { margin: 12px 0; padding: 10px 12px; border: 1px solid #e6def2; border-radius: 9px; background: #fbf9ff; }
.onboarding-terms summary { color: #473282; cursor: pointer; font-size: .9rem; font-weight: 650; }
.onboarding-terms-text { max-height: 11rem; overflow: auto; margin-top: 10px; color: #4f4661; font-size: .86rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.onboarding-accept { align-items: flex-start; margin: 14px 0; line-height: 1.45; }
.onboarding-accept input { flex: none; width: 17px; height: 17px; margin-top: 2px; }
.onboarding-target { display: inline-block; max-width: 100%; margin-bottom: 10px; color: #5534ac; font-size: .84rem; overflow-wrap: anywhere; }
.onboarding-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 12px; }
.onboarding-feedback { color: #4f4661; font-size: .84rem; }

@media (max-width: 810px) {
  .publisher-login { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 100svh; }
  .login-showcase { display: contents; }
  .login-showcase::before { display: none; }
  .login-showcase-hero {
    grid-area: 1 / 1;
    gap: 19px;
    margin: 11px 11px 0;
    padding: 16px 18px;
    border: 1px solid #3b2b51;
    border-radius: 15px;
    background:
      linear-gradient(90deg, #160b23f2, #160b23ae 39%, transparent 92%),
      url("publisher-signin-art.webp") right 41% / min(73%, 435px) auto no-repeat,
      #160d23;
  }
  .login-showcase-copy h2 { font-size: clamp(1.75rem, 5.6vw, 2.4rem); letter-spacing: -.058em; }
  .login-showcase-copy p { margin-top: 7px; font-size: .81rem; }
  .login-brand { gap: 8px; }
  .login-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .login-wordmark { font-size: 1.23rem; }
  .login-wordmark small { margin-top: 4px; font-size: .6rem; }
  .login-workspace { grid-row: 2; align-self: start; padding: 18px 15px 20px; }
  .login-card { padding: 22px; border-radius: 17px; }
  .login-feature-list { grid-area: 3 / 1; width: min(100% - 30px, 452px); margin-inline: auto; }
  .login-metric-rail { grid-area: 4 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100% - 30px, 452px); margin: 12px auto 0; }
  .login-facts { grid-area: 5 / 1; width: min(100% - 30px, 452px); margin: 16px auto 24px; }
}

@media (max-height: 650px) and (min-width: 811px) {
  .login-workspace { padding-block: 22px; }
  .login-showcase { gap: 19px 15px; padding-block: 25px; }
  .login-showcase-hero { gap: 33px; }
}
