.smarta-entry .smarta-entry-icon,
.partner-workspace :is(#login, #sessionCheck) > .smarta-entry-icon {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border: 0;
  box-shadow: none;
  object-fit: contain;
}
.smarta-entry .smarta-entry-portrait {
  border-radius: 50%;
  object-fit: cover;
}
.partner-workspace .smarta-entry .smarta-entry-icon {
  border-radius: 0;
  object-fit: contain;
}
.partner-workspace :is(#login, #sessionCheck)[data-swiss-entry] > .smarta-entry-icon {
  border-radius: 50%;
  object-fit: cover;
}
.smarta-entry[data-swiss-entry] {
  --brand-action: #b64700;
  --brand-action-hover: #9c3b00;
  --brand-action-text: #fff;
  --brand-focus: light-dark(#9c3b00, #ffb15c);
}
.smarta-entry[data-jud-entry] {
  --brand-action: #ffcc00;
  --brand-action-hover: #ffda43;
  --brand-action-text: #1b1a17;
  --brand-focus: light-dark(#12588c, #a3d6ff);
}
body.smarta-workspace .nav .smarta-product-mark {
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
body.smarta-workspace #authStart:not([hidden]) {
  display: block;
  width: min(420px, calc(100% - 32px));
  margin: clamp(24px, 8vh, 90px) auto;
  padding: 26px;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 21px;
}
#authStart h1 {
  margin: 0 0 12px;
  font-size: 26px;
}
#authStartMessage {
  display: grid;
  justify-items: center;
  gap: 14px;
  overflow-wrap: anywhere;
}
#authStartMessage button {
  min-height: 44px;
}
body.smarta-workspace:has(.nav[hidden]) > :is(.wrap, .skip-link) {
  display: none !important;
}

/* An entry can carry a visible brand independently of authentication. */
html body.partner-workspace:has(> .smarta-entry:not([hidden])) {
  display: flow-root;
  background: radial-gradient(ellipse at top, var(--brand-line), transparent 60vh), var(--brand-canvas);
  color: var(--brand-ink);
  color-scheme: light dark;
}
:root[data-theme="light"] body.partner-workspace:has(> .smarta-entry:not([hidden])) { color-scheme: light; }
:root[data-theme="dark"] body.partner-workspace:has(> .smarta-entry:not([hidden])) { color-scheme: dark; }

html body.partner-workspace:has(> .smarta-entry[data-jud-entry]:not([hidden])) {
  --brand-canvas: light-dark(#eff4fa, #0e1928);
  --brand-line: light-dark(#d3e0ee, #263a52);
  --brand-control: light-dark(#7b92aa, #758da7);
}

html body.partner-workspace > .smarta-entry {
  box-sizing: border-box;
  width: min(440px, calc(100% - 32px));
  min-width: 0;
  margin: clamp(16px, calc((100dvh - 720px) / 2), 120px) auto 24px;
  padding: 30px;
  color: var(--brand-ink);
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 26px;
  box-shadow: 0 20px 50px -36px rgb(18 34 24 / .55);
}

html body.partner-workspace #sessionCheck { text-align: center; }
html body.partner-workspace > .smarta-entry h2 {
  margin: 0 0 22px;
  color: inherit;
  text-align: center;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}
html body.partner-workspace #login label {
  display: block;
  margin: 14px 0 6px;
  color: var(--brand-ink);
  font-size: 15px;
  font-weight: 600;
}
html body.partner-workspace #login :is(input, select) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  color: var(--brand-ink);
  background: var(--brand-field);
  border: 1px solid var(--brand-control);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
}
html body.partner-workspace #login input::placeholder { color: var(--brand-muted); opacity: 1; }
html body.partner-workspace .smarta-entry :is(input, select, button):focus-visible,
body.smarta-workspace :is(#authStartMessage, #logoutShield) button:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}
html body.partner-workspace #login input:-webkit-autofill {
  -webkit-text-fill-color: var(--brand-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--brand-field) inset;
  caret-color: var(--brand-ink);
}
html body.partner-workspace > .smarta-entry .btn,
body.smarta-workspace :is(#authStartMessage, #logoutShield) button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--brand-action);
  color: var(--brand-action-text);
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  box-shadow: none;
}
html body.partner-workspace > .smarta-entry .btn { margin-top: 20px; }
html body.partner-workspace #login .btn { width: 100%; }
html body.partner-workspace #login #loginSubmit:hover:not(:disabled),
body.smarta-workspace :is(#authStartMessage, #logoutShield) button:hover {
  background: var(--brand-action-hover);
  color: var(--brand-action-text);
}
html body.partner-workspace #login .btn:disabled {
  background: var(--brand-field);
  border-color: var(--brand-line);
  color: var(--brand-muted);
  opacity: 1;
  cursor: progress;
}
html body.partner-workspace #login #loginSubmit[aria-busy="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand-line);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: smarta-entry-spin .8s linear infinite;
}
html body.partner-workspace > .smarta-entry :is(.btn.soft, .btn.soft:hover) {
  color: var(--brand-ink);
  background: var(--brand-field);
  border-color: var(--brand-control);
}
html body.partner-workspace #login .demo { border-color: var(--brand-line); }
html body.partner-workspace #login :is(#loginCustomerNote, #loginCustomerNumberNote) {
  color: var(--brand-muted);
}
html body.partner-workspace #login .err:not(:empty) {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--brand-error-bg);
  color: var(--brand-error);
  font-size: 15px;
  overflow-wrap: anywhere;
}
html body.partner-workspace #sessionCheck #sessionCheckMessage {
  margin: 0;
  color: var(--brand-muted);
  font-size: 16px;
}
@keyframes smarta-entry-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html body.partner-workspace #login #loginSubmit[aria-busy="true"]::before { animation: none; }
}
@media (max-width: 480px) {
  html body.partner-workspace > .smarta-entry { padding: 24px 20px; }
}
