:root {
  color-scheme: dark;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #f3f5ec;
  background: #101210;
  --lime: #d5fa71;
  --muted: #98a296;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
a {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--lime);
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  padding: 14px;
  background: var(--lime);
  color: #101210;
}
.skip:focus {
  top: 12px;
}
.auth-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 46px 56px 32px;
  background: #0e0e0e;
  border-right: 1px solid #282e25;
}
.wordmark {
  display: flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: 1px;
}
.dev-tag {
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 9px;
  border: 1px solid #434d2f;
  border-radius: 6px;
}
.brand-story {
  padding: 30px 0 46px;
}
.brand-art {
  width: min(100%, 330px);
  height: auto;
  display: block;
  margin: 0 0 30px -18px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 600;
  color: var(--lime);
  margin: 0 0 20px;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -2px;
}
h1 span {
  color: var(--muted);
}
.brand-copy {
  font-size: 15px;
  line-height: 1.7;
  color: #a2a89b;
  margin: 24px 0 0;
}
.brand-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #a2a89b;
  border-top: 1px solid #272c23;
  padding-top: 22px;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}
.edition {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 1px;
}
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px 28px;
}
.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.private-tag {
  border: 1px solid #30372b;
  border-radius: 20px;
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 8px;
}
.form-wrap {
  width: 100%;
  max-width: 438px;
  margin: 64px auto;
}
h2 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.intro {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 30px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
legend {
  font-size: 12px;
  margin-bottom: 12px;
  color: #d1d8c9;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.role-card {
  position: relative;
  cursor: pointer;
  background: #181c16;
  border: 1px solid #30362b;
  border-radius: 10px;
  padding: 16px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.role-card:hover {
  border-color: #849763;
}
.role-card:has(input:checked) {
  border-color: var(--lime);
  background: #202818;
}
.role-card input {
  position: absolute;
  right: 11px;
  top: 12px;
  accent-color: var(--lime);
  width: 13px;
  height: 13px;
}
.role-code {
  font-size: 9px;
  color: #929d83;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.role-card strong {
  font-size: 13px;
  font-weight: 600;
}
.role-card small {
  color: #a1ab98;
  font-size: 10px;
  line-height: 1.5;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  margin-top: 20px;
  color: #d1d8c9;
}
.field input {
  width: 100%;
  border: 1px solid #343b2e;
  background: #151912;
  padding: 15px 14px;
  border-radius: 8px;
  color: #f3f5ec;
  font-size: 13px;
}
.field input::placeholder {
  color: #75806e;
}
.field input:focus {
  border-color: var(--lime);
}
.show-password {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin: 17px 0 22px;
  cursor: pointer;
}
.show-password input {
  accent-color: var(--lime);
}
.primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  padding: 16px 18px;
  color: #202817;
  background: var(--lime);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.primary:hover {
  background: #e0ff92;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.first-login {
  display: flex;
  gap: 13px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 25px 0 0;
  padding-top: 22px;
  border-top: 1px solid #2a3025;
}
.step {
  flex-shrink: 0;
  color: var(--lime);
  padding-top: 2px;
  font-size: 10px;
}
.input-help {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 9px 0 0;
}
.identity-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #333c29;
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
  color: #d1d8c9;
}
.signout {
  display: block;
  margin: 23px auto 0;
  padding: 8px;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.error {
  color: #ffc2bc;
  background: #39211d;
  border: 1px solid #80423a;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 13px;
}
#loading {
  color: var(--muted);
  font-size: 13px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #849079;
  font-size: 9px;
  line-height: 1.7;
}
footer span:first-child {
  letter-spacing: 1px;
  white-space: nowrap;
}
@media (min-width: 1600px) {
  .brand-panel {
    padding-left: max(56px, calc((100vw - 1400px) / 2));
  }
}
@media (max-width: 1000px) {
  .brand-panel {
    padding: 32px;
  }
  .form-panel {
    padding: 32px;
  }
  .form-top > span:first-child {
    font-size: 8px;
  }
  .brand-art {
    width: 260px;
  }
}
@media (max-width: 720px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .brand-panel {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid #282e25;
    flex-direction: row;
    align-items: center;
  }
  .wordmark {
    font-size: 23px;
    gap: 10px;
  }
  .brand-story {
    padding: 0;
    order: -1;
  }
  .brand-art {
    width: 65px;
    height: 65px;
    margin: 0;
  }
  .brand-story > :not(img),
  .brand-foot {
    display: none;
  }
  .form-panel {
    padding: 24px;
    min-height: calc(100svh - 113px);
  }
  .form-top {
    display: none;
  }
  .form-wrap {
    margin: 18px auto 42px;
  }
  h2 {
    font-size: 34px;
  }
  .eyebrow {
    font-size: 9px;
  }
  footer {
    font-size: 8px;
  }
}

/* Two-step sign-in (BE-09, 15 Oct 2026) */
.mfa-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  line-height: 1.6;
}
.mfa-steps li {
  margin-bottom: 6px;
}
.mfa-secret {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  word-break: break-all;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-radius: 10px;
  user-select: all;
}
