@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('/static/images/background_login.png') no-repeat center center/cover;  background-size: cover; /* Garante que a imagem cubra toda a área da tela */
  background-size: cover; /* Faz a imagem cobrir toda a tela */
  background-position: center center; /* Centraliza a imagem */
  background-attachment: fixed; /* Fixa a imagem no fundo para evitar que se mova */
  background-repeat: no-repeat; /* Garante que a imagem não se repita */
  margin: 0;
}
/* Estilo do formulário */
.wrapper {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: #fff; /* Mantém o fundo branco do formulário */
  padding: 34px;
  border-radius: 6px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  text-align: left; /* Mantém o texto alinhado à esquerda */
}

.wrapper h2 {
  position: relative;
  font-size: 22px;
  font-weight: 600;
  color: #333;
}

.wrapper h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 28px;
  border-radius: 12px;
  background: #001F32;
}

.wrapper form {
  margin-top: 30px;
}

.wrapper form .input-box {
  height: 52px;
  margin: 18px 0;
}

form .input-box input {
  height: 55px;
  width: 100%;
  outline: none;
  padding: 0 15px;
  font-size: 17px;
  font-weight: 400;
  color: #333;
  border: 1.5px solid #ffffff;
  border-bottom-width: 2.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.input-box input:focus,
.input-box input:valid {
  border-color: #001F32;
}

form .policy {
  display: flex;
  align-items: center;
}

form h3 {
  color: #707070;
  font-size: 14px;
  font-weight: 500;
  margin-left: 10px;
}

.input-box.button input {
  color: #fff;
  letter-spacing: 1px;
  border: none;
  background: #003246;
  cursor: pointer;
}

.input-box.button {
    display: flex;
    justify-content: center;
}

.input-box.button input:hover {
  background: #094792;
}

form .text h3 {
  color: #333;
  width: 100%;
  text-align: center;
}

form .text h3 a {
  color: #001F32;
  text-decoration: none;
}

form .text h3 a:hover {
  text-decoration: underline;
}

.custom-select {
  height: 55px;
  width: 100%;
  outline: none;
  padding: 0 15px;
  font-size: 17px;
  font-weight: 400;
  color: #333;
  border: 1.5px solid #ffffff;
  border-bottom-width: 2.5px;
  border-radius: 6px;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.custom-select select:focus,
.custom-select select:valid {
  border-color: #001F32;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  background-color: white;
  text-align: center;
  z-index: 1001;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 200px;
}

.container-fluid {
  width: 100%;
  padding: 0;
  margin: 0;
}

.banner-container {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-brand {
  text-align: center;
  width: 100%;
}

.sidebar-brand-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.img-profile {
  margin: 0 auto;
}

.btn-right-align {
  color: #fff;
  letter-spacing: 1px;
  border: none;
  background: #003246;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-right: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  width: fit-content;
}

.btn-right-align:hover {
  background: #094792;
}

.button-group button {
  margin-right: 10px;
  margin-left: 10px; /* Adiciona espaçamento entre os botões */
}
.input-box button,
.input-box input[type="submit"] {
    background-color: #094792; /* Cor de fundo */
    border: none; /* Remove borda */
    color: white; /* Cor do texto */
    padding: 10px 20px; /* Espaçamento interno */
    text-align: center; /* Centraliza o texto */
    text-decoration: none; /* Remove sublinhado */
    display: inline-block; /* Exibe inline */
    font-size: 16px; /* Tamanho da fonte */
    cursor: pointer; /* Cursor de ponteiro */
    border-radius: 4px; /* Bordas arredondadas */
}

.input-box button:hover,
.input-box input[type="submit"]:hover {
    background-color: #094792; /* Cor de fundo ao passar o mouse */
}

/* Ajustes para a tabela em dispositivos móveis */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Rolagem suave no iOS */
    }

    .table thead {
        display: none; /* Esconder o cabeçalho em telas pequenas para visualização simplificada */
    }

    .table tbody td {
        display: block;
        width: 100%;
        text-align: right; /* Alinhamento do texto */
        border-bottom: 1px solid #dee2e6;
        position: relative;
        padding-left: 50%;
    }

    .table tbody td:before {
        content: attr(data-label); /* Usar atributos de dados para os rótulos das células */
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
        white-space: nowrap;
    }

     .sidebar-brand-icon {
        max-width: 150px; /* Reduzir o tamanho máximo em telas menores */
    }
}

.sidebar-brand-icon {
    width: 100%;
    max-width: 200px; /* Ajuste a largura máxima para um valor adequado */
    height: auto; /* Manter a altura proporcional */
}

/* Garantir que a imagem não seja cortada */
.sidebar-brand img {
    max-width: 100%;
    height: auto; /* Para manter a proporção da imagem */
}

.sidebar-brand-icon img {
  max-width: 100%; /* Garante que a imagem nunca ultrapasse o tamanho do container */
  height: auto; /* Mantém a proporção da imagem */
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
  .sidebar-brand-icon img {
      width: 120px; /* Reduz o tamanho da imagem */
  }
}

@media (max-width: 480px) {
  .sidebar-brand-icon img {
      width: 100px; /* Para telas menores ainda */
  }
}
@media (max-width: 768px) {
  .form-row {
      display: flex;
      flex-direction: column;
      gap: 10px; /* Espaçamento entre os botões no mobile */
  }
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Para telas pequenas */
@media (max-width: 768px) {
  .sidebar-card {
      display: flex !important; /* Garante que fique visível */
      width: 100%; 
      padding: 10px;
      text-align: center;
  }

  .sidebar-card a {
      width: 100%; /* Faz o botão ocupar toda a largura */
  }
}