@import url(https://fonts.googleapis.com/css?family=Roboto:300);

@media screen and (max-width: 559px) {
  body {
    background-color: #fff;
    font-family: "Roboto", sans-serif;
    text-align: center;
    margin-top: 30%;
  }
  html {
    position: relative;
  }

  /* GENERAL */
  .container {
    padding: 0 32px;
  }

  .ESIoT-logo {
    width: 50px;
    position: absolute;
    top: 10%;
    left: 29%;
  }
  .logo-header {
    position: absolute;
    top: 10%;
    left: 43%;
    font-size: 40px;
    color: #005ab5;
    font-weight: bold;
    margin-top: 0;
  }

  h3 {
    font-weight: bold;
    font-size: 36px;
    color: #777;
    margin-top: 30px;
  }

  .form input {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 270px;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
  }

  input:focus {
    box-shadow: inset 0 0 0 2px #3498db;
  }

  .form-btn,
  .form-btn:visited {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    background: #3498db;
    width: 270px;
    border: 0;
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .form-btn:hover,
  .form-btn:active {
    background: #74c0fc;
    font-weight: bold;
  }

  .main-form {
    margin-bottom: 40px;
  }

  .message-box {
    margin: 5px 17%;
  }
  
  .message {
    color: #b3b3b3;
    font-size: 12px;
    margin: 0;
    align-items: flex-end;
    justify-self: start;
  }

  .message-btn {
    font-size: 12px;
    outline: none;
    border: none;
    border-bottom: 1px solid transparent;
    background: none;
    text-decoration: none;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }
  .message-btn:hover {
    color: #246a99;
    border-bottom: 1px solid currentColor;
  }


  /* SIGN UP FIELD TOOLTIP: MOBILE DEVICE */
  /* ************************************************** */
  .tooltip {
    position: relative;
    text-align: center;
  }

  .tooltip .top {
    min-width: 300px;
    top: -20px;
    left: 50%;
    transform: translate(-50%, -100%);
    padding: 10px 20px;
    color: #fff;
    background-color: #009cdc;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    display: none;
  }

  .tooltip:hover .top {
    display: block;
  }

  .tooltip .top i {
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -12px;
    width: 24px;
    height: 12px;
    overflow: hidden;
  }

  .tooltip .top i::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #009cdc;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
/* ************************************************** */
  .instruction {
    font-size: 16px;
    font-family: "Roboto";
    color: #777;
  }

  .instruction--confirm {
    color: #777;
    font-size: 14px;
    padding: 0 75px;
  }
  .heading-err {
    font-weight: bold;
    font-size: 36px;
    color: red;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .instruction-err {
    color: #444;
    font-size: 16px;
    padding: 0 20px;
  }

  .instruction--sent {
    font-size: 16px;
    margin-bottom: 0;
  }
  .errorlist {
    list-style: none;
    color: red;
    font-size: 10px;
    padding: 0;
    margin-top: 2px;
    margin-bottom: 12px;
    text-align: left;
  }
  .errorlist li {
    width: 270px;
    margin: 0 auto;    
  }
}

@media screen and (min-width: 559px) {
  body {
    background-color: #1ab2ff;
    font-family: "Roboto", sans-serif;
  }

  /* GENERAL */

  .main-page {
    width: 360px;
    padding: 10% 0 0;
    margin: auto;
  }

  .container, 
  .form {
    position: relative;
    z-index: 1;
    background: #ffffff;
    max-width: 360px;
    margin: 0 auto 200px;
    padding: 45px;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24);
    border-radius: 15px;
  }
  .ESIoT-logo {
    width: 50px;
    position: absolute;
    top: 4%;
    left: 27%;
  }
  .logo-header {
    position: absolute;
    top: 4%;
    left: 42%;
    margin: 0;
    font-size: 40px;
    color: #005ab5;
    font-weight: bold;
  }

  h3 {
    font-weight: bold;
    font-size: 30px;
    color: #777;
    margin-top: 50px;
  }

  .form input {
    font-family: "Roboto", sans-serif;
    outline: 0;
    background: #f2f2f2;
    width: 100%;
    border: 0;
    margin: 0 0 15px;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1)      
  }

  input:focus {
    box-shadow: inset 0 0 0 2px #3498db;
  }

  .form-btn,
  .form-btn:visited {
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
    outline: 0;
    background: #4dabf7;
    width: 100%;
    border: 0;
    padding: 15px;
    color: #ffffff;
    font-size: 14px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .form-btn:hover,
  .form-btn:active {
    background: #74c0fc;
    font-weight: bold;
  }

  .main-form {
    margin-bottom:30px;
  }

  .message-box {
    margin-bottom: 5px
  }
  
  
  .message {
    color: #b3b3b3;
    font-size: 12px;
    margin: 0;
    align-items: flex-end;
    justify-self: start;
  }

  .message-btn {
    font-size: 12px;
    outline: none;
    border: none;
    border-bottom: 1px solid transparent;
    background: none;
    text-decoration: none;
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .message-btn:hover {
    color: #246a99;
    border-bottom: 1px solid currentColor;
  }
  
/* SIGN UP PAGE TOOLTIP: DESKTOP/WIDE DEVICE  */
/* ************************************************* */
  .tooltip {
    position: relative;
    text-align: left;
  }

  .tooltip .right {
    min-width: 300px;
    max-width: 400px;
    top: 35%;
    left: 100%;
    margin-left: 20px;
    transform: translate(0, -50%);
    padding: 10px 20px;
    color: #fff;
    background-color: #000;
    font-weight: normal;
    font-size: 13px;
    border-radius: 8px;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.8s;
  }

  .tooltip:hover .right {
    visibility: visible;
    opacity: 0.9;
  }

  .tooltip .right i {
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -12px;
    width: 12px;
    height: 24px;
    overflow: hidden;
  }

  .tooltip .right i::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(-45deg);
    background-color: #000;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }
/* ************************************************* */
  .instruction {
    font-size: 16px;
    margin-bottom: 32px;
    color: #777;
  }

  .instruction--confirm {
    color: #777;
    font-size: 14px;
    padding: 0 10px;
  }
  .heading-err {
    font-weight: bold;
    font-size: 32px;
    color: red;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .instruction-err {
    color: #444;
    font-size: 15px;
  }

  .instruction--sent {
    font-size: 16px;
    margin-bottom: 0;
  }
  .errorlist {
    list-style: none;
    font-size: 12px;
    font-weight: 600;
    color: red;
    padding: 0;
    margin-top: 2px;
    margin-bottom: 12px;
    text-align: left;
    align-self: start;
  }
  .errorlist li {
    margin-bottom: 2px;
    justify-items: start;
  }
}


/* GENERAL HELPER CLASSES */
.center {
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: max-content 1.5fr;
  justify-items: flex-start;
  justify-content: end;
  gap: 5px;
}

.grid--equal {
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}

.flexbox {
  display: flex;
  align-items: center;
}

.flexbox--col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}

.error {
  border: 0;
}

.error:focus {
  box-shadow: inset 0 0 0 2px red;
}

.btn--link:link,
.btn--link:visited {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: none;
  background: #3498db;
  border: 0;
  padding: 2px 32px;
  width: 64px;
  color: #ffffff;
  font-size: 12px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  border-radius: 2px;
}

.btn--link:hover,
.btn--link:active {
  background: #74c0fc;
  font-weight: bold;
}

ion-icon {
  font-size: 16px;
}
  
