/* Atelier editorial — client sign-in and company reports. */
.auth-layout {
  margin-inline: auto;
  max-width: 1320px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}
.auth-cover {
  display: flex;
  flex-direction: column;
  background: #102b3d;
  color: #f7f4ec;
}
.auth-cover img {
  display: block;
  width: 100%;
  height: clamp(215px, 20vw, 330px);
  object-fit: cover;
  object-position: 50% 44%;
}
.auth-cover-copy { padding: clamp(26px, 3vw, 48px); }
.auth-cover-copy .eyebrow, .auth-cover h2 em { color: #cfb27a; }
.auth-cover h2 {
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 400;
  line-height: 1.06;
  color: inherit;
  margin-bottom: 16px;
}
.auth-cover-copy p { max-width: 39ch; color: #e1e5e2; }
.auth-cover a { color: #f7f4ec; text-underline-offset: 5px; }
.auth-cover a:hover { color: #cfb27a; }
.auth-form { align-self: start; padding: clamp(32px, 4.4vw, 76px); min-width: 0; }
.auth-form .tabs2 { gap: 22px; margin-bottom: 25px; }
.auth-form .tabs2 button { padding-inline: 0; }
.auth-form h1, .portal-reset h1 {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.auth-intro { margin: 10px 0 24px; color: var(--ink-2); }
.auth-form .field input { border-radius: 0; min-width: 0; }
.auth-password, .portal-company {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.auth-form .btn.pri {
  min-height: 47px;
  width: 100%;
  color: #fffdf6;
  background: #102b3d;
  border-color: #102b3d;
  border-radius: 0;
}
.auth-form .btn.pri:hover { background: #21465a; }
.auth-form .msg-bad:empty { display: none; }
.auth-activate {
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.auth-help { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.auth-help summary { cursor: pointer; font-weight: 600; }
.auth-help ol { margin-block: 14px !important; }
.text-action {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--brick);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.portal-reset { max-width: 560px; margin-inline: auto; }
.portal-reset h1 { margin: 0 0 22px; }
.portal-company { flex-wrap: wrap; margin-bottom: 24px; }
.portal-company h1, .demo-portal .ph h1 {
  font-weight: 400;
  font-size: clamp(36px, 3.8vw, 62px);
  letter-spacing: -.045em;
}
.portal-company > * { overflow-wrap: anywhere; }
.portal-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-block: 1px solid var(--line);
  padding-block: 12px;
  font-size: 14px;
}
.portal-sections a { color: var(--ink); text-underline-offset: 4px; }
.client-portal :is(#company-summary, #company-payments, #client-uploads, #company-info) { scroll-margin-top: 104px; }
.client-portal :is(#client-uploads, #company-info) { margin-top: 30px; }
.client-portal .card, .demo-portal .login-card { border-radius: 0; box-shadow: none; }
.client-portal .fs-kpis, .demo-portal .kpis { border-top: 2px solid var(--ink); }
.client-portal .fs-kpi b, .demo-portal .kpi b {
  font: 400 clamp(24px, 2.5vw, 38px)/1.12 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
}
.demo-portal .demo-bar { background: var(--brick-soft); border-bottom: 1px solid var(--line); }
.demo-portal .sticky-bar { top: var(--header-height, 84px); }
.demo-portal .explain { gap: 0; }
.demo-portal .login-card { padding: clamp(24px, 3vw, 48px); }
.demo-portal .login-card h1 { font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); }
.demo-portal .ph { border-top: 1px solid var(--gold); padding-top: 20px; }
.client-portal .fs-letter, .demo-portal .letter {
  padding: clamp(22px, 2.6vw, 40px);
  background: #102b3d;
  border-color: #102b3d;
  color: #f7f4ec;
}
.demo-portal .letter .body, .client-portal .fs-letter .fs-body {
  color: #f7f4ec;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 23px);
}
.demo-portal .letter .body strong, .client-portal .fs-body strong { background: none; color: #e7ce99; }
.demo-portal .letter .from, .demo-portal .letter .sig, .client-portal .fs-letter .fs-sig { color: #dee1db; }
.demo-portal .letter .sig, .client-portal .fs-letter .fs-sig { border-color: #496173; }
.demo-portal .letter .from b { color: #f7f4ec; }
.demo-portal .letter .avatar { color: #efdcae; border: 1px solid #bba473; background: transparent; }
.demo-portal .letter .acc-tools { color: var(--ink); }
.demo-portal .chart-card { padding: clamp(22px, 2.6vw, 40px); }
@media (max-width: 800px) {
  .auth-layout { display: flex; flex-direction: column; }
  .auth-form { order: -1; width: 100%; padding: 24px 18px; }
  .auth-form .form-grid { grid-template-columns: 1fr; }
  .auth-cover { display: grid; grid-template-columns: minmax(72px, 27%) 1fr; align-items: stretch; }
  .auth-cover img { height: 100%; min-height: 170px; }
  .auth-cover-copy { padding: 18px; font-size: 14px; }
  .auth-cover-copy h2 { font-size: 28px; margin-bottom: 9px; }
  .demo-portal .sticky-bar { position: static; }
}
