body {
  font-family: 'Montserrat', sans-serif;
}

.background {
  background: url("../img/tela-login.png") no-repeat center center;
  background-size: cover;
  width: 100%;
  min-height: 100vh;
  display: flex
}

.logo {
  position: absolute;
  top: 1.5rem;
  right: 1.875rem;
  z-index: 20;
  margin-bottom: 5%;
}

.logo img {
  max-width: 10rem;
  width: 15vw;
  min-width: 6.25rem;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 0.75;
}

.register {
  width: 37%;
  margin-left: 35%;
  margin-top: 5%;
  box-sizing: border-box;
}

.register h1 {
  font-size: min(max(1.5rem, 6.5vw), 1.5rem);
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1.2rem;
}

.register .inputs {
  overflow-y: auto;
}

.input-custom {
  background-color: #363636 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0.625rem !important;
  padding: 2%;
  font-size: 1.125rem;
  font-family: 'Montserrat', sans-serif !important;
  width: 100%;
}

.d-flex {
  display: flex;
}

.input-custom::placeholder {
  color: #828282 !important;
  font-family: "Montserrat", sans-serif !important;
}

.btn-custom {
  width: 55%;
  background-color: #ab1111 !important;
  color: #ffffff !important;
  font-size: 1.125rem;
  font-weight: 400;
  border: none;
  border-radius: 0.625rem !important;
  padding: 2% 0;
  margin-bottom: 2%;
  transition: background-color 0.8s;
}

.btn-custom:hover {
  background-color: #900d0d !important;
}

.form-check-input {
  width: 0.9375rem;
  height: 0.9375rem;
  background-color: #515151;
  border: 0.125rem solid #828282;
  border-radius: 0.3125rem;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-check-input:checked::before {
  content: '\2713';
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-check-label {
  color: #828282;
  font-family: 'Montserrat', sans-serif;
}

select#genero:required:invalid {
  color: #999 !important;
}
select#genero option:not([value=""]) {
  color: #fff;
}

.select2-container .select2-selection--single {
    background-color: #363636 !important;
    border: none !important;
    border-radius: 0.625rem !important;
    height: auto !important;
    min-height: 2.1875rem !important;
    padding: 8px !important;
    font-size: clamp(14px, 2vw, 16px) !important;
    width: 100% !important;
}

/* REGRA 1: Define que o texto da opção selecionada (ex: "Engenheiro") será BRANCO. */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
    padding: 0 !important;
    line-height: normal;
}

/* REGRA 2: Define que APENAS o texto do placeholder ("Cargo") será CINZA. */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.625rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.select2-container .select2-dropdown {
    background-color: #363636 !important;
    border: 0.0625rem solid #828282 !important;
    border-radius: 0.25rem !important;
}

.select2-results__message {
    color: #ffffff !important;
    background-color: #363636 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.select2-results__options {
    background-color: #363636 !important;
}

.select2-results__option {
    color: #ffffff !important;
    background-color: #363636 !important;
    font-family: 'Montserrat', sans-serif !important;
}

.select2-results__option--highlighted,
.select2-results__option:hover,
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #828282 !important;
    color: #ffffff !important;
}

.select2-search__field {
    background-color: #363636 !important;
    color: #ffffff !important;
    border: 1px solid #828282 !important;
    border-radius: 5px !important;
}

select#cargo:required:invalid + .select2-container .select2-selection__rendered {
    color: #999 !important;
}



.register .inputs {
  overflow-y: auto;
}

@media (max-width: 75em) {

  .register {
    margin-left: 35%;
  }

  .register .inputs {
    max-height: 51vh;
  }

}

@media (max-width: 62em) {

  body,
  html {
    overflow: auto;
  }

  .background-container,
  .background {
    height: auto;
    min-height: 100vh;
    background-attachment: scroll;
    display: block;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 2rem;
    align-items: normal;
    justify-content: flex-start;
  }

  .register {
    position: absolute;
    width: 40%;
    left: 50%;
    top: 15%;
    padding: 1vh 2vw;
    padding-left: 1.75rem;
    padding-right: 1.55rem;
    margin: 0;
    height: auto;
    overflow-y: auto;
    padding: 4vh 2vw;
  }

  .register .inputs {
    max-height: 52vh;
  }

  .register h1 {
    font-size: min(max(1.5rem, 6.5vw), 1.5rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
  }

  .register .form-group:has(> .form-check) {
    text-align: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .register .input-custom{
    font-size: 0.75rem;
    padding: 0.65em 0.85em;
  }

  .register .select2-container .select2-selection--single {
    padding: 0.65em 0.85em !important;
  }

  .register .btn-custom {
    width: 100%;
    max-width: 18.75rem;
    padding: 0.7em 0;
    font-size: 0.9375rem;
    box-sizing: border-box;
  }  .register .form-check {
    display: inline-block;
    text-align: left;
    padding-left: 1.75rem;
    position: relative;
    width: auto;
  }

  .register .form-check-input {
    position: absolute;
    left: 0;
    top: 0.15em;
    margin-left: 0;
    vertical-align: top;
  }

  .register .form-check-label {
    display: inline;
  }
}

@media (max-width: 48em) {

  body,
  html {
    overflow: auto;
  }

  .background-container,
  .background {
    height: auto;
    min-height: 100vh;
    background-attachment: scroll;
    display: block;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 2rem;
    align-items: normal;
    justify-content: flex-start;
  }

  .register {
    position: absolute;
    width: 45%;
    top: 18%;
    margin: 0;
    height: auto;
    padding: 1vh 2vw;
    padding-left: 1.75rem;
    padding-right: 1.55rem;
    box-sizing: border-box;
    overflow-y: auto;
  }

  .register h1 {
    font-size: min(max(1.5rem, 7vw), 1.2rem);
    letter-spacing: normal;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .register .input-custom,
  .register .select2-container--default .select2-selection--single {
    font-size: 0.625rem;
    padding: 0.6em 0.8em;
  }

  .register .select2-container .select2-selection--single {
    padding: 0.6em 0.8em !important;
  }

  .register .btn-custom {
    font-size: 0.75rem;
    width: 50%;
    max-width: 17.5rem;
    padding: 0.7em 0;
    box-sizing: border-box;
  }

  .register .form-group:has(> .form-check) {
    text-align: center;
    width: 100%;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
  }  .register .form-check {
    display: inline-block;
    text-align: left;
    padding-left: 1.75rem;
    position: relative;
    width: 100%;
  }

  .register .form-check-input {
    position: absolute;
    left: 0;
    top: 0.15em;
    margin-left: 0;
    vertical-align: top;
  }

  .register .form-check-label {
    display: inline;
  }
}
@media (max-width: 475px) { 
  .background {
    display: block !important;
    position: relative;
    padding: 0;
    min-height: 100vh;
    height: auto;
    background: url("../img/BACKGROUND FAIXA.png"); 
  }

  .logo {
    position: relative;
    right: auto;
    left: auto;
    text-align: center;
    padding: 1rem 0;
    z-index: 10;
  }

  .logo img {
    max-width: 8rem;
    width: 50vw;
    min-width: 5rem;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .register {
    position: relative;
    width: 90%;
    max-width: 25rem;
    top: auto;
    left: auto;
    margin: 0 auto;
    padding: 1rem;
    height: auto;
    box-sizing: border-box;
  }

  .register h1 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  .register .inputs {
    max-height: 70vh;
  }

  .register .input-custom,
  .register .select2-container--default .select2-selection--single {
    font-size: 0.875rem;
    padding: 0.6em;
  }

  .register .select2-container .select2-selection--single {
    padding: 0.75em !important;
  }

  .register .btn-custom {
    font-size: 0.875rem;
    width: 100%;
    max-width: none;
    padding: 0.75em 0;
    margin-top: 1rem;
  }
  .register .form-group:has(> .form-check) {
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }  .register .form-check {
    display: inline-block;
    text-align: left;
    padding-left: 1.75rem;
    position: relative;
    width: 100%;
  }

  .register .form-check-input {
    position: absolute;
    left: 0;
    top: 0.15em;
    margin-left: 0;
    vertical-align: top;
  }

  .register .form-check-label {
    display: inline;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1;
  }
}
.erro-badge {
    display: inline-block;
    background-color: #6A0202; /* Vermelho 'danger' */
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    border-radius: 50%;
    width: 19px;   /* Um pouco maior para melhor visibilidade */
    height: 19px;
    line-height: 19px;
    margin-left: 10px;
    /* Alinha o selo verticalmente com o campo de input */
    vertical-align: middle;
    /* Faz o selo aparecer ao lado, e não abaixo do campo */
    position: absolute;
    top: 50%;
    right: -25px; /* Posição à direita do campo */
    transform: translateY(-50%);
}

.form-group {
    position: relative; 
}