/* EmlogStudio protected article gate.  Scoped so the guest login dialog keeps
   its own geometry and theme tokens. */
.emstudio-password-body {
  min-width: 320px;
  margin: 0;
  background: #050807;
}

.emstudio-password-screen {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 34px);
  color: #e8f1ec;
  background:
    radial-gradient(circle at 14% 18%, rgba(26, 226, 118, .08), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(67, 132, 255, .08), transparent 28%),
    #050807;
}

.emstudio-password-screen .login-orbit {
  border-color: rgba(155, 194, 173, .08);
}

.emstudio-password-shell {
  width: min(1080px, 100%);
  min-height: min(680px, calc(100vh - 68px));
  min-height: min(680px, calc(100dvh - 68px));
  overflow: hidden;
  border: 1px solid rgba(157, 189, 173, .18);
  border-radius: 26px;
  background: #0c1210;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .24);
}

.emstudio-password-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  border-right: 1px solid rgba(157, 189, 173, .13);
  background:
    radial-gradient(circle at 38% 48%, rgba(22, 207, 106, .15), transparent 26%),
    radial-gradient(circle at 96% 4%, rgba(89, 132, 255, .08), transparent 32%),
    linear-gradient(145deg, #101a15, #0a100d 66%);
}

.emstudio-password-story::before,
.emstudio-password-story::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.emstudio-password-story::before {
  right: -92px;
  bottom: -106px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(98, 231, 156, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(98, 231, 156, .025), 0 0 0 48px rgba(98, 231, 156, .017);
}

.emstudio-password-story::after {
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(189, 227, 208, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(189, 227, 208, .06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, .8), transparent 65%);
}

.emstudio-password-story > * {
  position: relative;
  z-index: 1;
}

.emstudio-password-story .login-brand {
  color: #f0f8f3;
}

.emstudio-password-story .login-brand span {
  color: #82efad;
  font-size: 26px;
  letter-spacing: -.14em;
}

.emstudio-password-story .login-brand b {
  color: #b8c9bf;
  font-size: 11px;
  letter-spacing: .04em;
}

.emstudio-password-story .login-copy {
  margin-top: clamp(58px, 10vh, 104px);
}

.emstudio-password-kicker,
.emstudio-password-form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7ee8a8;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .13em;
}

.emstudio-password-kicker::before,
.emstudio-password-form-kicker::before {
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: .8;
}

.emstudio-password-lock {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  place-items: center;
  color: #8bf1b3;
  border: 1px solid rgba(116, 235, 162, .34);
  border-radius: 22px;
  background: rgba(74, 226, 137, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 42px rgba(37, 218, 117, .12);
}

.emstudio-password-lock::after {
  position: absolute;
  width: 110px;
  height: 110px;
  content: "";
  border: 1px solid rgba(125, 237, 171, .12);
  border-radius: 28px;
  transform: rotate(14deg);
}

.emstudio-password-lock svg {
  width: 43px;
  height: 43px;
}

.emstudio-password-story .login-copy h1 {
  max-width: 560px;
  margin-top: 17px;
  color: #f1f7f3;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.emstudio-password-story .login-copy p {
  max-width: 430px;
  margin-top: 22px;
  color: #8d9d94;
  font-size: 13px;
  line-height: 1.85;
}

.emstudio-password-story-foot {
  display: flex;
  margin-top: auto;
  align-items: center;
  gap: 10px;
  color: #59665e;
  font: 600 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .1em;
}

.emstudio-password-story-foot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #72e49f;
  box-shadow: 0 0 9px rgba(114, 228, 159, .7);
}

.emstudio-password-form-side {
  min-width: 0;
  padding: clamp(54px, 7vw, 84px) clamp(26px, 6vw, 70px) 48px;
  background: #0a0f0d;
}

.emstudio-password-form-side .login-back {
  top: 25px;
  right: 28px;
  padding: 6px 8px;
  color: #8a9b91;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
}

.emstudio-password-form-side .login-back:hover,
.emstudio-password-form-side .login-back:focus-visible {
  color: #b9f3ce;
  background: rgba(113, 230, 157, .07);
  border-color: rgba(113, 230, 157, .18);
  outline: none;
}

.emstudio-password-form {
  width: min(360px, 100%);
}

.emstudio-password-form header {
  margin-bottom: 32px;
}

.emstudio-password-form-kicker {
  margin-bottom: 15px;
  color: #8ba6ff;
}

.emstudio-password-form h2 {
  color: #f1f7f3;
  font-size: clamp(25px, 3vw, 31px);
  font-weight: 570;
  letter-spacing: -.035em;
}

.emstudio-password-form header p {
  margin-top: 10px;
  color: #84938a;
  font-size: 12px;
  line-height: 1.65;
}

.emstudio-password-form .login-field {
  margin-top: 0;
  color: #b4c1b9;
  font-size: 12px;
  gap: 9px;
}

.emstudio-password-form .login-field > div {
  height: 53px;
  border-color: rgba(159, 192, 173, .2);
  border-radius: 12px;
  background: #0e1713;
}

.emstudio-password-form .login-field > div:focus-within {
  border-color: rgba(117, 231, 157, .56);
  box-shadow: 0 0 0 3px rgba(70, 220, 130, .09);
}

.emstudio-password-input-icon {
  width: 18px;
  height: 18px;
  margin-left: 15px;
  flex: 0 0 auto;
  color: #72877b;
}

.emstudio-password-form .login-field input {
  padding: 0 14px;
  color: #edf6f0;
  font-size: 14px;
}

.emstudio-password-form .login-field input::placeholder {
  color: #637269;
}

.emstudio-password-hint {
  display: flex;
  margin-top: 13px;
  align-items: center;
  gap: 7px;
  color: #73847a;
  font-size: 11px;
  line-height: 1.5;
}

.emstudio-password-hint svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #8299ff;
}

.emstudio-password-form .login-submit {
  height: 51px;
  margin-top: 25px;
  color: #06130c;
  background: #81e9a9;
  border: 1px solid #81e9a9;
  box-shadow: 0 13px 30px rgba(71, 224, 133, .14);
  font-size: 13px;
  font-weight: 750;
}

.emstudio-password-form .login-submit:hover {
  background: #a4f4c3;
  border-color: #a4f4c3;
  transform: translateY(-1px);
}

.emstudio-password-form .login-submit svg {
  width: 16px;
  margin: 0;
}

.emstudio-password-form .login-demo {
  margin-top: 18px;
  color: #536158;
  font-size: 10px;
  line-height: 1.55;
}

/* The protected gate intentionally remains dark even when the site preference
   is daylight; it is a focused security state rather than a content page. */
html[data-theme="light"] .emstudio-password-screen,
html[data-theme="light"] .emstudio-password-screen .login-shell,
html[data-theme="light"] .emstudio-password-screen .login-story,
html[data-theme="light"] .emstudio-password-screen .login-form-side {
  color: #e8f1ec !important;
  background: #050807 !important;
}

html[data-theme="light"] .emstudio-password-screen .login-story {
  background:
    radial-gradient(circle at 38% 48%, rgba(22, 207, 106, .15), transparent 26%),
    radial-gradient(circle at 96% 4%, rgba(89, 132, 255, .08), transparent 32%),
    linear-gradient(145deg, #101a15, #0a100d 66%) !important;
}

html[data-theme="light"] .emstudio-password-screen .login-form-side {
  background: #0a0f0d !important;
}

html[data-theme="light"] .emstudio-password-screen :is(.login-brand, .login-copy h1, .login-form h2) {
  color: #f1f7f3 !important;
}

html[data-theme="light"] .emstudio-password-screen .login-copy p,
html[data-theme="light"] .emstudio-password-screen .login-form header p,
html[data-theme="light"] .emstudio-password-screen .login-field,
html[data-theme="light"] .emstudio-password-screen .login-back,
html[data-theme="light"] .emstudio-password-screen .login-demo {
  color: #84938a !important;
}

html[data-theme="light"] .emstudio-password-screen .login-field > div {
  background: #0e1713 !important;
  border-color: rgba(159, 192, 173, .2) !important;
}

html[data-theme="light"] .emstudio-password-screen .login-field input {
  color: #edf6f0 !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .emstudio-password-screen {
    padding: 12px;
    place-items: start center;
  }

  .emstudio-password-shell {
    min-height: 0;
    margin: auto 0;
    border-radius: 20px;
    grid-template-columns: 1fr;
  }

  .emstudio-password-story {
    display: flex;
    min-height: 365px;
    padding: 28px 24px 25px;
    border-right: 0;
    border-bottom: 1px solid rgba(157, 189, 173, .13);
  }

  .emstudio-password-story .login-copy {
    margin-top: 42px;
  }

  .emstudio-password-lock {
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 18px;
  }

  .emstudio-password-lock svg {
    width: 35px;
    height: 35px;
  }

  .emstudio-password-story .login-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .emstudio-password-story .login-copy p {
    margin-top: 15px;
    font-size: 12px;
  }

  .emstudio-password-form-side {
    min-height: 390px;
    padding: 61px 24px 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emstudio-password-screen *,
  .emstudio-password-screen *::before,
  .emstudio-password-screen *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
