@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

/* ---------------------- */
/* ESTILOS GERAIS         */
/* ---------------------- */

body {
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  min-height: 100vh;
  padding: 20px;
}

/* ---------------------- */
/* CARD PRINCIPAL         */
/* ---------------------- */

.background_form {
  position: relative;
  background: #27445b;
  border-radius: 10px;
  padding: 40px 30px;
  width: 100%;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}


/* ---------------------- */
/* TEXTOS DE TÍTULOS      */
/* ---------------------- */

.inter-title {
  font-weight: 700;
  font-size: 32px;
  color: #ffffff;
}

.inter-subtitle {
  font-weight: 300;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

.inter-text {
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
}

.inter-linktext,
.resetpass {
  font-weight: 600;
  font-style: italic;
  font-size: 14px;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: underline;
  transition: 0.3s ease;
}

.inter-linktext {
  margin-top: 20px;
  display: block;
}

.inter-linktext:hover,
.resetpass:hover {
  color: #e0e0e0;
}


/* ---------------------- */
/* LINHAS E ITENS         */
/* ---------------------- */

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.row p,
.row a {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ---------------------- */
/* INPUTS                 */
/* ---------------------- */

.input-group {
  position: relative;
  margin: 20px 0;
  width: 100%;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 400;
  pointer-events: none;
  color: #4a4a4a;
  padding: 0 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.4s ease;
  z-index: 2;
}

.input-group label .material-icons {
  font-size: 20px;
  transition: 0.4s ease;
  color: #4a4a4a;
}

.input-group input {
  width: 100%;
  height: 45px;
  color: #4a4a4a;
  font-size: 16px;
  padding: 0 15px 0 45px;
  background: #e0e0e0;
  border: none;
  outline: none;
  border-radius: 5px;
  box-sizing: border-box;
}

.input-group input:focus {
  box-shadow: 0 0 5px 2px rgba(158, 79, 81, 0.6);
  background-color: #f8f8f8;
}

.input-group input:focus ~ label,
.input-group.filled label {
  top: 0;
  font-size: 12px;
  background: #e0e0e0;
  border-radius: 4px;
  padding: 0 6px;
  color: #27445B;
}

.input-group input:focus ~ label .material-icons,
.input-group.filled label .material-icons {
  font-size: 14px;
  color: #27445B;
}

/* ---------------------- */
/* BOTÃO LOGIN            */
/* ---------------------- */

.btnLogin {
  background: #e51a29;
  align-items: center;
  display: flex;
  justify-content: center;
  transition: 0.3s ease;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  width: 60%;
  height: 50px;
  line-height: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  cursor: pointer;
  margin: 25px auto 20px;
}

.btnLogin:hover {
  background: #6a2e30;
}

.btnLogin .material-icons {
  margin-right: 8px;
}

/* ---------------------- */
/* FOTO FIXA LOGO         */
/* ---------------------- */

.logo-fixa {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 150px;
  height: auto;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.logo-fixa:hover {
  opacity: 0.9;
}

@media (max-width: 600px) {
  .logo-fixa {
    width: 70px;       
    bottom: 15px;
    right: 15px;
    opacity: 0.6;       
  }
}

/* ---------------------- */
/* LOADING ANIMATION      */
/* ---------------------- */

.loader {
  width: 50px;
  aspect-ratio: 1;
  margin: 20px;
  position: absolute;
  margin: auto;
  left: 44%;
  bottom: 25px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 8px solid white;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0%    {clip-path: polygon(50% 50%,0 0,50% 0,50% 0,50% 0,50% 0,50% 0)}
  12.5% {clip-path: polygon(50% 50%,0 0,50% 0,100% 0,100% 0,100% 0,100% 0)}
  25%   {clip-path: polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,100% 100%,100% 100%)}
  50%   {clip-path: polygon(50% 50%,0 0,50% 0,100% 0,100% 100%,50% 100%,0 100%)}
  62.5% {clip-path: polygon(50% 50%,100% 0,100% 0,100% 0,100% 100%,50% 100%,0 100%)}
  75%   {clip-path: polygon(50% 50%,100% 100%,100% 100%,100% 100%,100% 100%,50% 100%,0 100%)}
  100%  {clip-path: polygon(50% 50%,50% 100%,50% 100%,50% 100%,50% 100%,50% 100%,0 100%)}
}

@keyframes l20-2 {
  0% {transform: scaleY(1) rotate(0deg)}
  49.99%{transform: scaleY(1) rotate(135deg)}
  50% {transform: scaleY(-1) rotate(0deg)}
  100%{transform: scaleY(-1) rotate(-135deg)}
}


/* ---------------------- */
/* RESPONSIVIDADE         */
/* ---------------------- */

@media (max-width: 1024px) {
  .background_form { max-width: 450px; padding: 35px; }
  .inter-title { font-size: 28px; }
  .inter-subtitle { font-size: 18px; }
  .logo-fixa { width: 130px; top: 15px; right: 15px; }
}

@media (max-width: 768px) {
  .background_form { max-width: 400px; padding: 30px; }
  .btnLogin { width: 80%; font-size: 16px; }
  .input-group input { height: 42px; font-size: 15px; }
  .logo-fixa { width: 110px; top: 10px; right: 10px; }
}

@media (max-width: 480px) {
  .background_form {
    max-width: 100%;
    margin: 10px;
    padding: 25px 20px;
  }
  .inter-title { font-size: 24px; }
  .inter-subtitle { font-size: 16px; }
  .btnLogin { width: 100%; height: 45px; font-size: 16px; }
  .input-group label { font-size: 14px; }
  .input-group input { height: 40px; font-size: 14px; }
  .logo-fixa { width: 90px; top: 8px; right: 8px; }
}

@media (max-width: 360px) {
  .inter-title { font-size: 22px; }
  .inter-subtitle { font-size: 15px; }
  .btnLogin { font-size: 15px; height: 42px; }
  .logo-fixa { width: 80px; }
}

/* ---------------------- */
/* Erros         */
/* ---------------------- */

.error-text {
  color: red;
  font-size: 12px;
  margin-top: 10px;
  margin-left: 10px;
  font-family: "Roboto Mono", monospace;
  background-color: #e0e0e0;
  padding: 5px;
  border-radius: 6px;
}



/* ---------------------- */
/* CHECKBOX CUSTOMIZADO   */
/* ---------------------- */

/* Contêiner dos checkboxes para alinhar o label e o input */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px; /* Espaço entre checkbox e label */
  margin: 10px 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  color: #ffffff;
  position: relative;
}

/* Esconde o checkbox padrão do navegador */
.checkbox-group input[type="checkbox"] {
  display: none;
}

/* Label do checkbox, usado para criar o quadradinho customizado */
.checkbox-group label {
  position: relative;
  padding-left: 30px; /* Espaço para o quadradinho */
  cursor: pointer;
  user-select: none;
}

/* Quadradinho customizado */
.checkbox-group label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #27445B;
  border-radius: 4px;
  background-color: #fff;
}

/* Quadradinho marcado */
.checkbox-group input[type="checkbox"]:checked + label::before {
  background-color: #0E6B4B; /* Verde do site */
  border-color: #0E6B4B;
}

/* Pequeno check interno */
.checkbox-group input[type="checkbox"]:checked + label::after {
  content: "✔";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #fff;
}

/* Links dentro do label (termos de uso) */
.checkbox-group label a {
  color: #f44336;
  text-decoration: none;
}

.checkbox-group label a:hover {
  text-decoration: underline;
}

/* Mensagem de erro abaixo do checkbox */
.checkbox-group small {
  display: none; /* Pode ser exibido via JS quando houver erro */
  color: #f44336;
  margin-left: 30px;
  font-size: 12px;
}
