/* Authoritative login surface. Authentication selectors and behavior stay unchanged. */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 32px;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 167, 145, .07), transparent 31%),
    radial-gradient(circle at 83% 88%, rgba(42, 76, 83, .055), transparent 34%),
    #edf2f1;
}

.login-screen.open { display: grid; }

.login-layout-shell {
  width: min(1180px, 100%);
  min-height: min(704px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  grid-template-areas: "landing panel";
  overflow: hidden;
  border: 1px solid rgba(39, 70, 75, .16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 42, 45, .08), 0 32px 84px rgba(24, 42, 45, .13);
}

.login-landing-copy {
  position: relative;
  grid-area: landing;
  min-width: 0;
  min-height: 0;
  padding: 48px 54px 42px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #ffffff;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    #121d20;
  background-size: 36px 36px, 36px 36px, auto;
  isolation: isolate;
  overflow: hidden;
}

.login-landing-copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #00a791;
}

.login-landing-copy::after {
  content: "";
  position: absolute;
  right: -112px;
  bottom: -112px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 167, 145, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(0, 167, 145, .04), 0 0 0 96px rgba(0, 167, 145, .025);
}

.login-landing-brand {
  width: 226px;
  height: 74px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
}

.login-landing-brand img {
  display: block;
  width: 226px;
  max-width: none;
  height: 74px;
  object-fit: contain;
  object-position: left center;
  filter: none;
  transform: none;
}

.login-landing-main {
  align-self: center;
  max-width: 580px;
  margin: 34px 0;
}

.login-landing-kicker {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #91a5a4;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-landing-kicker i {
  width: 24px;
  height: 2px;
  background: #00a791;
}

.login-landing-copy h1 {
  max-width: 23ch;
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  line-height: 44px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-landing-summary {
  max-width: 58ch;
  margin: 20px 0 0;
  color: #b8c5c4;
  font-size: 14px;
  line-height: 22px;
}

.login-capability-list {
  width: min(100%, 560px);
  margin: 28px 0 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  border-top: 1px solid #334346;
  list-style: none;
}

.login-capability-list li {
  position: relative;
  min-width: 0;
  padding-left: 21px;
  color: #d7e0df;
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
}

.login-capability-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 9px;
  height: 5px;
  border-left: 2px solid #39c6af;
  border-bottom: 2px solid #39c6af;
  transform: rotate(-45deg);
}

.login-operation-strip {
  width: min(100%, 530px);
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #334346;
  border-bottom: 1px solid #334346;
}

.login-operation-strip span {
  min-width: 0;
  padding: 14px 12px;
  display: grid;
  gap: 4px;
  border-right: 1px solid #334346;
  color: #dde5e4;
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.login-operation-strip span:first-child { padding-left: 0; }
.login-operation-strip span:last-child { border-right: 0; }

.login-operation-strip b {
  color: #39d9c1;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.login-landing-index {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7f9291;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.login-landing-index i {
  width: 36px;
  height: 1px;
  background: #00a791;
}

.login-landing-index span {
  color: #7f9291;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
}

.login-landing-index b { color: #a8b6b5; font-weight: 600; }

.login-layout-shell .login-panel,
.login-layout-shell.login-active .login-panel {
  position: relative;
  grid-area: panel;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 48px 54px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  color: #26363e;
  opacity: 1;
  transform: none;
}

.login-layout-shell .login-panel::before,
.login-layout-shell .login-panel::after { display: none; }

.login-layout-shell .login-panel-head {
  min-height: 0;
  margin: 0 0 34px;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border: 0;
  background: transparent;
  color: #26363e;
}

.login-layout-shell .login-panel-head > div:first-child { min-width: 0; }

.login-layout-shell .login-panel-head p {
  margin: 0 0 8px;
  color: #008f7f;
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-layout-shell .login-panel-head h1 {
  margin: 0;
  color: #19292e;
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: 0;
}

.login-layout-shell .login-panel-head span {
  display: block;
  max-width: 38ch;
  margin-top: 10px;
  color: #6a797d;
  font-size: 12px;
  line-height: 19px;
}

.login-layout-shell .login-brand-mark {
  width: 52px;
  min-width: 52px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.login-layout-shell .login-brand-mark img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.login-layout-shell .login-form {
  width: 100%;
  padding: 0;
  display: grid;
  gap: 20px;
}

.login-layout-shell .login-form label {
  display: grid;
  gap: 8px;
  color: #34464b;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.login-field-control {
  position: relative;
  width: 100%;
  height: 48px;
}

.login-field-control > svg {
  position: absolute;
  left: 14px;
  top: 15px;
  z-index: 2;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #718184;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.login-layout-shell .login-form .login-field-control input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 44px;
  border: 1px solid #b9c5c5;
  border-radius: 5px;
  background: #f7f9f9;
  color: #1f3035;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  outline: 0;
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.login-layout-shell .login-form .login-field-control input:hover {
  border-color: #8fa09f;
  background: #ffffff;
}

.login-layout-shell .login-form .login-field-control input:focus {
  border-color: #008f7f;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 143, 127, .11);
}

.login-password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #627276;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  background: #e9f0ef;
  color: #087f72;
  outline: 0;
}

.login-password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-layout-shell .login-submit {
  width: 100%;
  height: 48px;
  margin: 4px 0 0;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #007f72;
  border-radius: 5px;
  background: #008f7f;
  color: #ffffff;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 127, 114, .16);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.login-layout-shell .login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-layout-shell .login-submit:hover,
.login-layout-shell .login-submit:focus-visible {
  border-color: #00675d;
  background: #007f72;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 111, 99, .2);
  outline: 0;
}

.login-layout-shell .login-submit:disabled { opacity: .68; cursor: wait; }

.login-layout-shell .login-submit:disabled svg {
  animation: login-submit-progress .85s linear infinite;
}

@keyframes login-submit-progress {
  to { transform: rotate(360deg); }
}

.login-layout-shell .login-error {
  margin: -4px 0 0;
  padding: 10px 12px;
  border: 1px solid #e1bcbc;
  border-left: 3px solid #b93d3d;
  border-radius: 4px;
  background: #fbf2f2;
  color: #922f2f;
  font-size: 12px;
  line-height: 18px;
}

.login-layout-shell .login-panel > footer {
  margin: 36px 0 0;
  padding: 20px 0 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 0;
  border-top: 1px solid #e0e6e6;
  background: transparent;
  color: #778589;
  font-size: 10px;
  line-height: 16px;
  text-align: left;
}

.login-layout-shell .login-panel > footer svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: #008f7f;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 920px) {
  .login-screen { place-items: start center; padding: 20px; }
  .login-layout-shell {
    width: min(640px, 100%);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "landing" "panel";
  }
  .login-landing-copy {
    min-height: 238px;
    padding: 28px 36px;
    grid-template-rows: auto 1fr;
  }
  .login-landing-copy::after { right: -150px; bottom: -160px; }
  .login-landing-brand { width: 184px; height: 60px; }
  .login-landing-brand img { width: 184px; height: 60px; }
  .login-landing-main { align-self: end; max-width: none; margin: 24px 0 0; }
  .login-landing-kicker { margin-bottom: 10px; }
  .login-landing-copy h1 { max-width: 22ch; font-size: 29px; line-height: 36px; }
  .login-landing-summary { max-width: 56ch; margin-top: 10px; font-size: 12px; line-height: 18px; }
  .login-operation-strip,
  .login-capability-list,
  .login-landing-index { display: none; }
  .login-layout-shell .login-panel,
  .login-layout-shell.login-active .login-panel { min-height: 0; padding: 36px 44px 34px; }
}

@media (max-width: 540px) {
  .login-screen { padding: 0; background: #ffffff; }
  .login-layout-shell {
    width: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-landing-copy { min-height: 176px; padding: 22px 24px; }
  .login-landing-brand { width: 156px; height: 50px; }
  .login-landing-brand img { width: 156px; height: 50px; }
  .login-landing-main { margin-top: 14px; }
  .login-landing-kicker { display: none; }
  .login-landing-copy h1 { max-width: 23ch; font-size: 22px; line-height: 28px; }
  .login-landing-summary { display: none; }
  .login-capability-list { display: none; }
  .login-layout-shell .login-panel,
  .login-layout-shell.login-active .login-panel { padding: 28px 24px 26px; }
  .login-layout-shell .login-panel-head { margin-bottom: 26px; }
  .login-layout-shell .login-panel-head h1 { font-size: 26px; line-height: 32px; }
  .login-layout-shell .login-brand-mark { width: 46px; min-width: 46px; height: 46px; }
  .login-layout-shell .login-brand-mark img { width: 46px; height: 46px; }
  .login-layout-shell .login-panel > footer { margin-top: 28px; }
}

@media (max-height: 720px) and (min-width: 921px) {
  .login-screen { padding: 18px; }
  .login-layout-shell { min-height: calc(100vh - 36px); }
  .login-landing-copy { padding: 32px 44px 28px; }
  .login-landing-main { margin: 18px 0; }
  .login-landing-copy h1 { font-size: 34px; line-height: 41px; }
  .login-operation-strip { margin-top: 24px; }
  .login-layout-shell .login-panel,
  .login-layout-shell.login-active .login-panel { padding: 32px 46px 28px; }
  .login-layout-shell .login-panel-head { margin-bottom: 24px; }
  .login-layout-shell .login-form { gap: 16px; }
  .login-layout-shell .login-panel > footer { margin-top: 22px; padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-layout-shell .login-form .login-field-control input { transition: none; }
  .login-layout-shell .login-submit:disabled svg { animation: none; }
}
