/* Rede Confiança: acabamentos sobre a skin "redeconfianca" (que já traz cores e fonte) */

/* ---------- Tela de login ---------- */
body.task-login {
  background: radial-gradient(circle at 85% 110%, rgba(255, 122, 0, .35) 0, transparent 45%),
              radial-gradient(circle at 10% -10%, rgba(214, 33, 133, .35) 0, transparent 45%),
              linear-gradient(160deg, #1a1a2e 0%, #24183c 60%, #571381 130%);
  background-attachment: fixed;
}
body.task-login #layout,
body.task-login #layout-content { background: transparent; }
body.task-login #logo {
  max-width: 280px;
  max-height: none;
  margin: 0 auto 1.75rem;
}
body.task-login #login-form {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2rem 1.25rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .40);
  max-width: 24rem;
  margin: 0 auto;
}
body.task-login #login-form .form-control { border-radius: 10px; height: auto; padding: .7rem .9rem; }
body.task-login #login-form .input-group-text { border-radius: 10px 0 0 10px; }
body.task-login #login-form .input-group > .form-control { border-radius: 0 10px 10px 0; }
body.task-login #rcmloginsubmit {
  background: linear-gradient(90deg, #d62185 0%, #ff7a00 100%);
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .75rem;
}
body.task-login #rcmloginsubmit:hover { filter: brightness(1.06); }
body.task-login #login-footer,
body.task-login #login-footer a { color: rgba(255, 255, 255, .6); }
body.task-login #layout-content::after {
  content: "Rede Confiança · Parceira oficial Vivo";
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  letter-spacing: .06em;
}
html.dark-mode body.task-login #login-form { background: #232340; }

/* ---------- Cabeçalhos das colunas ---------- */
#layout-sidebar > .header,
#layout-list > .header,
#layout-content > .header {
  background-image: linear-gradient(90deg, rgba(214, 33, 133, .55), rgba(255, 122, 0, .55));
  background-size: 100% 2px;
  background-position: bottom;
  background-repeat: no-repeat;
}
#layout-sidebar > .header .header-title,
#layout-list > .header .header-title { color: #1a1a2e; font-weight: 600; }
html.dark-mode #layout-sidebar > .header .header-title,
html.dark-mode #layout-list > .header .header-title { color: #fff; }

/* ---------- Pastas e lista de mensagens ---------- */
#folderlist-content li.selected > a,
#folderlist-content li.selected > a:before { color: #e66e00; font-weight: 600; }
#folderlist-content li.unread > a { color: #1a1a2e; font-weight: 600; }
html.dark-mode #folderlist-content li.unread > a { color: #fff; }
.unreadcount { border-radius: 999px; font-weight: 600; }
.records-table tr.unread td.subject span.subject a,
.records-table tr.unread .subject a { color: #1a1a2e; font-weight: 700; }
html.dark-mode .records-table tr.unread .subject a { color: #fff; }
.messagelist td.subject span.msgicon.status.unread:before,
.messagelist td span.msgicon.status.unread:before { color: #d62185; }
.messagelist td.subject span.msgicon.status.replied:before,
.messagelist td.subject span.msgicon.status.forwarded:before { color: #ff7a00; }

/* ---------- Botões e diálogos ---------- */
.btn, .form-control, .custom-select, .popover, .ui-dialog { border-radius: 8px; }
.btn-primary { font-weight: 600; }
.ui-dialog .ui-dialog-titlebar { border-bottom: 2px solid #ff7a00; }
.popover-header { color: #1a1a2e; font-weight: 600; }
