
/* NÚCLEO — Universo do Conhecimento */
:root { --primary-50:#eef9ff; --primary-100:#d6f0ff; --primary-200:#abe1ff; --primary-300:#74cbff; --primary-400:#28b4fa; --primary-500:#079fec; --primary-600:#078fe3; --primary-700:#087ac7; --primary-800:#0c609d; --primary-900:#144f7e; }
:root, html[data-theme="light"] { --nucleo-ink:#12263f; --nucleo-muted:#64748b; --nucleo-surface:#fff; --nucleo-soft:#f5faff; --nucleo-border:#e2edf5; }
html[data-theme="dark"] { --nucleo-ink:#e7f2fe; --nucleo-muted:#9eb2c8; --nucleo-surface:#19283c; --nucleo-soft:#142238; --nucleo-border:#35465b; }
body { font-family:Inter,system-ui,-apple-system,'Segoe UI',Arial,sans-serif; }
.nucleo-logo { display:flex; align-items:center; gap:10px; text-decoration:none; padding:4px 0; }
.nucleo-logo img { width:48px !important; height:48px !important; object-fit:contain; flex:none; }
.nucleo-logo .wordmark { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-width:0; }
.nucleo-logo .wordmark strong { font-size:20px; letter-spacing:.085em; line-height:1.1; color:var(--nucleo-ink); font-weight:800; }
.nucleo-logo .wordmark small { font-size:9px; letter-spacing:.045em; color:var(--nucleo-muted); white-space:nowrap; margin-top:4px; }
.sidebar.active:not(:hover) .nucleo-logo .wordmark { display:none; }
.sidebar .nucleo-logo { padding:12px 10px 12px 0; }
.sidebar-menu a { border-radius:10px; }
.sidebar-menu a.active-page, .sidebar-menu li.active-page > a { background:rgba(0,150,235,.10) !important; color:#078fe3 !important; font-weight:700; }
.nucleo-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; width:100%; }
.nucleo-eyebrow { font-size:12px; color:#0a96e8; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.nucleo-header-title { font-size:27px; font-weight:750; color:var(--nucleo-ink); margin:4px 0 5px; }
.nucleo-muted { color:var(--nucleo-muted); }
.nucleo-tag { border:1px solid var(--nucleo-border); background:var(--nucleo-soft); border-radius:99px; padding:6px 12px; font-size:12px; color:var(--nucleo-muted); display:inline-flex; align-items:center; gap:6px; }
.nucleo-demo-notice { border:1px solid #b8e1f7; border-left:4px solid #0a96e8; background:var(--nucleo-soft); padding:13px 16px; border-radius:10px; display:flex; align-items:center; gap:12px; font-size:13px; color:var(--nucleo-ink); }
.nucleo-demo-notice strong { color:var(--nucleo-ink); }
.nucleo-demo-notice > i { color:#0a96e8; font-size:24px; }
.nucleo-metric { background:var(--nucleo-surface); border:1px solid var(--nucleo-border); border-radius:16px; padding:22px; min-height:152px; transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.nucleo-metric .metric-label { color:var(--nucleo-muted); font-size:14px; }
.nucleo-metric .metric-value { font-size:36px; font-weight:800; letter-spacing:-.025em; color:var(--nucleo-ink); }
.nucleo-ico { background:#e8f7ff; color:#008de0; width:44px; height:44px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.nucleo-ico.green { background:#edffbd; color:#58731b; }
.nucleo-panel { background:var(--nucleo-surface); border:1px solid var(--nucleo-border); border-radius:16px; padding:22px; height:100%; transition:border-color .22s ease, box-shadow .22s ease; }
.nucleo-metric:hover, .nucleo-panel:hover { border-color:#74cbff; box-shadow:0 12px 30px rgba(7,143,227,.10); }
.nucleo-metric:hover { transform:translateY(-2px); }
.nucleo-panel h5 { color:var(--nucleo-ink); font-size:16px; font-weight:750; }
.nucleo-table th { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--nucleo-muted); }
.nucleo-table td { vertical-align:middle; }
.nucleo-stage { display:inline-flex; align-items:center; gap:6px; background:#edffba; color:#4c741d; padding:5px 10px; border-radius:99px; font-size:12px; font-weight:700; }
.nucleo-empty { min-height:230px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px; text-align:center; color:var(--nucleo-muted); }
.nucleo-empty .ri { font-size:32px; }
.nucleo-btn { background:#049be8; color:white; border:0; border-radius:10px; padding:10px 16px; font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:7px; }
.nucleo-btn:hover { background:#0478bd; color:white; }
.nucleo-btn-outline { background:transparent; color:#078fdd; border:1px solid #8bd5ff; border-radius:10px; padding:10px 16px; font-weight:700; text-decoration:none; }
.nucleo-btn-outline:hover { background:var(--nucleo-soft); }
.nucleo-formlabel { color:var(--nucleo-ink); font-weight:600; margin-bottom:7px; display:block; font-size:13px; }
.nucleo-login-logo { max-width:340px; height:auto; }
.nucleo-login-bg { background:linear-gradient(155deg,#102c51 0%,#074d84 55%,#019be7 100%); position:relative; overflow:hidden; }
.nucleo-login-bg:after {content:""; position:absolute; width:310px; height:310px; right:-160px; top:-160px; background:rgba(204,255,76,.3); border-radius:50%; }
.nucleo-login-card { max-width:450px; width:100%; }
.nucleo-signin-logo { max-width:300px; display:block; }
.nucleo-footer { color:var(--nucleo-muted); font-size:12px; }

.nucleo-account-dropdown { position:relative; }
.nucleo-user-button { display:flex; align-items:center; gap:10px; min-height:44px; padding:4px 8px 4px 4px; border:1px solid transparent; border-radius:14px; background:transparent; color:var(--nucleo-ink); transition:background .2s ease,border-color .2s ease; }
.nucleo-user-button:hover, .nucleo-user-button[aria-expanded="true"] { background:var(--nucleo-soft); border-color:#a9dcf8; }
.nucleo-user-button:focus-visible { outline:3px solid rgba(21,203,237,.24); outline-offset:2px; }
.nucleo-user-avatar { position:relative; display:grid; width:38px; height:38px; place-items:center; overflow:hidden; flex:none; border:1px solid #9ddcff; border-radius:12px; background:linear-gradient(145deg,#e7f7ff,#d7ff8b); color:#086ca9; font-size:13px; font-weight:800; }
.nucleo-user-avatar img { width:100%; height:100%; object-fit:cover; }
.nucleo-user-copy { display:flex; max-width:170px; flex-direction:column; align-items:flex-start; line-height:1.2; }
.nucleo-user-copy strong, .nucleo-user-copy small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nucleo-user-copy strong { color:var(--nucleo-ink); font-size:13px; }
.nucleo-user-copy small { margin-top:3px; color:var(--nucleo-muted); font-size:11px; }
.nucleo-account-menu { width:min(330px,calc(100vw - 28px)); margin-top:10px !important; padding:0; overflow:hidden; border:1px solid var(--nucleo-border); border-radius:16px; background:var(--nucleo-surface); box-shadow:0 20px 50px rgba(14,48,76,.18); }
.nucleo-account-head { display:flex; align-items:center; gap:12px; padding:18px; background:var(--nucleo-soft); }
.nucleo-account-head .nucleo-user-avatar { width:46px; height:46px; border-radius:14px; }
.nucleo-account-details { padding:10px 18px; }
.nucleo-account-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--nucleo-border); color:var(--nucleo-muted); font-size:12px; }
.nucleo-account-row:last-child { border-bottom:0; }
.nucleo-account-row strong { color:var(--nucleo-ink); font-size:12px; font-weight:700; text-align:right; }
.nucleo-account-actions { padding:12px; border-top:1px solid var(--nucleo-border); }
.nucleo-account-action { display:flex; width:100%; align-items:center; justify-content:center; gap:8px; padding:10px 12px; border:0; border-radius:10px; background:transparent; color:#c33d48; font-size:13px; font-weight:700; }
.nucleo-account-action:hover { background:rgba(195,61,72,.08); }
html[data-theme="dark"] .nucleo-account-menu { box-shadow:0 20px 50px rgba(0,0,0,.32); }
@media (max-width:650px){.nucleo-user-copy,.nucleo-user-chevron{display:none}.nucleo-user-button{padding:3px}.nucleo-account-menu{position:fixed !important;top:65px !important;right:14px !important;left:auto !important;transform:none !important}}
@media (max-width:650px){.nucleo-header-title{font-size:23px}.nucleo-metric .metric-value{font-size:29px}.nucleo-logo .wordmark strong{font-size:16px}}

/* Login NÚCLEO */
.nucleo-auth-page {
  --auth-bg: #f4f9fd;
  --auth-card: #ffffff;
  --auth-text: #12263f;
  --auth-muted: #60758a;
  --auth-border: #dce9f2;
  --auth-input: #f8fbfd;
  --auth-blue: #078fe3;
  --auth-blue-deep: #075d9a;
  --auth-cyan: #15cbed;
  --auth-green: #b7ed31;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-text);
}

html[data-theme="dark"] .nucleo-auth-page {
  --auth-bg: #08131f;
  --auth-card: #102236;
  --auth-text: #edf7ff;
  --auth-muted: #a8bbcc;
  --auth-border: #29435a;
  --auth-input: #0b1b2b;
  --auth-blue: #17aeef;
  --auth-blue-deep: #39bfff;
}

.nucleo-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, .95fr);
  background: var(--auth-bg);
}

.nucleo-auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(21, 203, 237, .23), transparent 29%),
    linear-gradient(145deg, #071b39 0%, #063d6c 46%, #007fc3 100%);
}

.nucleo-auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.nucleo-auth-brand::after {
  content: "";
  position: absolute;
  inset: auto -18% -31% 7%;
  height: 54%;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(100deg, rgba(8, 151, 227, .24), rgba(183, 237, 49, .18));
  filter: blur(4px);
  transform: rotate(-8deg);
}

.nucleo-auth-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.nucleo-auth-orb-one {
  width: 230px;
  height: 230px;
  top: -88px;
  right: -55px;
  border: 42px solid rgba(183, 237, 49, .22);
}

.nucleo-auth-orb-two {
  width: 120px;
  height: 120px;
  left: -38px;
  bottom: 18%;
  background: rgba(21, 203, 237, .13);
  box-shadow: 0 0 80px rgba(21, 203, 237, .35);
}

.nucleo-auth-brand-content {
  width: min(100%, 690px);
  min-height: 100%;
  margin: auto;
  padding: clamp(38px, 5vw, 72px) clamp(36px, 6vw, 86px) clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nucleo-auth-logo {
  display: block;
  width: min(100%, 390px);
  height: auto;
  object-fit: contain;
}

.nucleo-auth-mascot {
  display: block;
  width: clamp(210px, 24vw, 350px);
  height: auto;
  margin: clamp(24px, 4vh, 44px) auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(0, 12, 40, .28));
  animation: nucleo-float 5.5s ease-in-out infinite;
  transition: filter .3s ease, transform .3s ease;
}

.nucleo-auth-mascot:hover {
  animation: nucleo-nuki-glow 1.35s ease-in-out infinite;
}

.nucleo-auth-message {
  width: min(100%, 560px);
  margin-top: auto;
}

.nucleo-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #d9ff76;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nucleo-auth-message h1 {
  max-width: 570px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.nucleo-auth-message p {
  max-width: 510px;
  margin: 18px 0 0;
  color: #cfeaf8;
  font-size: 1rem;
  line-height: 1.7;
}

.nucleo-auth-access {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 72px clamp(28px, 6vw, 86px) 38px;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 82% 12%, rgba(21, 203, 237, .12), transparent 24%),
    var(--auth-bg);
}

.nucleo-theme-toggle {
  position: absolute;
  top: 24px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 999px;
  background: var(--auth-card);
  color: var(--auth-muted);
  font-size: .8125rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(16, 56, 86, .07);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.nucleo-theme-toggle:hover {
  color: var(--auth-blue);
  border-color: var(--auth-blue);
  transform: translateY(-1px);
}

.nucleo-theme-toggle:focus-visible,
.nucleo-password-toggle:focus-visible,
.nucleo-auth-submit:focus-visible,
.nucleo-input-wrap:focus-within {
  outline: 3px solid rgba(21, 203, 237, .24);
  outline-offset: 2px;
}

.nucleo-auth-card {
  width: min(100%, 470px);
  margin: auto;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--auth-card) 96%, transparent);
  box-shadow: 0 30px 80px rgba(19, 58, 89, .12);
}

html[data-theme="dark"] .nucleo-auth-card {
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.nucleo-auth-mobile-brand { display: none; }

.nucleo-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--auth-blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nucleo-auth-card h2 {
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.nucleo-auth-intro {
  margin: 13px 0 30px;
  color: var(--auth-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.nucleo-google-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-card);
  color: var(--auth-text);
  font-size: .95rem;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(19, 58, 89, .07);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nucleo-google-button > i {
  color: #4285f4;
  font-size: 1.25rem;
}

.nucleo-google-button:hover:not(:disabled) {
  border-color: var(--auth-blue);
  transform: translateY(-1px);
  box-shadow: 0 11px 28px rgba(19, 58, 89, .11);
}

.nucleo-google-button:focus-visible {
  outline: 3px solid rgba(21, 203, 237, .24);
  outline-offset: 2px;
}

.nucleo-google-button:disabled { cursor: wait; opacity: .75; }
.nucleo-google-button.is-loading > i { display: none; }
.nucleo-google-button.is-loading .nucleo-spinner { display: inline-block; border-color: rgba(7, 143, 227, .25); border-top-color: var(--auth-blue); }

.nucleo-auth-divider {
  display: flex;
  margin: 23px 0;
  align-items: center;
  gap: 12px;
  color: var(--auth-muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.nucleo-auth-divider::before,
.nucleo-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--auth-border);
}

.nucleo-auth-form { display: grid; gap: 20px; }

.nucleo-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text);
  font-size: .9rem;
  font-weight: 700;
}

.nucleo-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: var(--auth-input);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nucleo-input-wrap:focus-within {
  border-color: var(--auth-blue);
  background: var(--auth-card);
}

.nucleo-input-wrap.is-invalid { border-color: #df5252; }

.nucleo-input-wrap > i {
  margin-left: 16px;
  color: var(--auth-blue);
  font-size: 1.2rem;
}

.nucleo-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 48px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--auth-text);
  font-size: 1rem;
}

.nucleo-input-wrap input::placeholder { color: color-mix(in srgb, var(--auth-muted) 75%, transparent); }

.nucleo-password-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--auth-muted);
  font-size: 1.1rem;
}

.nucleo-password-toggle:hover { color: var(--auth-blue); background: rgba(7, 143, 227, .08); }

.nucleo-field-error {
  display: block;
  min-height: 18px;
  margin: 5px 2px -3px;
  color: #c83d48;
  font-size: .75rem;
  line-height: 1.4;
}

.nucleo-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -3px;
  color: var(--auth-muted);
  font-size: .875rem;
  line-height: 1.45;
  cursor: pointer;
}

.nucleo-remember input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--auth-blue);
}

.nucleo-auth-submit {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--auth-blue-deep), var(--auth-blue) 68%, #08b7df);
  color: #fff;
  font-size: .975rem;
  font-weight: 800;
  box-shadow: 0 13px 28px rgba(7, 143, 227, .24);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.nucleo-auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 17px 34px rgba(7, 143, 227, .3);
}

.nucleo-auth-submit:disabled { cursor: wait; opacity: .82; }
.nucleo-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: nucleo-spin .7s linear infinite; }
.nucleo-auth-submit.is-loading .ri-arrow-right-line { display: none; }
.nucleo-auth-submit.is-loading .nucleo-spinner { display: inline-block; }

.nucleo-auth-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: .875rem;
  line-height: 1.5;
}

.nucleo-auth-feedback[hidden] { display: none; }
.nucleo-auth-feedback i { margin-top: 1px; font-size: 1.1rem; }
.nucleo-auth-feedback.is-error { border-color: rgba(207, 62, 72, .28); background: rgba(207, 62, 72, .08); color: #bf3340; }
.nucleo-auth-feedback.is-success { border-color: rgba(80, 137, 34, .3); background: rgba(183, 237, 49, .12); color: #426d20; }
html[data-theme="dark"] .nucleo-auth-feedback.is-error { color: #ff9aa3; }
html[data-theme="dark"] .nucleo-auth-feedback.is-success { color: #c9f176; }

.nucleo-auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--auth-border);
  color: var(--auth-muted);
  font-size: .8rem;
}

.nucleo-auth-security i { color: #6f9b1d; font-size: 1.05rem; }

.nucleo-auth-footer {
  margin: 30px auto 0;
  color: var(--auth-muted);
  font-size: .75rem;
  text-align: center;
}
.nucleo-auth-footer a { color: inherit; text-underline-offset: 3px; }
.nucleo-auth-footer a:hover { color: #bceaf8; }

@keyframes nucleo-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(0, -12px, 0) rotate(1deg); }
}

@keyframes nucleo-spin { to { transform: rotate(360deg); } }

@keyframes nucleo-nuki-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 18px 24px rgba(0, 12, 40, .25)) drop-shadow(0 0 8px rgba(116, 203, 255, .45));
  }
  50% {
    transform: scale(1.035);
    filter: drop-shadow(0 22px 28px rgba(0, 12, 40, .22)) drop-shadow(0 0 18px rgba(116, 203, 255, .9)) drop-shadow(0 0 42px rgba(21, 203, 237, .55));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nucleo-auth-mascot,
  .nucleo-spinner { animation: none; }
  .nucleo-theme-toggle,
  .nucleo-auth-submit { transition: none; }
}

@media (max-width: 1050px) {
  .nucleo-auth-shell { grid-template-columns: minmax(370px, .88fr) minmax(450px, 1.12fr); }
  .nucleo-auth-brand-content { padding-inline: 42px; }
  .nucleo-auth-mascot { width: min(76%, 300px); }
}

@media (max-width: 820px) {
  .nucleo-auth-shell { display: block; }
  .nucleo-auth-brand { display: none; }
  .nucleo-auth-access { min-height: 100vh; padding: 82px 20px 28px; }
  .nucleo-theme-toggle { top: 20px; right: 20px; }
  .nucleo-auth-card { padding: 30px; border-radius: 24px; }
  .nucleo-auth-mobile-brand { display: flex; min-height: 168px; margin-bottom: 26px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
  .nucleo-auth-mobile-brand > .logo-light,
  .nucleo-auth-mobile-brand > .logo-dark { width: min(63%, 270px); height: auto; }
  .nucleo-auth-mobile-brand > .logo-dark { display: none; }
  html[data-theme="dark"] .nucleo-auth-mobile-brand > .logo-light { display: none; }
  html[data-theme="dark"] .nucleo-auth-mobile-brand > .logo-dark { display: block; }
  .nucleo-auth-mobile-mascot { width: 92px; height: auto; flex: none; filter: drop-shadow(0 12px 12px rgba(2, 39, 70, .2)); }
}

@media (max-width: 520px) {
  .nucleo-auth-access { padding: 74px 14px 22px; justify-content: flex-start; }
  .nucleo-theme-toggle span { display: none; }
  .nucleo-theme-toggle { width: 42px; padding: 0; justify-content: center; }
  .nucleo-auth-card { margin-top: 0; padding: 25px 20px; border-radius: 20px; }
  .nucleo-auth-mobile-brand { min-height: 145px; margin-bottom: 22px; }
  .nucleo-auth-mobile-brand > .logo-light,
  .nucleo-auth-mobile-brand > .logo-dark { width: min(68%, 235px); }
  .nucleo-auth-mobile-mascot { width: 72px; }
  .nucleo-auth-intro { margin-bottom: 25px; }
  .nucleo-auth-security { align-items: flex-start; justify-content: flex-start; }
}

/* Controles e tabelas dos cadastros no modo escuro */
html[data-theme="dark"] .nucleo-panel .form-control,
html[data-theme="dark"] .nucleo-panel .form-select,
html[data-theme="dark"] .nucleo-panel textarea {
  border-color: #35546b !important;
  background-color: #0d2136 !important;
  color: #e7f2fe !important;
  -webkit-text-fill-color: #e7f2fe;
  caret-color: #74cbff;
  color-scheme: dark;
}

html[data-theme="dark"] .nucleo-panel .form-control::placeholder,
html[data-theme="dark"] .nucleo-panel textarea::placeholder {
  color: #91abc1 !important;
  opacity: 1;
}

html[data-theme="dark"] .nucleo-panel .form-control:focus,
html[data-theme="dark"] .nucleo-panel .form-select:focus,
html[data-theme="dark"] .nucleo-panel textarea:focus {
  border-color: #28b4fa !important;
  background-color: #102a43 !important;
  box-shadow: 0 0 0 3px rgba(40, 180, 250, .15);
}

html[data-theme="dark"] .nucleo-panel .form-control:disabled,
html[data-theme="dark"] .nucleo-panel .form-select:disabled,
html[data-theme="dark"] .nucleo-panel textarea:disabled,
html[data-theme="dark"] .nucleo-panel .form-control[readonly] {
  border-color: #38566e !important;
  background-color: #10283f !important;
  color: #bdd1e2 !important;
  -webkit-text-fill-color: #bdd1e2;
  opacity: 1;
}

html[data-theme="dark"] .nucleo-panel .form-select option {
  background-color: #10283f;
  color: #e7f2fe;
}

html[data-theme="dark"] .nucleo-table {
  --bs-table-bg: #13283d;
  --bs-table-color: #dceaf5;
  --bs-table-border-color: #30485d;
  --bs-table-striped-bg: #162d43;
  --bs-table-striped-color: #e7f2fe;
  --bs-table-hover-bg: #193650;
  --bs-table-hover-color: #ffffff;
  margin-bottom: 0;
  color: #dceaf5;
  border-color: #30485d;
}

html[data-theme="dark"] .nucleo-table > :not(caption) > * > * {
  border-color: #30485d !important;
  background-color: var(--bs-table-bg) !important;
  color: inherit !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, transparent);
}

html[data-theme="dark"] .nucleo-table thead > tr > th {
  --bs-table-bg: #0d2136;
  background-color: #0d2136 !important;
  color: #9fc7df !important;
}

html[data-theme="dark"] .nucleo-table tbody > tr:nth-child(even) > * {
  --bs-table-bg: #162d43;
  background-color: #162d43 !important;
}

html[data-theme="dark"] .nucleo-table tbody > tr:hover > * {
  --bs-table-bg: #193650;
  background-color: #193650 !important;
  color: #ffffff !important;
}
