@import url("https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap");
@font-face {
  font-family: "ethnocentric_it";
  src: url("../fonts/ethnocentric_rg_it.ttf") format("truetype");
}
@font-face {
  font-family: "ethnocentric";
  src: url("../fonts/ethnocentric_rg.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  flex-direction: column;
  margin-top: -30px;
}

:root {
  --primary: rgb(6 74 106);
  --secondary: rgb(50 159 137);
  --danger-primary: #c30819;
  --danger-secondary: #a60064;
  /*OLD 
      --primary:  #0889c3;
      --secondary :  #00a65a;
  
    --danger-primary : rgb(240 4 127);
    --danger-secondary : rgb(195 8 25);
    */
}

::selection {
  background: #4158d0;
  color: #fff;
}

.wrapper {
  width: 380px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
}

.wrapper .title {
  font-size: 25px;
  font-weight: 600;
  text-align: center;
  line-height: 100px;
  color: #fff;
  user-select: none;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  font-family: "ethnocentric";
}

.wrapper form {
  padding: 10px 30px 30px 30px;
}

.wrapper form .field {
  height: 50px;
  width: 100%;
  margin-top: 25px;
  position: relative;
}

.wrapper form .field input {
  height: 100%;
  width: 100%;
  outline: none;
  font-size: 17px;
  padding-left: 20px;
  border: 1px solid lightgrey;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.wrapper form .field input:focus,
form .field input:valid {
  border-color: var(--secondary);
}

.wrapper form .field label {
  position: absolute;
  top: 50%;
  left: 20px;
  color: #999999;
  font-weight: 400;
  font-size: 17px;
  pointer-events: none;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.wrapper form .danger {
    padding: 5px;
    margin-top: 25px;
    text-align: center;
    background: linear-gradient(135deg, var(--danger-primary), var(--danger-secondary));
    color: white;
    border-radius: 8px;
}

form .field input:focus ~ label,
form .field input:valid ~ label {
  top: 0%;
  font-size: 16px;
  color: var(--secondary);
  background: #fff;
  transform: translateY(-50%);
}

form .field input[type="submit"] {
  color: #fff;
  border: none;
  padding-left: 0;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: all 0.3s ease;
}

form .field input[type="submit"]:active {
  transform: scale(0.95);
}

form .pass-link {
  color: #262626;
  margin-top: 20px;
  text-align: center;
}

form .pass-link a {
  color: #4158d0;
  text-decoration: none;
}

form .pass-link a:hover {
  text-decoration: underline;
}

.logo{  
  width: 200px;
  padding-bottom: 20px;
}