/* Meu RH LAFEPE — camada visual independente dos bundles TOTVS. */
@font-face {
  font-family: 'Lafepe Sans';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lafepe Sans';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

/* !important somente nos tokens e pontos sobrescritos pelo tema dinâmico. */
html[data-lafepe-theme] {
  --lafepe-blue: #003459;
  --lafepe-red: #c8102e;
  --lafepe-font: 'Lafepe Sans', Arial, sans-serif;
  --color-brand-01-lightest: #edf4f9 !important;
  --color-brand-01-lighter: #d4e5f1 !important;
  --color-brand-01-light: #91bad5 !important;
  --color-brand-01-base: #005184 !important;
  --color-brand-01-dark: #003459 !important;
  --color-brand-01-darker: #00273f !important;
  --color-brand-01-darkest: #001b2e !important;
  --color-brand-02-base: #c8102e !important;
  --color-action-default: #005184 !important;
  --color-action-hover: #003459 !important;
  --color-action-pressed: #00273f !important;
  --color-action-focus: #003459 !important;
  --font-family: var(--lafepe-font) !important;
  --font-family-theme: var(--lafepe-font) !important;
  --font-family-theme-bold: var(--lafepe-font) !important;
  --font-family-theme-extra-bold: var(--lafepe-font) !important;
  --font-family-theme-light: var(--lafepe-font) !important;
  --font-family-theme-extra-light: var(--lafepe-font) !important;
  --font-family-text: var(--lafepe-font) !important;
  --font-family-heading: var(--lafepe-font) !important;
  --font-family-bold: var(--lafepe-font) !important;
  --font-family-extra-bold: var(--lafepe-font) !important;
  --font-family-default: var(--lafepe-font) !important;
  --font-family-default-bold: var(--lafepe-font) !important;
}
html[data-lafepe-theme] body {
  font-family: var(--lafepe-font);
  -webkit-font-smoothing: antialiased;
}
html[data-lafepe-theme] :is(h1, h2, h3, h4, input, textarea, select, button, .po-field-title, .po-menu-item-label, .po-button-label) {
  font-family: var(--lafepe-font);
}
html[data-lafepe-theme] :is(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #397fac !important;
  outline-offset: 3px;
}
html[data-lafepe-theme] po-header {
  --background-color: #003459 !important;
  --background-color-customer: #00273f !important;
  --text-color: #ffffff !important;
  --icon-color: #ffffff !important;
  --text-color-submenu: #d4e5f1 !important;
  --border-color: #194b6f !important;
}
html[data-lafepe-theme] .po-menu-item-selected {
  border-left: 3px solid var(--lafepe-blue);
}
html[data-lafepe-theme] :is(.po-menu-logo, .po-menu-short-logo) {
  object-fit: contain;
}
html[data-lafepe-theme] :is(.po-button, .po-input, .po-select-button) {
  border-radius: 8px;
}
html[data-lafepe-theme] app-menu .po-container {
  border-radius: 12px;
  box-shadow: 0 3px 12px rgb(0 52 89 / 6%);
}

/* Seletores conferidos no componente desta versão, incluindo recuperação. */
html[data-lafepe-theme] :is(app-login, app-reset-password, app-password-recovery) .login-page {
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 5vw;
  padding: 64px 7vw 88px;
  overflow: visible;
  background: #edf3f7 !important;
  isolation: isolate;
}
html[data-lafepe-theme] .login-page::before {
  content: '';
  position: absolute;
  inset: 0 43% 0 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(0 39 63 / 35%), rgb(0 27 46 / 92%)), url('../img/lafepe-fachada.jpg') center / cover;
}
html[data-lafepe-theme] .login-page .login-card {
  box-sizing: border-box;
  display: block;
  flex: 0 1 440px;
  width: 440px;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  margin: 0;
  --background: #ffffff !important;
  --border-radius: 20px !important;
  --border-color: #dbe5ec !important;
  --color-neutral-light-00: #fff;
  --color-neutral-light-05: #f8fafc;
  --color-neutral-light-10: #e5ebf0;
  --color-neutral-light-20: #d4dfe7;
  --color-neutral-dark-70: #526574;
  --color-neutral-dark-80: #344e61;
  --color-neutral-dark-90: #233b4c;
  --color-neutral-dark-95: #132b3d;
  color: #233b4c;
  box-shadow: 0 20px 60px rgb(0 39 63 / 12%);
  border-radius: 20px;
}
html[data-lafepe-theme] .login-card .po-container {
  padding: 24px;
  background: #fff !important;
  border-radius: 20px;
  overflow: visible;
}
html[data-lafepe-theme] .login-card .container-header {
  margin: 12px 0 26px;
}
html[data-lafepe-theme] .login-card .container-header img {
  width: 208px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
html[data-lafepe-theme] .login-card :is(.title, .subtitle, .divider, .btn-provider) {
  font-family: var(--lafepe-font);
}
html[data-lafepe-theme] .login-card .title {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: #003459;
  margin-bottom: 12px;
}
html[data-lafepe-theme] .login-card .subtitle {
  color: #526574;
  line-height: 1.6;
  margin-bottom: 24px;
}
html[data-lafepe-theme] .login-card .po-button {
  min-height: 44px;
}
html[data-lafepe-theme] .login-card .btn-primary {
  color: #fff;
}
html[data-lafepe-theme] .login-page .footer {
  position: absolute;
  left: auto;
  right: 7vw;
  bottom: 22px;
  margin: 0;
  width: auto;
}
.lafepe-intro {
  flex: 1 1 440px;
  max-width: 620px;
  margin-right: auto;
  padding: 32px 3vw 32px 0;
  color: #fff;
  font-family: var(--lafepe-font);
}
.lafepe-intro .lafepe-eyebrow {
  display: block;
  color: #e1edf5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lafepe-intro h2 {
  color: #fff !important;
  font-family: var(--lafepe-font) !important;
  font-size: clamp(36px, 4.1vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  white-space: normal;
  overflow: visible;
  margin: 24px 0;
  max-width: 490px;
}
.lafepe-intro h2::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: #e73546;
  margin-bottom: 24px;
  border-radius: 2px;
}
.lafepe-intro p {
  font-size: 18px;
  line-height: 1.65;
  color: #e1edf5;
  max-width: 380px;
}
.lafepe-portal-name {
  display: block;
  margin: 0 8px 12px;
  color: #005184;
  font-family: var(--lafepe-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 960px) {
  html[data-lafepe-theme] :is(app-login, app-reset-password, app-password-recovery) .login-page {
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 20px;
    gap: 28px;
  }
  html[data-lafepe-theme] .login-page::before { inset: 0 0 45% 0; }
  .lafepe-intro { flex: none; width: 440px; max-width: 100%; margin: 0; padding: 0; }
  .lafepe-intro h2 { font-size: 32px; margin: 12px 0; }
  .lafepe-intro h2::before { margin-bottom: 14px; }
  .lafepe-intro p { font-size: 16px; margin: 0; }
  html[data-lafepe-theme] .login-page .login-card { flex: none; }
  html[data-lafepe-theme] .login-page .footer {
    position: static;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 480px) {
  html[data-lafepe-theme] :is(app-login, app-reset-password, app-password-recovery) .login-page { padding: 24px 16px; gap: 20px; }
  .lafepe-intro h2 { font-size: 28px; }
  .lafepe-intro p { display: none; }
  html[data-lafepe-theme] .login-card .po-container { padding: 16px; }
  html[data-lafepe-theme] .login-card .container-header { margin: 8px 0 20px; }
  html[data-lafepe-theme] .login-card .container-header img { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-lafepe-theme] .login-card .btn-provider { transition: none; transform: none; }
}
@media print {
  .lafepe-intro, .lafepe-portal-name { display: none !important; }
  html[data-lafepe-theme] .login-page::before { display: none; }
}
