/*Manea public entry: one compact, centered, opaque card. Original full-view
   patterns and logos; no split layout, glass or tinted surface overlays.*/
html.public-entry {
  scrollbar-gutter: stable both-edges;
  background: #e8e8e4;
}
html.public-entry[data-theme="dark"] {
  background: #101010;
}
body.auth-page {
  background: var(--bg);
  isolation: isolate;
  min-height: 100dvh;
}
body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #e8e8e4 url("../patterns/venyar_M-12_zeichenfeld_hell_5000.svg") center / cover no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] body.auth-page::before {
  background: #101010 url("../patterns/venyar_M-12_zeichenfeld_dunkel_5000.svg") center / cover no-repeat;
}
body.auth-page main#main.auth-main {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 25px 32px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
html[data-theme="dark"] .auth-card {
  background: #202020;
  box-shadow: none;
}
.auth-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 0 16px;
}
.auth-brand {
  display: block;
  line-height: 0;
  border-radius: 3px;
}
.auth-brand img {
  display: block;
  width: 134px;
  height: auto;
}
.auth-head > .icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  min-width: 34px;
}
.auth-card h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.6px;
  text-align: center;
}
.auth-intro {
  margin-bottom: 18px;
  text-align: center;
}
.auth-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 22px;
  text-align: center;
}
.auth-intro .auth-caption {
  margin: 6px 0 0;
}
.auth-card .field {
  margin-bottom: 14px;
}
.auth-card .field label {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 6px;
}
.auth-card .field input:not([type="checkbox"]) {
  height: 44px;
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--surface);
  border-color: var(--line-strong);
}
html[data-theme="dark"] .auth-card .field input {
  background: #202020;
}
.auth-card .password-field .icon-btn {
  top: 2px;
  right: 3px;
  width: 40px;
  height: 40px;
  min-width: 40px;
}
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  min-height: 28px;
}
.auth-options .check-label {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  margin: 0;
  gap: 8px;
  min-height: 28px;
  color: var(--secondary);
}
.auth-options .checkbox {
  margin: 0;
}
.auth-options a {
  color: var(--accent-text);
  font-size: 12px;
  padding-block: 5px;
  border-radius: 3px;
}
.auth-card .btn.full, .auth-card .sso-button {
  min-height: 44px;
  width: 100%;
  font-size: 12px;
  padding: 11px 15px;
}
.auth-card .sso-button {
  margin-top: 9px;
}
.auth-demo {
  margin-top: 12px;
  text-align: center;
}
.auth-demo-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.auth-demo .text-btn {
  min-height: 28px;
  padding: 4px 0;
  font-size: 11px;
}
.auth-demo p {
  margin: 2px 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-footer strong {
  font-weight: 600;
  color: var(--secondary);
}
.auth-footer .text-btn {
  padding: 4px 0;
  min-height: 28px;
  font-size: 10px;
}
/* Shared legal destinations remain readable and touchable on sign-in cards. */
.auth-footer:has(nav) {
  flex-direction: column;
  align-items: flex-start;
  font-size: 12px;
  line-height: 20px;
}
.auth-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  width: 100%;
}
.auth-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.auth-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
}
.auth-back {
  margin: 0 0 18px;
}
.auth-back a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  min-height: 28px;
}
.auth-error-card h1 {
  font-size: 23px;
}
.error-number {
  font-family: var(--font-ui);
  font-size: 68px;
  font-weight: 600;
  letter-spacing: -3px;
  line-height: 1.1;
  text-align: center;
  margin: 4px 0 20px;
  font-variant-numeric: lining-nums;
  font-feature-settings: "zero" 0;
}
.error-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.auth-card .code-input {
  letter-spacing: .4em;
  font-size: 23px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
}
.auth-card .field input[aria-invalid="true"] {
  border-color: var(--negative);
}
.auth-card .form-error {
  font-size: 12px;
  line-height: 1.5;
  padding: 11px 12px;
  margin-bottom: 17px;
}
@media (hover: hover) and (pointer: fine) {
  .auth-options a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
@media (max-width: 520px) {
  body.auth-page main#main.auth-main {
    padding: 20px 16px;
  }
  .auth-card {
    max-width: 420px;
    padding: 25px 24px 18px;
  }
  .auth-head {
    margin-bottom: 18px;
  }
  .auth-brand img {
    width: 128px;
  }
  .auth-card h1 {
    font-size: 23px;
  }
  .auth-intro {
    margin-bottom: 21px;
  }
  .auth-card .field input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .auth-head > .icon-btn {
    top: 10px;
    right: 10px;
  }
  .auth-demo-actions {
    gap: 22px;
  }
}
@media (pointer: coarse) {
  .auth-head > .icon-btn {
    min-width: 40px;
    min-height: 40px;
  }
  .auth-card .password-field .icon-btn {
    min-height: 40px;
  }
}
@media (forced-colors: active) {
  body.auth-page::before {
    display: none;
  }
  .auth-card {
    border-color: CanvasText;
    box-shadow: none;
  }
  .auth-brand img {
    forced-color-adjust: none;
  }
}
