﻿html * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
  background-color: var(--blue__color);
  background-image: var(--background__image);
  /*background-image: var(--background__element), var(--background__image);*/
  background-position: top;
  /* Center the image */
  background-repeat: no-repeat;
  /* Do not repeat the image */
  background-size: cover;
  /* Resize the background image to cover the entire container */
}
.wait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%);
}
/**
 * ==============================================
 * Dot Pulse
 * ==============================================
 */
.dot-pulse {
  position: relative;
  left: -9999px;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--blue__color);
  color: var(--default__color);
  box-shadow: 9999px 0 0 -5px var(--blue__color);
  animation: dotPulse 1.5s infinite linear;
  animation-delay: 0.25s;
}
.dot-pulse::before,
.dot-pulse::after {
  content: '';
  display: inline-block;
  position: absolute;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: var(--blue__color);
  color: var(--blue__color);
}
.dot-pulse::before {
  box-shadow: 9984px 0 0 -5px var(--blue__color);
  animation: dotPulseBefore 1.5s infinite linear;
  animation-delay: 0s;
}
.dot-pulse::after {
  box-shadow: 10014px 0 0 -5px var(--blue__color);
  animation: dotPulseAfter 1.5s infinite linear;
  animation-delay: 0.5s;
}
@keyframes dotPulseBefore {
  0% {
    box-shadow: 9984px 0 0 -5px var(--blue__color);
  }
  30% {
    box-shadow: 9984px 0 0 2px var(--blue__color);
  }
  60%,
  100% {
    box-shadow: 9984px 0 0 -5px var(--blue__color);
  }
}
@keyframes dotPulse {
  0% {
    box-shadow: 9999px 0 0 -5px var(--blue__color);
  }
  30% {
    box-shadow: 9999px 0 0 2px var(--blue__color);
  }
  60%,
  100% {
    box-shadow: 9999px 0 0 -5px var(--blue__color);
  }
}
@keyframes dotPulseAfter {
  0% {
    box-shadow: 10014px 0 0 -5px var(--blue__color);
  }
  30% {
    box-shadow: 10014px 0 0 2px var(--blue__color);
  }
  60%,
  100% {
    box-shadow: 10014px 0 0 -5px var(--blue__color);
  }
}
.logo {
  width: 500px;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #FFF;
  backdrop-filter: blur(8px);
}
.icon {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}
.main {
  display: flex;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  border-radius: 10px;
  color: var(--blue__color);
}
h1 {
  font-size: 30px;
}
.header {
  display: flex;
  align-items: start;
}
.form-container {
  width: 500px;
  min-height: 500px;
  background: #fff;
  padding: 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.form {
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
.form h1 {
  font-size: 25px;
}
.username,
.password,
.email {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  width: 100%;
}
.username_field,
.password_field,
.email_field {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  margin: 20px 0;
  position: relative;
}
.line {
  position: absolute;
  bottom: -10px;
  height: 2px;
  background-color: var(--blue__color);
  width: 0%;
  z-index: 1;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.lineSeparator {
  position: absolute;
  bottom: -10px;
  height: 2px;
  background-color: #D9D9D9;
  width: 100%;
}
.username_field > input,
.password_field > input,
.email_field > input {
  border: none;
  outline: none;
  margin-left: 20px;
  width: 100%;
  opacity: 50%;
}
.username_field > input:focus + .line,
.password_field > input:focus + .line,
.email_field > input:focus + .line {
  width: 100%;
}
.enter {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 50px;
  width: 100%;
  margin-top: 20px;
}
.psw_dimenticata {
  align-self: flex-end;
}
.psw_dimenticata > a {
  text-decoration: none;
  font-size: 12px;
  color: #0E2A48;
  padding: 8px;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.psw_dimenticata > a:hover {
  /*border: 1px dotted white;*/
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 5px;
}
a.button {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}
a.button_hover:link {
  text-decoration: none;
}
a.button_hover:visited {
  text-decoration: none;
}
a.button_hover:hover {
  text-decoration: none;
  color: #FFF;
}
a.button_hover:active {
  text-decoration: none;
}
.button {
  height: 100%;
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: var(--blue__color);
  /* fallback for old browsers */
  color: #FFF;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.button-light {
  height: 40px;
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  border: 1px solid #D9D9D9;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: #fff;
  /* fallback for old browsers */
  color: var(--blue__color);
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  transition: all 0.5s ease-in-out;
}
.button-light:active {
  background-color: red;
}
.button-light:disabled {
  background-color: lightgrey;
  color: grey;
  border: none;
}
.button-light:disabled > img {
  filter: grayscale(100%) blur(2px);
}
.button-light:disabled:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
#LoginButton,
.psw_dimenticata > a {
  cursor: pointer;
}
.button_hover:hover {
  box-shadow: #26394d 0px 20px 30px -10px;
}
.errorMessage {
  margin-top: 20px;
  height: 40px;
  overflow-y: scroll;
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  scrollbar-width: none;
  /* Firefox */
  text-align: center;
}
.errorMessage::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}
.errorMessage > span {
  color: #fff;
}
@media (max-width: 480px) {
  /* CSS */
  .form-container {
    width: 300px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .icon {
    margin-top: 10px;
    margin-bottom: 0;
  }
  .main {
    flex-wrap: wrap;
    justify-content: space-evenly;
    height: 100vh;
  }
}