
root {
  /* cores */
    --cor-primaria: #231f20;
    --cor-secundaria: #2FBCB0;
    --cor-terciaria: #b3b3b3;
    --cor-link: #6c757d;

    --backgroud:#B2A9AB;

    /* hover */
    --hover-cor-secundaria: #1D726B;
    --hover-link: #393D41;
}

html,
body {
  font-family: 'Cinzel', serif;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  background-color: #231f20;
  overflow-x: hidden;
}

body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main {
  flex-grow: 1;
}
.container {
  width: 100%;
  margin: 0 auto;
}

/* Estiliza a área interativa para centralizar o nosso cartão */
#interactive-area {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* O container que cria o espaço 3D para a animação */
.flip-container {
  width: 100%;
  max-width: 600px;
  height: 300px;
  perspective: 1000px; /* Efeito de profundidade 3D */
}

/* O elemento que efetivamente gira */
.flipper {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s; /* Duração da animação */
}

/* Ativa a rotação quando a classe 'flipped' é adicionada */
.flip-container.flipped .flipper {
  transform: rotateY(180deg);
}

/* Estilo comum para as duas faces do cartão */
.front,
.back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* Esconde a face de trás */
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
}

/* Posiciona o verso já virado */
.back {
  transform: rotateY(180deg);
}

/* Container para os formulários dentro das faces */
.login-form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.switch-link {
  font-size: 0.9rem;
}

.switch-link a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: bold;
}

#login-btn{
  border-radius: 30px;
  background-color: #231F20;
  color: #fff;
  font-size: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

#login-btn:hover{
 background-color: #A99EA1; /* Lighter Indigo */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}


#container-reader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.scanner-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#reader video {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

#reader {
    width: 90%;
    height: auto;
    max-width: 400px;  /* Tamanho máximo absoluto */
    max-height: 400px; /* Tamanho máximo absoluto */
    aspect-ratio: 1/1; /* Mantém proporção quadrada */
    position: relative;
}


#close-btn{
  border-radius: 30px;
  background-color: #c1121f;
  color: #fff;
  text-align: center;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-top: 5px ;
  transition: all 0.3s ease;
}

button[type="submit"]{
  border-radius: 30px;
  background-color: #231F20;
  color: #fff;
  font-size: 15px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
/* Ajustes para telas pequenas */
@media (max-width: 768px) {
    #reader {
        width: 70vw;
        height: 70vw;
        max-width: 70vw; /* Sobrescreve o máximo em mobile */
        max-height: 70vw;
    }
}
