* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: #333;
    background: url("../img/bg.jpg") no-repeat top center fixed;
    background-size: cover;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

body.align {
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: min(90%, 420px);
}

.logo {
    padding-top: 32px;
    text-align: center;
    animation: fade-in-down 450ms ease-out both;
}

.logo img {
    width: 210px;
    max-width: 80%;
}

.login-box {
    max-width: 340px;
    margin: 30px auto 0;
    padding: 10px 30px 42px;
    border-radius: 5px;
    background-color: #08687e;
    text-align: center;
    animation: fade-in-down 450ms 120ms ease-out both;
}

h1,
h2 {
    margin: 20px auto 40px;
    color: #fff;
    font-weight: 300;
    line-height: 1.7rem;
    letter-spacing: 3px;
    text-align: center;
    text-transform: uppercase;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1em;
}

.form {
    margin: -0.875rem;
}

.form[hidden],
.message[hidden] {
    display: none;
}

.form__field {
    display: flex;
    margin: 0.875rem;
}

.form__field label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 0.25rem 0 0 0.25rem;
    background-color: #faa635;
}

.form__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.8rem;
    border: 0;
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #fff;
    font: inherit;
    outline: 0;
    transition: background-color 180ms ease;
}

.form__input:focus,
.form__input:hover {
    background-color: #eee;
}

.button {
    width: 100%;
    padding: 1rem;
    border: 0;
    border-radius: 0.25rem;
    color: #fff;
    background-color: #0c9abe;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.button:focus,
.button:hover {
    color: #faa635;
    background-color: #49afc9;
}

.small {
    margin: 20px 0 0;
    font-size: 0.9em;
}

.small a {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: underline;
}

.small a:focus,
.small a:hover {
    color: #faa635;
}

.message {
    margin: 18px -2px -12px;
    padding: 10px 12px;
    border-radius: 4px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.22);
    text-align: left;
}

.message[data-type="error"] {
    background-color: #9c2f2f;
}

.message[data-type="info"] {
    background-color: #0c7289;
}

.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
