:root{
    --principal-logo: url('../res/logo_principal.png'); 
    --form-logo: url('../res/logo_simbolo.png');
    --principal-bg: url('../res/Textura_fundo.jpg');

    --color-primary: #1a3d2f;
    --color-primary-dark: #d3d4d5;
    --btn-color-principal: #30a75d;
    --btn-color-principal-hover: #8cf070;
    --btn-color-secondary: #1a3d2f;
    --btn-color-secondary-hover: #399b59;
    --btn-border-color:#53c882;
    --box-background-color: #3e814b;
}

.principalBg{
    min-height: 100%;
    min-width: 1024px;
    overflow: hidden;
    /* Set up proportionate scaling */
    width: 100%;
    height: auto;
    background: #246a4700 var(--principal-bg) no-repeat center;
    background-size: 100% 100%;
     /* Set up positioning */
    position: fixed;
    top: 0;
    left: 0;
}

.bg {
  /* Set rules to fill background */
  min-height: 100%;
  min-width: 1024px;
  overflow: hidden;
	
  /* Set up proportionate scaling */
  width: 100%;
  height: auto;
	
  /* Set up positioning */
  position: fixed;
  top: 0;
  left: 0;
}

body{
    height:100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size:12px;
}

h3{
    font-size: 1.3rem;
}

.btn{
    border-radius:5px !important;
    font-size: 12px;
    background-color: var(--button-color-principal) !important;
}

label{
    margin-bottom: 0px !important;
}

.form-control{
    border-radius:5px !important;
    font-size: 0.75rem;
}
.form-control:focus {
    border-color: #339966;
    box-shadow: 0px 1px 1px rgba(0, 162, 89, 0.055) inset, 0px 0px 8px rgba(0, 99, 16, 0.5);
}

.btn-primary:hover, .btn-primary:active, .btn-primary:disabled {
    background-image:none; 
    background-color: var(--btn-color-principal-hover) !important;
    border-color:  var(--btn-color-principal-hover) !important;
    box-shadow: 0px 1px 1px rgba(0, 162, 89, 0.055) inset, 0px 0px 8px rgba(0, 99, 16, 0.5) !important;
    color:white !important;
    opacity:100% !important;
}

.btn__login:hover,
.btn__forgotPassword:hover{
    background-color: #65a54a;
    color: var(--color-primary-dark);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 6px 0;
    margin: 0 auto;
    border: 3px solid white;
    width: 110px;   
    box-shadow: 0 0 3px #393939;
}

.btn__login,
.btn__forgotPassword{
    background-color: var(--color-primary-dark);
    color: var(--color-primary);
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 6px 0;
    margin: 0 auto;
    border: 3px solid white;
    width: 110px;
    box-shadow: 0 0 3px #393939;
}

.forgot{
    margin: 1rem auto 2.5rem auto;
    width: 50%;
}

.forgot__password{
    font-size:15px;
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.btn-primary, .btn-primary:visited {
   /* background-image: linear-gradient(#D1E9D1, white, #D1E9D1);
    border-color:  #D1E9D1 !important;*/
    background-color: var(--btn-color-principal)!important;
    border: 3px solid var(--btn-border-color);
}

.btn-primary:focus {
    box-shadow: 0px 1px 1px rgba(0, 162, 89, 0.055) inset, 0px 0px 8px rgba(0, 99, 16, 0.5);
}

.btn-secondary:hover:enabled,
.btn-secondary:active {
    background-image: none;
    background-color: var(--btn-color-secondary-hover) !important;
    border-color: var(--btn-color-secondary-hover) !important;
    box-shadow: 0px 1px 1px rgba(186, 211, 0, 0.055) inset, 0px 0px 8px rgba(186, 211, 0, 0.5) !important;
    color: white !important;
    opacity: 100% !important;
}


.btn-secondary,
.btn-secondary:visited {
    background-color: var(--btn-color-secondary) !important;
    border-color: #246A47 !important;
}

.btn-secondary:focus {
    box-shadow: 0px 1px 1px rgba(0, 162, 89, 0.055) inset, 0px 0px 8px rgba(0, 99, 16, 0.5);
}

.custom-control-label{
    font-size: 14px;
}

.custom-control-input-red:focus~.custom-control-label::before {
    box-shadow: 0px 1px 1px rgba(0, 162, 89, 0.055) inset, 0px 0px 8px rgba(0, 99, 16, 0.5);
}
  
  .custom-control-input-red:checked~.custom-control-label::before {
    border-color: #339966 !important;
    background-color: #339966 !important;
  }
  
  .custom-control-input-red:focus:not(:checked)~.custom-control-label::before {
    border-color: #339966 !important;
  }
  
  .custom-control-input-red:not(:disabled):active~.custom-control-label::before {
    background-color: #d6f5dd !important;
    border-color: #d6f5dd !important;
  }
  
  .modal {
    text-align: center !important;
  }
  
  .modal-content{
     border-radius:5px !important;
  }

  @media screen and (min-width: 345px) { 
    .modal:before {
      display: inline-block;
      vertical-align: middle;
      content: " ";
      height: 100%;
    }
  }

.modal-dialog {    
    display: inline-block;
    text-align: left;
    vertical-align: middle !important;
    width:25%;
  }

.modal-header{
    background: rgba(56,178,105,1)!important;
    background: -moz-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%)!important;
    background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(56,178,105,1)), color-stop(100%, rgba(18,125,46,1)))!important;
    background: -webkit-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%)!important;
    background: -o-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%)!important;
    background: -ms-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%) ;
	background: linear-gradient(45deg, rgb(191, 191, 187) 0%, rgb(226, 227, 216) 100%) !important;
    border-radius: 8px!important;
    border: 0;
    color: #3a574b;
    padding: 0.5rem 1rem;
}


.modal-header span{
    color: #3a574b;
}

.modal-content label{
    color: white;
    font-size: 14px;
    margin-bottom: 5%!important;
}

.modal-content{
    background: var(--box-background-color);
    border-radius: 8px!important;
    border: 0;
    color: white;
}

.modal-title{
    font-weight: 500;
    font-size:18px;
}


 .wrapper {
    display: block;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    /* top layer */
    z-index: 9999;
}

.overlay {
    display: none;
    position: fixed;
    /* full screen */
    width: 100vw;
    height: 100vh;
    /* transparent black */
    background: rgba(0, 0, 0, 0.7);
    /* middle layer, i.e. appears below the sidebar */
    z-index: 998;
    opacity: 0;
    /* animate the transition */
    transition: all 0.5s ease-in-out;
}
/* display .overlay when it has the .active class */
.overlay.active {
    display: block;
    opacity: 1;

}

#dismiss {
    width: 35px;
    height: 35px;
    position: absolute;
    /* top right corner of the sidebar */
    top: 10px;
    right: 10px;
    
}

@keyframes fadeOut {
    0% {opacity: 1;visibility:visible;}
    25% {opacity: 1;visibility:visible;}
    50% {opacity: 1;visibility:visible;}
    75% {opacity: 1;visibility:visible;}
    100% {opacity: 0;visibility:hidden;} 
 } 

.over{
    animation-name: fadeOut;
    animation-duration: 3s;
    animation-iteration-count: 1;
    
    z-index:1000;
    width:100%;
    height:100%;
    background: #ffffff;
    /* background: #ffffff00 var(--principal-bg) no-repeat center; */
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    opacity:0;
    visibility:hidden;
}

.over__principalLogo{
    width: 200px;
    height: 200px;
    background: #246a4700   var(--principal-logo)   no-repeat  center;
    background-size: contain;
    filter: drop-shadow(8px 10px 10px #B3B3B3);
}

.ef{
    filter: drop-shadow(8px 10px 10px #B3B3B3);
}

.form__principalLogo{
    width: 100px;
    height: 150px;
    background: #246a4700   var(--form-logo)  no-repeat   center;
    background-size: contain;
    margin: 0 auto;
    z-index: 3;
}

.form__legend{
    margin: 2rem auto;
    width: 25%;
    color: white;
}

.input__icon{
    background: rgba(56,178,105,1);
    background: -moz-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%);
    background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(56,178,105,1)), color-stop(100%, rgba(18,125,46,1)));
    background: -webkit-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%);
    background: -o-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%);
    background: -ms-linear-gradient(45deg, rgba(56,178,105,1) 0%, rgba(18,125,46,1) 100%);
	background: linear-gradient(45deg, rgb(116, 177, 74) 0%, rgb(50, 123, 72) 100%);
    border-radius: 8px!important;
    box-shadow: 0 0 3px #393939;
    border: 0;
    color: white;
    padding: 8px 10px;
    font-size: 1rem;
}



.input__user,
.input__password,
.input__email{
    background-color: #cccccc;
    border: 0;
}

.input__user:focus,
.input__password:focus,
.input__email:focus{
    background-color: #ffffff;
    border: 0;
}

.boxed{
    display: table-cell;
    border-radius: 10px; 
    background: var(--box-background-color);
    box-shadow: 0 0 8px #AAAAAA;
    width: 250px;
    height: 360px;
    border-radius: 22px;
}

.logbox{
    display: inline-grid;
    height: 80%;
    width: 100%;
    vertical-align: middle;
    justify-content: center;
    align-items: center;    
}

@media (max-width: 600px) {
.logbox{
    display: block;
    margin-left: 25px;  
    }
.form__principalLogo{
    margin-left:70px
}
}
