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

html {
    font-family: "Roboto", sans-serif;
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color:var(--white);
    color: var(--white-primary);
}

:root {
    --background: #F1F3FA;
    --blue: #4c9aee;
    --blue-primary: #028fcc;
    --blue-secondary: #006bcf;
    --border: #d1d3e2;
    --white: #fff;
    --white-primary: #fdfdfd;
    --white-secondary: #f1f4fce3;
    --text-dark: #404040;
    --gray: #707070;
    --text-primary: #1E2148;
    --text-secondary: #858790;
    --hover: #e3e6f0;
    --orange: #FFA500; /* orange */
    --danger: #dc3545;
  }

body .logo {
    margin: 0 auto;
    margin-top: 48px;
    display: flex;
    align-items: center;
}

body .logo img {
    user-select: none;
    max-height: 46px;
}

body form h2 {
    margin-top: 8px;
    margin-bottom: 34px;
    color: var(--text-primary);
    font-size: 26px;
    text-align: center;
}

form {
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    padding: 36px;
    flex-direction: column;
    border-radius: 0.35rem;
    width: 400px;
    max-width: 480px;
    margin: 40px auto auto;
    position: relative;
}

form #register {
    text-align: center;
    margin-top: 30px;
}

form #register a {
    font-weight: 600;
    font-size: 14px;
    color:var(--blue);
    margin-top: 6px;
    cursor: pointer;
    text-decoration: none;
}

form #register a:hover {
    text-decoration: underline;
    color: var(--blue-secondary)
}

div.input {
    margin-bottom: 8px;
    position: relative;
}

input {
    appearance: field;
    border-radius: 4px;
    border: 1px solid var(--hover);
    width: 100%;
    height: 52px;
    margin-bottom: 26px;
    position: relative;
    box-shadow: none;
    outline: none;
    padding: 12px 14px;
    font-weight: 400;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    transition: border-color .3s;
}

button {
    appearance: none;
    border: 0px;
    box-shadow: none;
    height: 48px;
    text-align: center;
    border-radius: 4px;
    background-color: var(--text-primary);
    cursor: pointer;
    color: var(--white);
    font-weight: 400;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #24296d;
}

input ~ label {
    position: absolute;
    top: 14px;
    left: 8px;
    font-size: 1em;
    color: #212529;
    font-weight: 400;
    background-color: var(--white);
    padding: 0 6px;
    transition: transform .3s;
    cursor: text;
}

input:focus,
input:valid {
    border: 1px solid var(--orange);
}

input:focus ~ label,
input:valid ~ label {
    transform: translateY(-24px);
    font-size: .86em;
    letter-spacing: 0.1em;
    cursor: default;
}

.alert {
  position: relative;
  padding: 0.6rem 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 600;
  font-size: 90%;
}

.alert-warning {
  color: #806520;
  background-color: #fdf3d8;
  border-color: #fceec9;
}

.alert-warning hr {
  border-top-color: #fbe6b1;
}

.alert-warning b {
  color: #574516;
}

.alert-danger {
  color: #78261f;
  background-color: #fadbd8;
  border-color: #f8ccc8;
}

.alert-danger hr {
  border-top-color: #f5b7b1;
}

/* Responsive */
@media (max-width: 456px) {
    body .logo {
        margin-top: 32px;
    }
    form {
        width: 100%;
        border: none;
        padding: 24px;
        margin: 16px auto auto
    }
}