/* CEP Caju v4.8.2 — B / Institucional acolhedor.
 * Load after cep_login_v4203.css. Original layout and global tokens stay intact.
 * Only newly introduced elements have unscoped rules; all existing UI is B-scoped.
 * Local botanical artwork is requested only above the mobile breakpoint.
 */

/* New presentation elements: safe defaults for the server-rendered actual theme. */
.login-new-copy,
.login-brand-logo img.login-new-copy,
.login-mobile-brand img.login-new-copy,
.login-brand-art,
.login-recovery-short {
  display: none;
}

.login-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 1rem auto;
  padding: .55rem .85rem;
  border: 1px solid #976d27;
  border-radius: 14px;
  background: transparent;
  color: #71521c;
  font: 600 .75rem/1.35 "Segoe UI", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.login-theme-toggle:hover {
  background: #fff6df;
  color: #50380e;
}

.login-theme-toggle:focus-visible,
.login-portal-nav a:focus-visible,
.login-activation > summary:focus-visible {
  outline: 3px solid #976d27;
  outline-offset: 4px;
}

.login-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 0 0 1.2rem;
  font: 600 .8rem/1.4 "Segoe UI", Arial, sans-serif;
}

.login-portal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: .55rem 0;
  border-bottom: 2px solid transparent;
  color: #52675b;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.login-portal-nav a[aria-current="page"] {
  border-bottom-color: #ad7b23;
  color: #254c36;
}

.login-portal-nav a:hover {
  color: #254c36;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* This wrapper is new; its fields still inherit the untouched actual stylesheet. */
.login-activation {
  min-width: 0;
}

.login-activation > summary {
  min-height: 44px;
  padding: .7rem 0;
  color: #294634;
  font: 700 .8rem/1.5 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.login-activation > .login-field {
  margin-top: .75rem;
}

/* B only: never change the actual theme's body, layout, controls or typography. */
.cep-visual-b {
  --v482-green: #254c36;
  --v482-green-deep: #193b29;
  --v482-cream: #fcf8f0;
  --v482-ink: #18392c;
  --v482-muted: #52675b;
  --v482-line: #7c8d7f;
  --v482-soft-line: #dedfd4;
  --v482-gold: #976d27;
  --cep-green: #254c36;
  --cep-ink: #18392c;
  --cep-muted: #52675b;
  --cep-line: #7c8d7f;
  background: #f6f2e9;
  color: var(--v482-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.cep-visual-b .login-classic-copy:not(.error):not([role="alert"]),
.cep-visual-b .login-feature-list,
.cep-visual-b .login-brand-kicker,
.cep-visual-b .login-eyebrow,
.cep-visual-b .login-password-manager,
.cep-visual-b .login-first-access {
  display: none;
}

.cep-visual-b .login-new-copy {
  display: inline;
}

.cep-visual-b img.login-new-copy {
  display: block;
}

.cep-visual-b .login-shell {
  width: min(1180px, calc(100% - 64px));
  min-height: 760px;
  margin: clamp(24px, 4vh, 48px) auto;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
  border: 1px solid #e0e3d9;
  border-radius: 18px;
  background: var(--v482-cream);
  box-shadow: 0 12px 40px rgb(37 76 54 / 9%);
}

.cep-visual-b .login-brand {
  min-width: 0;
  padding: clamp(30px, 3.7vw, 48px);
  background: var(--v482-green);
  color: var(--v482-cream);
  isolation: isolate;
}

.cep-visual-b .login-brand::before,
.cep-visual-b .login-brand::after {
  content: none;
}

.cep-visual-b .login-brand-logo {
  width: min(100%, 320px);
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 15px;
  background: #fffef9;
  box-shadow: none;
}

.cep-visual-b .login-brand-logo img {
  width: 100%;
  height: auto;
  max-height: 86px;
  object-fit: contain;
}

.cep-visual-b .login-brand-space {
  flex: 0 0 34px;
  min-height: 0;
}

.cep-visual-b .login-brand h1 {
  max-width: 100%;
  margin: 0;
  color: var(--v482-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.35vw, 3.5rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-brand-copy {
  max-width: 100%;
  margin: 1.15rem 0 0;
  color: #f0f2e8;
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-panel {
  position: relative;
  min-width: 0;
  align-items: flex-start;
  padding: 82px clamp(28px, 3.7vw, 50px) 32px;
  background: var(--v482-cream);
}

.cep-visual-b .login-content {
  width: min(100%, 480px);
  min-width: 0;
  padding-top: 0;
}

.cep-visual-b .login-theme-toggle {
  position: absolute;
  top: 22px;
  right: 26px;
  margin: 0;
  min-height: 44px;
  padding: .55rem 1rem;
  border-color: #ad7b23;
  border-radius: 16px;
  color: #71521c;
  font-size: .8rem;
  background: var(--v482-cream);
}

.cep-visual-b .login-theme-toggle:hover {
  background: #f4ead5;
}

.cep-visual-b .login-portal-nav {
  gap: .4rem 1.8rem;
  margin-bottom: 1.75rem;
  font-size: .92rem;
}

.cep-visual-b .login-portal-nav a {
  padding: .5rem 0;
  color: #52675b;
  font-weight: 600;
}

.cep-visual-b .login-portal-nav a[aria-current="page"] {
  color: var(--v482-green);
  border-bottom-color: #ad7b23;
  font-weight: 700;
}

.cep-visual-b .login-content h2 {
  margin: 0;
  color: #17372b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.55vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-lead {
  margin: .5rem 0 1.5rem;
  color: #233f32;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-form {
  min-width: 0;
  gap: 1.1rem;
}

/* Only visual order changes. Hidden security inputs and DOM order are untouched. */
.cep-visual-b .login-form > .login-field {
  order: 10;
}

.cep-visual-b .login-form > .login-check {
  order: 20;
}

.cep-visual-b .login-form > .login-submit {
  order: 30;
}

.cep-visual-b .login-form > .login-recovery-short {
  order: 40;
}

.cep-visual-b .login-form > .login-activation {
  order: 50;
}

.cep-visual-b .login-field {
  min-width: 0;
  gap: .45rem;
}

.cep-visual-b .login-field label {
  color: #233f32;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 .9rem;
  border: 1px solid var(--v482-line);
  border-radius: 8px;
  background: #fffdf9;
  color: #18392c;
  font: 400 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cep-visual-b .login-field input::placeholder {
  color: #617268;
  opacity: 1;
}

.cep-visual-b .login-field input:focus {
  outline: 2px solid var(--v482-green);
  outline-offset: 2px;
  border-color: var(--v482-green);
  box-shadow: 0 0 0 4px rgb(37 76 54 / 10%);
}

.cep-visual-b .login-field small,
.cep-visual-b .login-panel .form-hint {
  color: var(--v482-muted);
  font-size: .76rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-input-wrap input {
  padding-right: 54px;
}

.cep-visual-b .login-password-toggle {
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  color: #52675b;
  font-size: 1.1rem;
}

.cep-visual-b .login-password-toggle:hover {
  background: #e9eee4;
  color: var(--v482-green-deep);
}

.cep-visual-b .login-check {
  min-height: 44px;
  align-items: flex-start;
  gap: .7rem;
  padding: .25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--v482-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.cep-visual-b .login-check input {
  width: 20px;
  height: 20px;
  margin: .15rem 0 0;
  accent-color: var(--v482-green);
}

.cep-visual-b .login-check label {
  min-height: 44px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-check strong {
  color: #233f32;
  font-weight: 600;
}

.cep-visual-b .login-submit {
  min-height: 52px;
  margin-top: .15rem;
  padding: .8rem 1rem;
  border: 1px solid var(--v482-green);
  border-radius: 8px;
  background: var(--v482-green);
  color: #fffef9;
  font: 600 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-shadow: none;
  transition: background-color .15s ease;
}

.cep-visual-b .login-submit:hover {
  background: var(--v482-green-deep);
  border-color: var(--v482-green-deep);
  transform: none;
  box-shadow: none;
}

.cep-visual-b .login-submit:focus-visible,
.cep-visual-b .login-password-toggle:focus-visible,
.cep-visual-b .login-check input:focus-visible,
.cep-visual-b a:focus-visible {
  outline: 3px solid var(--v482-gold);
  outline-offset: 4px;
}

.cep-visual-b .login-recovery-short {
  display: block;
  margin: .15rem 0 0;
  color: var(--v482-green);
  font-size: .86rem;
  line-height: 1.5;
}

.cep-visual-b .login-recovery-short a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v482-green);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.cep-visual-b .login-recovery-short a:hover {
  color: #193b29;
  text-decoration-thickness: 2px;
}

.cep-visual-b .login-activation {
  margin-top: .2rem;
  border-top: 1px solid var(--v482-soft-line);
  border-bottom: 1px solid var(--v482-soft-line);
}

.cep-visual-b .login-activation > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  padding: .85rem 0;
  list-style: none;
  color: #233f32;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.5;
}

.cep-visual-b .login-activation > summary::-webkit-details-marker {
  display: none;
}

.cep-visual-b .login-activation > summary::after {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: -.25rem .3rem 0 0;
  border-right: 2px solid var(--v482-green);
  border-bottom: 2px solid var(--v482-green);
  transform: rotate(45deg);
}

.cep-visual-b .login-activation[open] > summary::after {
  transform: rotate(225deg);
  margin-top: .25rem;
}

.cep-visual-b .login-activation > .login-field {
  margin: .4rem 0 1rem;
}

.cep-visual-b .login-activation-help.login-new-copy {
  display: block;
}

.cep-visual-b .login-activation p {
  margin: .35rem 0 1rem;
  color: var(--v482-muted);
  font-size: .82rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-alert {
  min-width: 0;
  border-radius: 8px;
  padding: .85rem .9rem;
  font-size: .85rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cep-visual-b .login-alert.info {
  border-color: #b7cbb8;
  background: #edf3e9;
  color: #254c36;
}

.cep-visual-b .login-alert.error {
  border-color: #c37469;
  background: #fff1ee;
  color: #8d2419;
}

.cep-visual-b .login-security-note {
  margin: 1rem 0 0;
  color: var(--v482-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.cep-visual-b .login-security-note strong {
  color: #233f32;
}

.cep-visual-b .login-staff-link {
  color: var(--v482-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.cep-visual-b .login-staff-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v482-green);
}

.cep-visual-b .login-footer {
  margin: 1.8rem 0 0;
  color: var(--v482-muted);
  font-size: .76rem;
  line-height: 1.5;
  text-align: center;
}

/* The background URL does not occur in any mobile rule. Missing art = solid green. */
@media (min-width: 821px) {
  .cep-visual-b .login-brand-art {
    display: block;
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 43%;
    background-image: url("../assets/login_v482/cajueiro.webp");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
    mask-image: linear-gradient(to bottom, transparent, #000 16%);
    pointer-events: none;
  }
}

/* At 820 px and below the form is one column; long content always scrolls naturally. */
@media (max-width: 820px) {
  .cep-visual-b .login-shell {
    width: min(100% - 32px, 560px);
    min-height: 0;
    margin: 16px auto;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }

  .cep-visual-b .login-brand {
    display: none;
  }

  .cep-visual-b .login-panel {
    padding: 22px 24px 26px;
  }

  .cep-visual-b .login-content {
    width: 100%;
    max-width: none;
    padding-top: 0;
  }

  .cep-visual-b .login-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(calc(100% - 128px), 228px);
    min-height: 58px;
    margin: 0 0 1.25rem;
    padding: 8px 10px;
    border: 1px solid #e0e3d9;
    border-radius: 10px;
    background: #fffef9;
  }

  .cep-visual-b .login-mobile-brand img {
    width: 100%;
    height: auto;
    max-height: 62px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
  }

  .cep-visual-b .login-mobile-brand > span {
    display: none;
  }

  .cep-visual-b .login-theme-toggle {
    top: 29px;
    right: 24px;
    max-width: 120px;
    padding: .55rem .75rem;
    font-size: .75rem;
  }

  .cep-visual-b .login-portal-nav {
    gap: .25rem 1.6rem;
    margin-bottom: 1.4rem;
    font-size: .9rem;
  }

  .cep-visual-b .login-content h2 {
    font-size: clamp(1.7rem, 5vw, 2rem);
  }

  .cep-visual-b .login-lead {
    margin-bottom: 1.35rem;
    font-size: .94rem;
  }

  .cep-visual-b .login-form {
    gap: 1rem;
  }

  .cep-visual-b .login-footer {
    margin-top: 1.6rem;
  }
}

@media (max-width: 420px) {
  .cep-visual-b .login-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .cep-visual-b .login-panel {
    align-items: flex-start;
    padding: 20px 18px 24px;
  }

  .cep-visual-b .login-theme-toggle {
    top: 27px;
    right: 18px;
  }

  .cep-visual-b .login-mobile-brand {
    width: calc(100% - 120px);
    max-width: 190px;
  }

  .cep-visual-b .login-portal-nav {
    gap: .2rem 1.4rem;
    font-size: .85rem;
  }

  .cep-visual-b .login-content h2 {
    font-size: 1.72rem;
  }
}

@media (max-width: 340px) {
  .cep-visual-b .login-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .cep-visual-b .login-theme-toggle {
    right: 14px;
    max-width: 112px;
    padding-right: .6rem;
    padding-left: .6rem;
    font-size: .7rem;
  }

  .cep-visual-b .login-mobile-brand {
    width: calc(100% - 118px);
    padding: 7px;
  }

  .cep-visual-b .login-portal-nav {
    gap: .15rem 1rem;
    font-size: .82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cep-visual-b .login-field input,
  .cep-visual-b .login-submit,
  .cep-visual-b .login-password-toggle {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cep-visual-b .login-field input,
  .cep-visual-b .login-submit,
  .cep-visual-b .login-check input,
  .cep-visual-b .login-theme-toggle {
    border: 1px solid ButtonText;
  }

  .cep-visual-b .login-portal-nav a[aria-current="page"] {
    border-bottom-color: Highlight;
  }
}
