:root {
  --tf-ink: #132c27;
  --tf-forest: #173a33;
  --tf-forest-deep: #0b211d;
  --tf-copper: #c86f38;
  --tf-copper-light: #e19862;
  --tf-cream: #fff9ed;
}

.trussforge-login {
  margin: 0;
  min-width: 0;
  color: var(--tf-cream);
  background: var(--tf-forest-deep);
  overflow-x: hidden;
}
.tf-public-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(24px, 4vw, 72px);
  background: var(--tf-forest-deep);
  border-bottom: 1px solid #ffffff18;
}
.tf-public-logo { width: min(335px, 46vw); display: block; }
.tf-public-logo img { display: block; width: 100%; height: auto; }
.tf-public-header nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); }
.tf-public-header nav a,
.tf-public-header nav button {
  color: #f4ead9;
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
}
.tf-public-header nav a:hover,
.tf-public-header nav button:hover { color: var(--tf-copper-light); }

.tf-login-main {
  min-height: calc(100svh - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(390px, .82fr);
  background:
    radial-gradient(circle at 11% 12%, #315d4f 0, transparent 34%),
    linear-gradient(135deg, var(--tf-forest) 0%, var(--tf-forest-deep) 74%);
}
.tf-login-story {
  position: relative;
  min-width: 0;
  padding: clamp(54px, 6vw, 92px) clamp(34px, 6vw, 108px) 40px;
  overflow: hidden;
  border-right: 1px solid #ffffff18;
}
.tf-blueprint { position: absolute; inset: 0; opacity: .19; pointer-events: none; }
.tf-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
}
.tf-blueprint::after {
  content: "";
  position: absolute;
  width: min(62vw, 780px);
  aspect-ratio: 1.65;
  left: -5%;
  bottom: 1%;
  border: 5px solid #d7e8dd;
  border-bottom-width: 7px;
  clip-path: polygon(0 100%, 50% 2%, 100% 100%, 94% 100%, 50% 14%, 6% 100%);
}
.tf-blueprint span { position: absolute; display: block; height: 3px; background: #d7e8dd; transform-origin: left center; }
.tf-blueprint span:nth-child(1) { width: 53%; left: 8%; bottom: 10%; transform: rotate(-31deg); }
.tf-blueprint span:nth-child(2) { width: 53%; left: 50%; bottom: 44%; transform: rotate(31deg); }
.tf-blueprint span:nth-child(3) { width: 48%; left: 25%; bottom: 10%; transform: rotate(-52deg); }
.tf-story-copy { position: relative; z-index: 1; max-width: 850px; }
.tf-kicker,
.tf-access-kicker,
.tf-updates-heading p {
  margin: 0;
  color: var(--tf-copper-light);
  font: 800 10px/1.2 var(--sans);
  letter-spacing: 3.1px;
}
.tf-story-copy h1 {
  max-width: 830px;
  margin: 20px 0 22px;
  color: var(--tf-cream);
  font: 500 clamp(48px, 5.7vw, 84px)/.98 var(--serif);
  letter-spacing: -2.5px;
}
.tf-story-intro {
  max-width: 690px;
  margin: 0;
  color: #dbe5df;
  font: 400 clamp(16px, 1.3vw, 20px)/1.58 var(--sans);
}
.tf-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(38px, 5vw, 70px);
  max-width: 900px;
}
.tf-capabilities article { padding-top: 14px; border-top: 1px solid #ffffff3a; }
.tf-capabilities span { color: var(--tf-copper-light); font-size: 10px; letter-spacing: 2px; }
.tf-capabilities strong { display: block; margin: 10px 0 7px; color: #fff7e8; font-size: 13px; }
.tf-capabilities p { margin: 0; color: #bdcdc5; font-size: 11px; line-height: 1.55; }

.tf-updates {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: clamp(34px, 4vw, 60px);
  padding: 22px 24px 20px;
  border: 1px solid #ffffff23;
  background: #071a17a8;
  backdrop-filter: blur(8px);
}
.tf-updates-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.tf-updates-heading h2 { margin: 5px 0 0; color: #fff8ea; font: 500 22px/1.1 var(--serif); }
.tf-updates-heading a { color: #efd1b8; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.tf-updates ol { list-style: none; margin: 17px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.tf-updates li { display: grid; grid-template-columns: 48px 1fr; gap: 11px; padding: 12px 0; border-top: 1px solid #ffffff1a; }
.tf-updates time { color: var(--tf-copper-light); font: 800 9px/1.4 var(--sans); letter-spacing: .7px; text-transform: uppercase; }
.tf-updates strong { color: #f8f2e6; font-size: 11px; line-height: 1.35; }
.tf-updates li p { margin: 4px 0 0; color: #b9c9c1; font-size: 9px; line-height: 1.45; }

.tf-access-panel {
  display: grid;
  align-items: center;
  padding: clamp(36px, 5vw, 76px) clamp(28px, 4.5vw, 72px);
  color: var(--tf-ink);
  background:
    linear-gradient(145deg, #fffdf8e8, #f1e4d0f5),
    repeating-linear-gradient(135deg, transparent 0 16px, #6e41240c 16px 17px);
}
.tf-access-card { width: min(100%, 440px); margin: auto; }
.tf-access-kicker { color: #9b5128; }
.tf-access-card h2 { margin: 13px 0 12px; color: var(--tf-ink); font: 500 clamp(34px, 3.1vw, 48px)/1.06 var(--serif); letter-spacing: -1.2px; }
.tf-access-intro { margin: 0 0 31px; color: #53625d; font-size: 13px; line-height: 1.65; }
.tf-login-form label { color: #243c35; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.tf-login-form .input-icon { position: relative; }
.tf-login-form .input-icon .icon { position: absolute; left: 14px; top: 15px; width: 17px; height: 17px; color: #63746d; z-index: 1; }
.tf-login-form .input-icon input {
  width: 100%;
  height: 50px;
  margin: 0 0 19px;
  padding: 12px 14px 12px 43px;
  color: #18342c;
  background: #fffdf9;
  border: 1px solid #b8bfb9;
  border-radius: 3px;
  box-shadow: 0 1px 0 #fff inset;
}
.tf-login-form .input-icon input::placeholder { color: #7c8983; }
.tf-login-form .input-icon input:focus-visible { outline: 3px solid #c86f3845; border-color: var(--tf-copper); }
.tf-login-form .password-label { display: flex; align-items: baseline; justify-content: space-between; }
.tf-login-form .password-label button { color: #774526; font-size: 10px; }
.tf-login-form .remember { display: flex; align-items: center; gap: 8px; margin: -2px 0 17px; color: #52615c; font-weight: 500; }
.tf-login-form .remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--tf-copper); }
.tf-login-form .button {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  color: #fff9ef;
  background: var(--tf-forest);
  border-color: var(--tf-forest);
  font-weight: 800;
  letter-spacing: .4px;
}
.tf-login-form .button:hover { background: #205044; }
.tf-existing-access { margin: 15px 0 0; color: #69756f; text-align: center; font-size: 10px; }
.tf-access-card .sign-in-divider { color: #6c7772; }
.tf-access-card .sign-in-divider::before,
.tf-access-card .sign-in-divider::after { background: #aeb7b1; }
.tf-access-card .sso-options button { color: #50605a; border-color: #aab4ae; background: #fffaf1; }
.tf-access-help { margin-top: 27px; padding-top: 17px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid #aab4ae; color: #5b6964; font-size: 10px; }
.tf-access-help span { display: flex; align-items: center; gap: 6px; }
.tf-access-help .icon { width: 14px; height: 14px; color: var(--tf-copper); }
.tf-access-help a { color: #623a23; font-weight: 800; }

.tf-public-footer {
  min-height: 46px;
  padding: 11px clamp(24px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #aebdb6;
  background: #071a17;
  border-top: 1px solid #ffffff14;
  font-size: 9px;
  letter-spacing: .6px;
}
.tf-public-footer a,
.tf-public-footer button { color: #d7dfda; text-decoration: none; font-size: inherit; }
.tf-public-footer i { padding: 0 10px; color: #52665e; font-style: normal; }

@media (max-width: 1180px) {
  .tf-login-main { grid-template-columns: minmax(0, 1.1fr) minmax(370px, .9fr); }
  .tf-login-story { padding-inline: 48px; }
  .tf-story-copy h1 { font-size: 60px; }
  .tf-capabilities article:nth-child(3) { display: none; }
  .tf-capabilities { grid-template-columns: repeat(2, 1fr); }
  .tf-updates li p { display: none; }
}
@media (max-width: 860px) {
  .tf-public-header { min-height: 74px; padding: 10px 22px; }
  .tf-public-logo { width: 270px; }
  .tf-public-header nav a:first-child { display: none; }
  .tf-login-main { display: flex; flex-direction: column; }
  .tf-login-story { padding: 56px 40px 46px; border-right: 0; border-bottom: 1px solid #ffffff18; }
  .tf-story-copy h1 { font-size: clamp(49px, 9vw, 72px); }
  .tf-updates { max-width: none; }
  .tf-access-panel { padding: 60px 32px 68px; }
  .tf-access-card { width: min(100%, 520px); }
}
@media (max-width: 560px) {
  .tf-public-header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 18px 12px; }
  .tf-public-logo { width: 255px; max-width: 82vw; }
  .tf-public-header nav { width: 100%; justify-content: flex-end; gap: 20px; }
  .tf-public-header nav a,
  .tf-public-header nav button { font-size: 9px; }
  .tf-login-story { padding: 48px 22px 34px; }
  .tf-story-copy h1 { margin-top: 15px; font-size: clamp(43px, 14vw, 60px); letter-spacing: -1.8px; }
  .tf-story-intro { font-size: 15px; }
  .tf-capabilities { grid-template-columns: 1fr; margin-top: 34px; }
  .tf-capabilities article:nth-child(2) { display: none; }
  .tf-updates { margin-top: 34px; padding: 19px 17px 14px; }
  .tf-updates ol { grid-template-columns: 1fr; }
  .tf-updates li:nth-child(n+4) { display: none; }
  .tf-updates li p { display: none; }
  .tf-access-panel { padding: 50px 21px 58px; }
  .tf-access-card h2 { font-size: 39px; }
  .tf-public-footer { align-items: flex-start; flex-direction: column; padding: 16px 20px; }
  .tf-public-footer i { padding: 0 5px; }
}
@media (max-width: 340px) {
  .tf-public-header nav { justify-content: flex-start; gap: 14px; }
  .tf-story-copy h1 { font-size: 41px; }
  .tf-login-story { padding-inline: 17px; }
  .tf-access-panel { padding-inline: 17px; }
  .tf-access-card h2 { font-size: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-public-header *, .tf-login-main * { scroll-behavior: auto; transition: none !important; }
}

.trussforge-signature {
  position: sticky;
  bottom: 0;
  z-index: 2;
  align-items: center;
  background: color-mix(in srgb, var(--company-primary, #082b25) 94%, #000);
  box-shadow: 0 -8px 18px #001c171f;
}
.trussforge-signature img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 4px;
  background: #fff8e9;
}
.trussforge-signature span { line-height: 1.3; }
.trussforge-signature small { margin-top: 3px; }

.tf-public-wordmark img {
  width: 33px;
  height: 33px;
  padding: 5px;
  border-radius: 3px;
  background: #fff8e9;
}
