* {
  box-sizing: border-box;
  font-family: "Satoshi", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: transparent;
  margin: 0;
}

.callout--hide {
  display: none !important;
}

[data-callout-icon] {
  height: 40px;
  width: 40px;
}

.callout--green [data-callout-icon] {
  background: url("../img/success.svg") no-repeat center center;
}

.callout--orange [data-callout-icon] {
  background: url("../img/warning.svg") no-repeat center center;
}

.callout--red [data-callout-icon] {
  background: url("../img/danger.svg") no-repeat center center;
}

fuel-typography strong {
  font-weight: 700 !important;
}

@media screen and (max-width: 480px) {
  fuel-typography strong {
    display: block;
  }
}

#kc-header {
  display: flex;
  position: fixed;
  width: 100%;
}

#kc-header-wrapper {
  align-items: center;
  display: flex;
  height: auto;
  justify-content: center;
  padding: var(--spacing-km10) 0;
  width: 100%;
}

.kc-logo-text {
  background: url("../img/fretebras.svg") no-repeat center center;
  height: 24px;
  width: 131px;
}

.kc-logo-text > span {
  display: block;
  text-indent: -9999px;
}

#kc-content {
  display: flex;
  position: relative;
  height: 100vh;
}

@media screen and (max-width: 480px) {
  #kc-content {
    align-items: flex-start;
  }
}

#kc-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-km12) 0;
  height: 100%;
  justify-content: center;
  padding: 0 var(--padding-km6);
  width: 100%;
}

#kc-social-providers {
  display: inline-flex;
  gap: var(--spacing-km0) var(--spacing-km16);
  height: 100%;
  justify-content: center;
}

#kc-form-wrapper {
  align-items: center;
  display: flex;
  gap: var(--spacing-km16);
  justify-content: center;
  width: 100%;
}

@media screen and (max-width: 768px) {
  #kc-header {
    position: relative;
  }

  #kc-content-wrapper {
    justify-content: flex-start;
  }

  #kc-form-wrapper {
    flex-direction: column;
  }

  .pfc-split-bar {
    display: none;
  }

  #kc-social-providers {
    gap: var(--spacing-km16) var(--spacing-km0);
    width: 100%;
  }

  #kc-form-identity-provider {
    justify-content: center;
    margin-right: 0;
  }
}

#kc-form-login,
#kc-reset-password-form,
#kc-passwd-update-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-km6) 0;
  max-width: 400px;
  width: 100%;
}

@media screen and (max-width: 480px) {
  #kc-form-login,
  #kc-reset-password-form,
  #kc-passwd-update-form {
    max-width: auto;
  }

  #kc-form-identity-provider {
    width: 100%;
  }
}

#kc-form-identity-provider {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  width: 18em;
}

#kc-content {
  display: flex;
  justify-content: center;
}

#kc-form {
  display: flex;
  width: 100%;
}

#kc-form-options {
  display: flex;
  margin-bottom: var(--spacing-km4);
}

#kc-form-buttons {
  padding-top: var(--padding-km3);
}

@-moz-document url-prefix() {
  #kc-social-providers {
    gap: 75px;
  }
}

.pfc-split-bar {
  border-left: 1px solid black;
}

.pfc-social-container {
  all: initial;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 1.5em 0;
  width: auto;
}

a[id^="social-"]:link {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0.5em 0;
  text-decoration: none;
  width: auto;
}

.pfc-social-btn {
  background-color: white;
  border-radius: 12px;
  border: 2px solid black;
  color: black;
  cursor: pointer;
  font-size: 16px;
  height: 100%;
  padding: 1em 7em;
  width: 100%;
}

.kc-social-icon-text {
  margin-left: 0.5em;
}

/* Gray */
.btn-default {
  border-color: #e7e7e7;
  color: black;
}

.btn-default:hover {
  background: #e7e7e7;
}

.not-found {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.not-found__image {
  margin-bottom: 48px;
}

.not-found__description {
  margin: 16px 0 48px;
}

.not-found__button {
  margin-bottom: 48px;
}

.modal {
  align-items: center;
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9;
}
.modal-content {
  align-items: center;
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  height: 50vh;
  justify-content: center;
  margin: 0 auto;
  max-width: 700px;
  padding: 40px;
  width: 50%;
}

fuel-button::part(button), 
fuel-button::part(link) {
  background: #0769da !important;
  border-radius: 500px !important;
  color: #fff !important;
  font-weight: 500 !important;
}

fuel-button::part(button):hover, 
fuel-button::part(link):hover {
  background: #045dc3 !important;
}

fuel-button::part(button):active, 
fuel-button::part(link):active {
  background: #024ca2 !important;
}

fuel-button:focus::part(button),
fuel-button:focus::part(link),
fuel-button:focus-visible::part(button),
fuel-button:focus-visible::part(link) {
  box-shadow: 0 0 0 4px rgba(7, 105, 218, 0.24), 0 2px 8px 0 rgba(7, 105, 218, 0.10);
}

fuel-button::part(button):disabled, 
fuel-button::part(link):disabled {
  background: rgba(0,43,92,0.06) !important;
  color: #111 !important;
  opacity: 0.4 !important;
}

fuel-link::part(link) {
  color: #0769da !important;
  font-weight: 500 !important;
}

fuel-link::part(link):hover {
  color: #045dc3 !important;
}

fuel-link::part(link):active {
  color: #024ca2 !important;
}

fuel-link::part(link)::before {
  background-color: #0769da !important;
}

.checkbox__input.sc-fuel-checkbox:checked + .checkbox__svg.sc-fuel-checkbox {
  background: #0769da !important;
  border-color: #0769da !important;
}

/* ===== Helpers para inputs e botões nativos (quando não usamos <fuel-*> ) ===== */
.form-field { display: grid; gap: 8px; }
.form-field + .form-field { margin-top: 12px; }
.form-field label { font-weight: 700; font-size: 14px; color: #111111; }
.form-field input { width: 100%; height: 44px; padding: 12px 14px; border: 1px solid #dddfe4; border-radius: 10px; background: #ffffff; font-size: 16px; }
.form-field input:focus { outline: none; border-color: #111111; box-shadow: 0 0 0 4px #dddfe4; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; color: #111111; }
.link { color: #0769da; text-decoration: underline; font-size: 14px; }
.btn { appearance: none; border: 1px solid transparent; background: #f3f4f6; color: #111111; padding: 12px 16px; border-radius: 10px; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn.full { width: 100%; }
.btn-primary { background: #0769da; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Override para logotipo no topo via <img> */
#kc-header-wrapper { padding-top: 100px; }
.kc-logo-text { height: 24px; display: grid; place-items: center; background: none !important; width: auto !important; }
.kc-logo-text img { height: 24px; width: auto; display: block; }

/* Título grande (substitui fuel-typography quando sem web components) */
fuel-typography[size="heading-lg"] { display: block; text-align: left; margin: 24px 0 16px; font-size: 28px; line-height: 1.2; color: #111111; font-weight: 600; }
fuel-typography[size="heading-lg"] strong { display: block; font-size: 36px; font-weight: 800; margin-bottom: 6px; }

@media (max-width: 480px) {
  fuel-typography[size="heading-lg"] { font-size: 24px; }
  fuel-typography[size="heading-lg"] strong { font-size: 32px; }
}

@media (max-width: 768px) {
  #kc-header-wrapper { padding-top: 60px; }
}

/* Aparência dos inputs quando desabilitados pelo erro */
.form-field input:disabled { background: #eaf2ff; color: #6b7280; }

/* Honeypot anti-bot */
.hp-wrap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }