/* RESET */

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 100%;
    font-weight: normal
}

ul {
    list-style: none
}

button,
input,
select {
    margin: 0
}

html {
    box-sizing: border-box
}

*,
*::before,
*::after {
    box-sizing: inherit
}

img,
video {
    height: auto;
    max-width: 100%
}

iframe {
    border: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

td,
th {
    padding: 0
}


/* RESET END */


/* UTILS */

.underline {
    text-decoration: underline;
}

.bold {
    font-weight: 700;
}


/* UTILS END */

:root {
    --black-color: #333;
    --white-color: #FAFAFA;
    --red-color: #C9181B;
    --green-color: #05a728;
    --blue-color: #017fb7;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    font-size: 18px;
    line-height: 1.4;
    color: var(--black-color);
    font-family: 'Roboto', sans-serif;
}

.container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    background: 60% / cover no-repeat url(img/coverLogin.jpg);
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.container::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, .75);
    height: 100%;
    width: 100%;
}

.form-container {
    background: var(--blue-color);
    margin: auto 15px;
    width: 500px;
    border-radius: 10px;
    overflow: hidden;
    color: var(--white-color);
}

.form {
    text-align: center;
    padding: 55px 15px 30px 15px;
}

.form-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white-color);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
}

.form-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 28px;
    letter-spacing: 1.8px;
    margin-top: 30px;
}

.form-subtitle {
    margin-bottom: 30px;
}

.form-input {
    margin-top: 20px;
    position: relative;
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, .24);
}

.form-input>input {
    color: var(--white-color);
    border: none;
    outline: none;
    background: 0 0;
    overflow: visible;
    width: 100%;
    height: 45px;
    font-size: 16px;
    line-height: 1.2;
    display: block;
    padding: 0 5px 0 38px;
    touch-action: manipulation;
}

.form-input>input::placeholder,
.form-input>input::-webkit-input-placeholder,
.form-input>input::-ms-input-placeholder {
    color: #EEE;
}

.form-input>input:focus {
    padding-left: 5px;
    border-color: transparent;
}

.form-input>input.hasValue {
    padding-left: 5px;
    border-color: transparent;
}

.form-input>span {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.form-input>span::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: all .4s;
    background: var(--white-color);
}

span.active::before,
span.hasValue::before {
    width: 100%;
}

.form-input>span::after {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 14px;
    left: 0;
    transition: all .4s;
}

span.active::after,
span.hasValue::after {
    width: 15px;
    height: 15px;
    top: -7px;
}

.form-input>span#login-span::after {
    background: center / cover no-repeat url("img/login-icon/login.png");
}

.form-input>span#pwd-span::after {
    background: center / cover no-repeat url("img/login-icon/pwd.png");
}

.form-input>span#pwd1-span::after {
    background: center / cover no-repeat url("img/login-icon/pwd.png");
}

.form-input>span#pwd2-span::after {
    background: center / cover no-repeat url("img/login-icon/pwd.png");
}

.form-btn>input[type="submit"] {
    margin: 30px 0;
    background: transparent;
    color: var(--white-color);
    border: 1px solid var(--white-color);
    outline: none;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: inset 0 0 0 0 var(--white-color);
    transition: ease-out .4s;
}

.form-btn>input[type="submit"]:hover {
    box-shadow: inset 0 0 0 50px var(--white-color);
    color: var(--black-color);
}

.buttons {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    margin-top: 50px;
}

.buttons a {
    text-decoration: underline;
    color: #F5F5F5;
    font-size: 16px;
}

.error {
    padding: 10px;
    position: relative;
    background-color: var(--white-color);
    color: var(--red-color);
    margin-bottom: 15px;
    border-radius: 10px;
}

.ok {
    padding: 10px;
    position: relative;
    background-color: var(--green-color);
    color: var(--white-color);
    margin-bottom: 15px;
    border-radius: 10px;
}

.close-btn {
    color: var(--red-color);
    font-weight: bold;
    position: absolute;
    font-size: 22px;
    cursor: pointer;
    transition: .3s;
    right: 20px;
    top: 8px;
}

.close-btn:hover {
    color: var(--black-color);
}

@media (min-width: 530px) {
    .form {
        padding: 55px 55px 30px 55px;
    }
    .buttons {
        flex-direction: row;
    }
}