@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body{
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #19296a;
  /*background-image: url("/loginphp/img/LOGO\ CARCONDAL\ FONDO\ AZUL.png");*/
  background-size: cover;
}
::selection{
  color: #fff;
  background: #19296a;
}
.wrapper{
  width: 340px;
  padding: 40px 30px 50px 30px;
  background: rgba(0,0,0,0.19);
  border-radius: 15px;
  text-align: center;
  box-shadow: 15px 15px 15px rgba(0,0,0,0.4);
  
}
.wrapper header{
  font-size: 35px;
  font-weight: 600;
}
.wrapper form{
  margin-top: 20px;
}
form .field{
  width: 100%;
  margin-bottom: 20px;
}
form .field.shake{
  animation: shake 0.3s ease-in-out;
}
@keyframes shake {
  0%, 100%{
    margin-left: 0px;
  }
  20%, 80%{
    margin-left: -12px;
  }
  40%, 60%{
    margin-left: 12px;
  }
}
form .field .input-area{
  height: 50px;
  width: 100%;
  position: relative;
}
form input{
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 45px;
  font-size: 18px;
  background: none;
  caret-color: #19296a;
  border-radius: 15px;
  border: 1px solid rgb(14, 50, 97);
  border-bottom-width: 2px;
  transition: all 0.2s ease;
  color:#cfd0df;
}
form .field input:focus,
form .field.valid input{
  border-color: #cfd0df;
}
form .field.shake input,
form .field.error input{
  border-color: #dc3545;
}
.field .input-area i{
  position: absolute;
  top: 50%;
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-50%);
}
.input-area .icon{
  left: 15px;
  color: #bfbfbf;
  transition: color 0.2s ease;
}
.input-area .error-icon{
  right: 15px;
  color: #dc3545;
}
form input:focus ~ .icon,
form .field.valid .icon{
  color: #b7d442;
}
form .field.shake input:focus ~ .icon,
form .field.error input:focus ~ .icon{
  color: #bfbfbf;
}
form input::placeholder{
  color: #4c4d4e;
  font-size: 17px;
}
form .field .error-txt{
  color: #dc3545;
  text-align: left;
  margin-top: 5px;
}
form .field .error{
  display: none;
}
form .field.shake .error,
form .field.error .error{
  display: block;
}
form .pass-txt{
  text-align: left;
  margin-top: -10px;
}
.wrapper a{
  color: #19296a;
  text-decoration: none;
}
.wrapper a:hover{
  text-decoration: underline;
}
form input[type="submit"]{
  height: 50px;
  margin-top: 30px;
  color: rgb(255, 255, 255);
  padding: 0;
  border: none;
  background: #19296a;
  cursor: pointer;
  border-bottom: 2px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
form input[type="submit"]:hover{
  background: #2f55eb;
}
.fa-globe {
  width: 65px;
  color: rgb(210, 210, 210);
  margin-bottom: 25px;
}

.wrapper-idioma {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 0px;
}
.idioma {
  width: 100%;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  outline: none;
  padding: 0 45px;
  margin-bottom: 25px;
  font-size: 18px;
  background: none;
  caret-color: #19296a;
  border-radius: 15px;
  border: 1px solid rgb(14, 50, 97);
  border-bottom-width: 2px;
  transition: all 0.2s ease;
  color:#cfd0df;
}

select {
  appearance: none;
  background-color: #2f55eb;
}

.idioma li {
  background: #2f55eb;
  position: relative;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.idioma li label {
  background: #2f55eb;
  width: 100%;
  padding: 8px 10px;
  cursor: pointer;
}


/* Popup container */
.popup {
  position: relative;
  display: flex;
  justify-content: right;
  cursor: pointer;
  padding-left: 12rem;
  font-weight: bolder;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 490px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 20px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  top: -10rem;
  /*right: 20px;
  /*margin-left: -225px;*/
}

 /* Fletxa Popup */
 .popup .popuptext::after {
  content: "";
  position: absolute;
  bottom: 99%;
  right: 5%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Toggle aqeusta classe quan es clicka al div contenidor del popup (amaga i ensenya el popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

 /* Add animation (fade in the popup) */
 @-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}