/* ToConectado Suporte branding - 2026-07-09 */
:root {
  --tc-blue: #244a8f;
  --tc-blue-dark: #1d3b73;
  --tc-red: #e31b23;
  --tc-yellow: #f8b80e;
  --tc-ink: #1d1d1b;
  --tc-muted: #626774;
  --tc-bg: #f6f7fb;
  --tc-card: #ffffff;
  --tc-border: #e3e6ef;
  --primary: #244a8f;
  --secondary: #e31b23;
  --tertiary: #f8b80e;
  --surface: #ffffff;
  --foreground: #1d1d1b;
  --main-background: #f6f7fb;
  --font__pri-clr: #1d1d1b;
  --font__sec-clr: #626774;
  --header__bg: #ffffff;
  --header_logo__clr: #244a8f;
  --header_nav__clr: #244a8f;
  --header_nav__hover_clr: #e31b23;
  --icon_circle__bg: #244a8f;
  --navlink_icon_hover__bg: #e31b23;
  --navlink__bg: #ffffff;
  --navlink__title-clr: #244a8f;
  --navlink__clr: #626774;
  --link__pri-clr: #244a8f;
  --link__pri-hover-clr: #e31b23;
  --input-bg: #ffffff;
}

html,
body,
body.cust-help,
.wrapper,
.main {
  background: var(--tc-bg);
  color: var(--tc-ink);
}

.header {
  background: var(--tc-card);
  border-bottom: 1px solid var(--tc-border);
  box-shadow: 0 8px 24px rgba(29, 29, 27, 0.06);
}

.header__inner {
  min-height: 82px;
}

.header__logo {
  display: block;
  width: 340px;
  max-width: 72vw;
  height: 66px;
  overflow: hidden;
  text-indent: -9999px;
  background: url('/img/toconectado-logoretangular.png') no-repeat left center;
  background-size: contain;
}

.breadcrumbs {
  background: var(--tc-card);
  border-bottom: 1px solid var(--tc-border);
}

.breadcrumbs__inner,
.breadcrumbs a,
.breadcrumbs .last {
  color: var(--tc-muted);
}

.main__content {
  padding-top: 28px;
}

.help-search {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px !important;
  padding: 42px 28px;
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8e5 64%, #fff0f1 100%);
  box-shadow: 0 18px 42px rgba(29, 29, 27, 0.08);
}

.help-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--tc-red), var(--tc-yellow), var(--tc-blue));
}

.search__title {
  margin: 0;
  color: var(--tc-ink);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.search__title::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--tc-red), var(--tc-yellow), var(--tc-blue));
}

.nav {
  gap: 18px;
}

.navlink {
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  background: var(--tc-card);
  box-shadow: 0 10px 24px rgba(29, 29, 27, 0.06);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.navlink:hover,
.navlink:focus-visible {
  border-color: var(--tc-yellow);
  box-shadow: 0 16px 32px rgba(29, 29, 27, 0.10);
  transform: translateY(-1px);
}

.navlink__title {
  color: var(--tc-blue);
  font-weight: 700;
}

.navlink__descr {
  color: var(--tc-muted);
}

.btn,
button.btn,
.form__submit .btn,
input[type='submit'].btn {
  border-color: var(--tc-blue);
  background: var(--tc-blue);
  color: #ffffff;
  border-radius: 8px;
  letter-spacing: 0;
}

.btn:hover,
button.btn:hover,
.form__submit .btn:hover,
input[type='submit'].btn:hover,
.btn:focus-visible {
  border-color: var(--tc-red);
  background: var(--tc-red);
  color: #ffffff;
}

.link,
a {
  color: var(--tc-blue);
}

.link:hover,
a:hover {
  color: var(--tc-red);
}

.footer {
  background: var(--tc-card);
  border-top: 1px solid var(--tc-border);
  color: var(--tc-muted);
}

.reg__wrap,
.wrapper.login {
  background: var(--tc-bg);
}

.reg__image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fff4d5 56%, #eef3ff 100%);
}

.reg__image .bg-absolute img {
  display: none;
}

.reg__image::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72%;
  height: 170px;
  transform: translate(-50%, -50%);
  background: url('/img/toconectado-logoretangular.png') no-repeat center;
  background-size: contain;
}

.reg__image::after {
  content: "Acesso da equipe de suporte";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 15%;
  color: var(--tc-muted);
  font-weight: 600;
  text-align: center;
}

.reg__box {
  border: 1px solid var(--tc-border);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 29, 27, 0.08);
}

.reg__heading {
  color: var(--tc-ink);
  letter-spacing: 0;
}

.form-control:focus {
  border-color: var(--tc-blue);
  box-shadow: 0 0 0 3px rgba(36, 74, 143, 0.14);
}

@media (max-width: 768px) {
  .header__inner {
    min-height: 72px;
  }

  .header__logo {
    width: 260px;
    height: 58px;
  }

  .help-search {
    padding: 32px 20px;
  }

  .search__title {
    font-size: 24px;
  }
}

/* QA adjustments - keep public pages within mobile viewport and show logo on staff login. */
.contr {
  width: min(1040px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  box-sizing: border-box;
}

.help-search,
.nav,
.navlink {
  box-sizing: border-box;
}

.search__title {
  max-width: 100%;
  overflow-wrap: break-word;
}

.reg__image .bg-absolute {
  display: none;
}

.reg__image::before,
.reg__image::after {
  z-index: 1;
}

@media (max-width: 768px) {
  .contr {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .nav {
    flex-direction: column;
  }

  .navlink {
    width: 100%;
  }

  .search__title {
    font-size: 21px;
    line-height: 1.28;
  }
}

/* QA adjustment - force mobile hero title wrapping inside viewport. */
.search__title {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 768px) {
  .search__title {
    font-size: 19px;
    line-height: 1.32;
  }
}

/* QA adjustment - override HESK fixed containers on narrow screens. */
@media (max-width: 768px) {
  .header .contr,
  .breadcrumbs .contr,
  .main__content .contr,
  .article__footer,
  .help-search,
  .nav,
  .navlink {
    min-width: 0 !important;
    max-width: calc(100vw - 12px) !important;
    box-sizing: border-box !important;
  }

  .header .contr,
  .breadcrumbs .contr,
  .main__content .contr {
    width: calc(100vw - 12px) !important;
  }

  .help-search {
    width: 100% !important;
  }

  .help-search .search__title {
    width: 100% !important;
    max-width: 320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* QA adjustment - prevent HESK nav cards from creating horizontal scroll on mobile. */
@media (max-width: 768px) {
  html,
  body,
  body.cust-help,
  .wrapper,
  .main,
  .main__content {
    overflow-x: hidden !important;
  }

  .nav {
    align-items: center !important;
    width: 100% !important;
    gap: 14px !important;
  }

  .navlink {
    display: flex !important;
    width: calc(100vw - 44px) !important;
    max-width: calc(100vw - 44px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .navlink__title,
  .navlink__descr,
  .navlink div {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}
