html {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    word-spacing: 1px;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

}
html,
body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
}


#layout {
    width: 420px;
    color: #172b4d;
    border: 1px solid #dadedf;
    padding: 40px;
    box-sizing: border-box;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
}
#title {
    font-weight: 500;
    margin-left: 16px;
    font-size: 24px;
    white-space: nowrap;
}


#body .message {
    margin-top: 24px;
}
#body .message.success {
     color: #225f0d;
 }
#body .message.error {
     color: #cf1f00;
 }
#body .message:first-child {
     margin-top: 0;
 }

form {
    display: flex;
    flex-direction: column;
}

form div:first-child {
     margin-top: 0;
 }
form div {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}
form div  label {
      font-weight: 500;
      margin-bottom: 8px;
  }
form div  input {
    height: 44px;
    background-color: #f1f2f3;
    border-radius: 8px;
    border: 0px;
    font-size: 16px;
    padding: 0 8px;
    transition: background-color 0.5s ease;
}
form div input:focus {
     outline: none;
     background-color: #f4f5f7;
 }

form div button {
    font-weight: 500;
    font-size: 18px;
    height: 48px;
    background-color: #17599f;
    transition: background-color 0.5s ease;
    color: white;
    border-radius: 8px;
    border: 0px;
    cursor: pointer;
}
form div button:hover,
form div button:focus,
form div button:active {
     outline: none;
     background-color: #1e6dc0;
 }

#body a {
    color: #0052cc;
    text-decoration: none;
}
#body a:hover {
     color: #1a72f5;
 }

#body div {
    margin-top: 40px;
}
#body div:first-child {
     margin-top: 0;
 }

div.relative {
    position: relative;
}
div.relative a {
    position: absolute;
    right: 0;
}

.text-center {
    text-align: center;
}