:root {
  color-scheme: light;
  --navy: #01315c;
  --purple: #221247;
  --violet: #6e0f75;
  --magenta: #af0e8c;
  --mauve: #975c8b;
  --page: #f7f4f9;
  --surface: #ffffff;
  --surface-soft: #f4f0f6;
  --text: #221247;
  --muted: #746b7d;
  --border: #ded7e4;
  --input: #ffffff;
  --shadow: 0 24px 70px rgba(34, 18, 71, .16);
  --focus: 0 0 0 4px rgba(175, 14, 140, .17);
  --gradient: linear-gradient(135deg, #af0e8c, #6e0f75);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0718;
  --surface: #160b2a;
  --surface-soft: #241536;
  --text: #ffffff;
  --muted: #b9afc1;
  --border: #49385b;
  --input: #211332;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
  --focus: 0 0 0 4px rgba(239, 103, 199, .22);
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { background: var(--page); }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  transition: background-color 180ms ease, color 180ms ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: none; box-shadow: var(--focus); }
.logo { display: block; width: clamp(150px, 12vw, 190px); height: auto; object-fit: contain; }
.logo--dark { display: none; }
:root[data-theme="dark"] .logo--light { display: none; }
:root[data-theme="dark"] .logo--dark { display: block; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.eyebrow { color: var(--magenta); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: .65rem; }
.language-switcher { display: flex; align-items: center; padding: .22rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-soft); }
.language-switcher button { min-width: 2.2rem; height: 1.9rem; padding: 0 .48rem; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 750; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { color: var(--magenta); background: var(--surface); box-shadow: 0 3px 12px rgba(34, 18, 71, .1); }
.theme-toggle { position: relative; display: block; width: 4.5rem; height: 2.25rem; flex: 0 0 auto; overflow: hidden; border: 1px solid rgba(34, 18, 71, .18); border-radius: 999px; color: var(--purple); background: linear-gradient(135deg, #ffffff, #eee8f2); box-shadow: inset 0 1px 2px rgba(34, 18, 71, .08), 0 5px 16px rgba(34, 18, 71, .10); cursor: pointer; transition: border-color .22s ease, background .28s ease, box-shadow .22s ease; }
.theme-toggle > span { display: none; }
.theme-toggle::before { content: ""; position: absolute; z-index: 2; top: .18rem; left: 2.38rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: linear-gradient(145deg, var(--purple), var(--navy)); box-shadow: 0 3px 9px rgba(34, 18, 71, .28); transition: left .32s cubic-bezier(.22, 1, .36, 1), background .25s ease, box-shadow .25s ease; }
.theme-toggle::after { content: "☀"; position: absolute; z-index: 1; top: 50%; left: .62rem; color: var(--magenta); font-size: 1.05rem; line-height: 1; transform: translateY(-50%); transition: left .32s cubic-bezier(.22, 1, .36, 1), color .25s ease; }
.theme-toggle:hover { border-color: rgba(175, 14, 140, .58); box-shadow: inset 0 1px 2px rgba(34, 18, 71, .08), 0 6px 18px rgba(175, 14, 140, .16); }
:root[data-theme="dark"] .theme-toggle { border-color: rgba(255, 255, 255, .18); color: #fff; background: linear-gradient(135deg, #221247, #0d0718); box-shadow: inset 0 1px 2px rgba(255, 255, 255, .08), 0 5px 16px rgba(0, 0, 0, .32); }
:root[data-theme="dark"] .theme-toggle::before { left: .2rem; background: linear-gradient(145deg, #ffffff, #eee8f2); box-shadow: 0 3px 9px rgba(0, 0, 0, .32); }
:root[data-theme="dark"] .theme-toggle::after { content: "☾"; left: 2.95rem; color: #f2d9f0; font-size: 1.18rem; }
.logout-button { height: 2.45rem; padding: 0 .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); font-size: .78rem; font-weight: 750; cursor: pointer; }

/* Login em tela cheia */
.login-page { width: 100vw; height: 100dvh; overflow: hidden; }
.login-shell { display: grid; grid-template-columns: minmax(430px, .84fr) minmax(520px, 1.16fr); width: 100%; height: 100dvh; overflow: hidden; background: var(--surface); }
.login-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; height: 100dvh; padding: clamp(1.35rem, 3.2vh, 2.4rem) clamp(2rem, 4.2vw, 4.75rem); background: var(--surface); }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; }
.login-main { align-self: center; width: min(100%, 31rem); padding: clamp(1rem, 2.5vh, 2rem) 0; }
.login-copy { margin-bottom: clamp(1.1rem, 2.3vh, 1.75rem); }
.login-copy h1 { max-width: 31rem; margin: .5rem 0 0; font-size: clamp(2rem, 3.25vw, 3.45rem); line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.login-copy p { max-width: 30rem; margin: .8rem 0 0; color: var(--muted); line-height: 1.5; }
.login-form { display: grid; gap: clamp(.75rem, 1.5vh, 1rem); }
.field { display: grid; gap: .42rem; }
.field label { font-size: .83rem; font-weight: 750; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: clamp(3rem, 6.3vh, 3.45rem); padding: 0 3.25rem 0 1rem; border: 1px solid var(--border); border-radius: .8rem; color: var(--text); background: var(--input); }
.input-wrap input::placeholder { color: color-mix(in srgb, var(--muted), transparent 28%); }
.password-toggle { position: absolute; top: 50%; right: .58rem; transform: translateY(-50%); width: 2.15rem; height: 2.15rem; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 1.35rem; font-size: .78rem; }
.remember { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); }
.remember input { accent-color: var(--magenta); }
.text-button { padding: 0; border: 0; color: var(--magenta); background: transparent; cursor: pointer; }
.submit-button { height: clamp(3.15rem, 6.6vh, 3.65rem); border: 0; border-radius: .85rem; color: #fff; background: var(--gradient); box-shadow: 0 12px 28px rgba(175, 14, 140, .25); font-weight: 800; cursor: pointer; }
.submit-button:hover { filter: brightness(1.06); }
.form-feedback { min-height: 1.1rem; margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.35; text-align: center; }
.form-feedback.is-error { color: #c91e68; }
.login-footer { padding-top: .9rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .73rem; text-align: center; }

/* Murais */
.mural-panel { position: relative; min-width: 0; height: 100dvh; overflow: hidden; isolation: isolate; color: #fff; background: var(--purple); }
.mural-background { position: absolute; inset: 0; z-index: -2; transition: opacity 300ms ease; }
.mural-background::before, .mural-background::after { content: ""; position: absolute; border-radius: 50%; }
.visual-master-1 { background: linear-gradient(145deg, #01315c, #221247 52%, #af0e8c); }
.visual-master-1::before { width: 26rem; height: 26rem; right: -5rem; top: -5rem; background: rgba(239, 103, 199, .22); }
.visual-master-1::after { width: 13rem; height: 13rem; left: 12%; top: 18%; border: 2.6rem solid rgba(255, 255, 255, .18); }
.visual-master-2 { background: linear-gradient(135deg, #221247, #6e0f75 56%, #01315c); }
.visual-master-2::before { width: 21rem; height: 21rem; left: -6rem; bottom: -3rem; background: rgba(151, 92, 139, .55); }
.visual-master-2::after { width: 14rem; height: 14rem; right: 10%; top: 11%; border: 2.8rem solid rgba(175, 14, 140, .48); }
.visual-master-3 { background: linear-gradient(155deg, #01315c, #311052 55%, #975c8b); }
.visual-master-3::before { width: 19rem; height: 19rem; right: 6%; top: 7%; background: rgba(175, 14, 140, .36); }
.visual-master-3::after { width: 18rem; height: 18rem; left: -6rem; top: 44%; border: 3rem solid rgba(255, 255, 255, .12); }
.visual-cs-1 { background: linear-gradient(145deg, #221247, #531052 58%, #af0e8c); }
.visual-cs-1::before { width: 24rem; height: 24rem; right: -6rem; top: -5rem; background: rgba(239, 103, 199, .25); }
.visual-cs-1::after { width: 11rem; height: 11rem; left: 12%; top: 18%; border: 2.2rem solid rgba(255, 255, 255, .2); }
.visual-cs-2 { background: linear-gradient(135deg, #01315c, #221247 54%, #6e0f75); }
.visual-cs-2::before { width: 19rem; height: 19rem; left: -5rem; bottom: -3rem; background: rgba(151, 92, 139, .5); }
.visual-cs-2::after { width: 13rem; height: 13rem; right: 10%; top: 12%; border: 2.8rem solid rgba(175, 14, 140, .45); }
.visual-cs-3 { background: linear-gradient(160deg, #311052, #6e0f75 52%, #975c8b); }
.visual-cs-3::before { width: 16rem; height: 16rem; right: 8%; top: 8%; background: rgba(1, 49, 92, .55); }
.visual-cs-3::after { width: 18rem; height: 18rem; left: -7rem; top: 43%; border: 3rem solid rgba(255, 255, 255, .13); }
.visual-social-1 { background: linear-gradient(145deg, #071d38, #221247 52%, #6e0f75); }
.visual-social-1::before { width: 21rem; height: 21rem; right: -4rem; top: -4rem; background: rgba(27, 98, 143, .48); }
.visual-social-1::after { width: 10rem; height: 10rem; left: 11%; top: 18%; border: 2rem solid rgba(175, 14, 140, .56); }
.visual-social-2 { background: linear-gradient(150deg, #221247, #af0e8c 58%, #01315c); }
.visual-social-2::before { width: 16rem; height: 16rem; left: -3rem; bottom: 6%; background: rgba(239, 103, 199, .28); }
.visual-social-2::after { width: 15rem; height: 15rem; right: 7%; top: 10%; border: 2.5rem solid rgba(255, 255, 255, .14); }
.visual-social-3 { background: linear-gradient(135deg, #01315c, #0e2348 48%, #975c8b); }
.visual-social-3::before { width: 18rem; height: 18rem; right: -4rem; bottom: -2rem; background: rgba(175, 14, 140, .5); }
.visual-social-3::after { width: 12rem; height: 12rem; left: 12%; top: 14%; border: 2.3rem solid rgba(120, 188, 219, .3); }
.visual-client-1 { background: linear-gradient(145deg, #01315c, #221247 55%, #975c8b); }
.visual-client-1::before { width: 23rem; height: 23rem; right: -5rem; top: -4rem; background: rgba(151, 92, 139, .45); }
.visual-client-1::after { width: 12rem; height: 12rem; left: 9%; top: 18%; border: 2.4rem solid rgba(112, 181, 214, .32); }
.visual-client-2 { background: linear-gradient(135deg, #052a50, #6e0f75 58%, #af0e8c); }
.visual-client-2::before { width: 18rem; height: 18rem; left: -4rem; bottom: -2rem; background: rgba(1, 49, 92, .65); }
.visual-client-2::after { width: 14rem; height: 14rem; right: 8%; top: 12%; border: 2.6rem solid rgba(255, 255, 255, .15); }
.visual-client-3 { background: linear-gradient(155deg, #221247, #01315c 52%, #6e0f75); }
.visual-client-3::before { width: 20rem; height: 20rem; right: -5rem; bottom: 5%; background: rgba(151, 92, 139, .45); }
.visual-client-3::after { width: 11rem; height: 11rem; left: 12%; top: 16%; border: 2rem solid rgba(175, 14, 140, .48); }
.mural-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 3, 18, .8), rgba(7, 3, 18, .03) 64%); }
.mural-top { position: absolute; top: clamp(1.5rem, 3.2vh, 2.4rem); left: clamp(1.5rem, 3vw, 3rem); right: clamp(1.5rem, 3vw, 3rem); display: flex; justify-content: space-between; align-items: center; }
.mural-badge { padding: .5rem .72rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(8, 3, 20, .28); backdrop-filter: blur(12px); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.mural-count { color: rgba(255, 255, 255, .72); font-size: .76rem; }
.mural-content { position: absolute; left: clamp(2rem, 5vw, 4rem); right: clamp(2rem, 5vw, 4rem); bottom: clamp(2rem, 5vh, 4rem); max-width: 37rem; padding: clamp(1.45rem, 2.6vw, 2.4rem); border: 1px solid rgba(255, 255, 255, .16); border-radius: 1.5rem; background: rgba(11, 5, 27, .58); backdrop-filter: blur(18px); }
.mural-content h2 { margin: 0; font-size: clamp(2rem, 3.35vw, 3.5rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.mural-content p { max-width: 31rem; margin: .85rem 0 0; color: rgba(255, 255, 255, .8); line-height: 1.5; }
.mural-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(1rem, 2.2vh, 1.7rem); }
.mural-buttons, .mural-dots { display: flex; gap: .5rem; }
.mural-buttons button { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; }
.mural-dot { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .3); cursor: pointer; }
.mural-dot[aria-current="true"] { width: 1.5rem; border-radius: 999px; background: #fff; }

/* Escolha de módulos */
.selector-page { width: 100vw; height: 100dvh; overflow: hidden; padding: clamp(1.25rem, 3.2vh, 2.5rem) clamp(1.5rem, 4vw, 4.5rem); background: radial-gradient(circle at 96% 4%, rgba(175, 14, 140, .1), transparent 24rem), radial-gradient(circle at 4% 96%, rgba(1, 49, 92, .1), transparent 28rem), var(--page); }
.selector-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 0; width: min(1220px, 100%); height: 100%; margin: 0 auto; }
.selector-header, .selector-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.selector-intro { margin: clamp(1.4rem, 3.6vh, 3rem) 0 clamp(1.1rem, 2.6vh, 2rem); }
.selector-intro h1 { max-width: 800px; margin: .45rem 0 0; font-size: clamp(2.35rem, 5.2vw, 4.8rem); line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.selector-intro p { margin: .8rem 0 0; color: var(--muted); font-size: 1rem; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.5vw, 1.25rem); min-height: 0; }
.access-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: clamp(1.25rem, 2.2vw, 2rem); overflow: hidden; text-decoration: none; border: 1px solid var(--border); border-radius: 1.35rem; background: var(--surface); box-shadow: 0 10px 32px rgba(34, 18, 71, .08); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.access-card::after { content: ""; position: absolute; right: -5rem; bottom: -6rem; width: 16rem; height: 16rem; border-radius: 50%; opacity: .12; background: var(--card-accent); pointer-events: none; }
.access-card:hover { transform: translateY(-4px); border-color: var(--card-accent); box-shadow: var(--shadow); }
.access-card--cs { --card-accent: #af0e8c; }
.access-card--social { --card-accent: #6e0f75; }
.access-card--client { --card-accent: #01315c; }
.access-card__number { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
.access-card__icon { display: grid; place-items: center; width: clamp(3rem, 4.5vw, 4rem); height: clamp(3rem, 4.5vw, 4rem); margin: clamp(.8rem, 2.4vh, 1.7rem) 0 clamp(.75rem, 1.7vh, 1.2rem); border-radius: 1rem; color: #fff; background: var(--card-accent); font-weight: 800; }
.access-card h2 { position: relative; z-index: 1; min-height: 2.35em; margin: 0; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.14; letter-spacing: -.03em; text-wrap: balance; }
.access-card p { position: relative; z-index: 1; min-height: 3em; margin: .65rem 0 0; color: var(--muted); font-size: clamp(.82rem, 1.1vw, .95rem); line-height: 1.5; }
.access-card__link { position: relative; z-index: 1; margin-top: auto; padding-top: .85rem; color: var(--magenta); font-size: .88rem; font-weight: 800; }
.selector-footer { padding-top: clamp(.8rem, 2.1vh, 1.6rem); color: var(--muted); font-size: .76rem; }

/* Destino provisório ao entrar como master */
.module-shell { display: grid; place-items: center; width: 100vw; height: 100dvh; padding: 2rem; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(175, 14, 140, .15), transparent 28rem), var(--page); }
.module-card { width: min(680px, 100%); padding: clamp(2rem, 5vw, 4rem); border: 1px solid var(--border); border-radius: 1.5rem; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.module-card .brand { justify-content: center; }
.module-card h1 { margin: 2rem 0 .75rem; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.module-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.module-card a { display: inline-flex; margin-top: 2rem; padding: .9rem 1.25rem; border-radius: .8rem; color: #fff; background: var(--gradient); text-decoration: none; font-weight: 800; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .mural-panel { display: none; }
  .login-panel { width: min(100%, 660px); margin: 0 auto; }
  .access-card h2 { font-size: 1.2rem; }
}
@media (max-width: 760px) {
  .selector-page { overflow-y: auto; scrollbar-width: none; padding: 1.1rem; }
  .selector-page::-webkit-scrollbar { display: none; }
  .selector-shell { height: auto; min-height: 100%; }
  .selector-header { align-items: flex-start; }
  .selector-header .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .selector-intro { margin: 2.8rem 0 1.3rem; }
  .access-grid { grid-template-columns: 1fr; }
  .access-card { min-height: 250px; }
  .access-card h2, .access-card p { min-height: 0; }
  .selector-footer { margin-top: 1rem; }
}
@media (max-width: 520px) {
  .login-panel { padding: 1.1rem; }
  .login-header { align-items: flex-start; }
  .login-header .logo { width: 135px; }
  .login-header .top-actions { flex-direction: column-reverse; align-items: flex-end; }
  .login-copy h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .form-options { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .selector-header .logo { width: 130px; }
  .selector-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-height: 680px) and (min-width: 981px) {
  .login-panel { padding-top: 1rem; padding-bottom: 1rem; }
  .login-main { padding: .65rem 0; }
  .login-copy { margin-bottom: .8rem; }
  .login-copy h1 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
  .login-copy p { margin-top: .45rem; font-size: .88rem; }
  .login-form { gap: .55rem; }
  .mural-content { bottom: 1.5rem; padding: 1.4rem; }
  .mural-content h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
  .selector-intro { margin: 1rem 0 .8rem; }
  .selector-intro h1 { font-size: clamp(2.1rem, 4.5vw, 3.7rem); }
  .access-card { padding: 1.15rem; }
  .access-card__icon { margin: .6rem 0; width: 3rem; height: 3rem; }
  .selector-footer { padding-top: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
