*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    font-size: 62.5%;
    height: 100%;
    overflow: hidden;
}
@media (max-width: 768px) {
    html, body {
        font-size: 50%;
    }
}
svg {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    overflow: visible;
}
.svg-icon {
    cursor: pointer;
}
.svg-icon path {
    stroke: rgba(255, 255, 255, 0.9);
    fill: none;
    stroke-width: 1;
}
input, button {
    outline: none;
    border: none;
}
.cont {
    position: relative;
    height: 100%;
    background-image: url('https://www.freshbrothers.com/wp-content/uploads/2019/12/HOME_Hero-1.jpg');
    background-size: cover;
    overflow: auto;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
.demo {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -18rem;
    margin-top: -26.5rem;
    width: 35rem;
    height: 50rem;
    overflow: hidden;
}
.login {
    position: relative;
    height: 100%;
    background: linear-gradient(to bottom, rgba(146, 135, 187, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
    transition: opacity 0.1s, transform 0.3s cubic-bezier(0.17, -0.65, 0.665, 1.25);
    transform: scale(1);
}
.login.inactive {
    opacity: 0;
    transform: scale(1.1);
}
.login-title{
    position: absolute;
    top: 0%;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    align-items: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.login-title.success{
    height: 20%;
}
.login-title h3{
    color: #fff;
    font-size: 3rem;
    font-weight:400;
    text-align: center;
    width: 100%;
}
.login-title .login__input_error{
    bottom: 0;
    font-weight: bold;
    position: absolute;
}
.login-title.success ~ .login__check{
    display: block;
}
.login__check {
    display: none;
    position: absolute;
    top: 16rem;
    left: 15.5rem;
    width: 9rem;
    height: 1.8rem;
    background: #4cd369;
    transform-origin: 0 100%;
    transform: rotate(-45deg);
}
.login__check:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 1.8rem;
    height: 3.2rem;
    background: #4cd369;
    box-shadow: inset -0.2rem -2rem 2rem rgba(0, 0, 0, 0.2);
}
.login__form {
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 60%;
    padding: 1.5rem 2.5rem;
    text-align: center;
}
.login__row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 5rem;
    margin-bottom: 15px;
    padding-top: 1rem;
}
.login__icon {
    margin-bottom: -0.4rem;
    margin-right: 0.5rem;
}
.login__icon.name path {
    stroke-dasharray: 73.5019607544;
    stroke-dashoffset: 73.5019607544;
    animation: animatePath 2s 0.5s forwards;
}
.login__icon.pass path {
    stroke-dasharray: 92.106628418;
    stroke-dashoffset: 92.106628418;
    animation: animatePath 2s 0.5s forwards;
}
.login__input {
    display: inline-block;
    width: 27rem;
    height: 100%;
    padding-left: 1.5rem;
    font-size: 1.5rem;
    background: transparent;
    color: #fdfcfd;
}
.login__input::placeholder{
    color: #fff;
}
.login__input_error{
    color: red;
    font-size: 1.5rem;
    padding: 5px;
    
    background: rgba(45, 36, 36, 0.5);
    border-radius: 4px;
    margin: 0 auto;
    text-align: center;
    width: 90%;
}
.login__submit {
    position: relative;
    width: 100%;
    height: 4rem;
    margin: 3rem 0 2.2rem 0;
    color: rgba(255, 255, 255, 0.8);
    background: #f36;
    font-size: 1.5rem;
    border-radius: 3rem;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s 0.15s, font-size 0.1s 0.15s;
}
.login__submit:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -1.5rem;
    margin-top: -1.5rem;
    width: 3rem;
    height: 3rem;
    border: 2px dotted #fff;
    border-radius: 50%;
    border-left: none;
    border-bottom: none;
    transition: opacity 0.1s 0.4s;
    opacity: 0;
}
.login__submit.processing {
    width: 4rem;
    font-size: 0;
}
.login__submit.processing:after {
    opacity: 1;
    animation: rotate 0.5s 0.4s infinite linear;
}
.login__submit.success {
    transition: transform 0.3s 0.1s ease-out, opacity 0.1s 0.3s, background-color 0.1s 0.3s;
    transform: scale(30);
    opacity: 0.9;
}
.login__submit.success:after {
    transition: opacity 0.1s 0s;
    opacity: 0;
    animation: none;
}
.login__signup {
    font-size: 1.5rem;
    color: #aba8ae;
}
.login__signup a {
    color: #fff;
    cursor: pointer;
}
.ripple {
    position: absolute;
    width: 15rem;
    height: 15rem;
    margin-left: -7.5rem;
    margin-top: -7.5rem;
    background: rgba(0, 0, 0, 0.4);
    transform: scale(0);
    animation: animRipple 0.4s;
    border-radius: 50%;
}
@keyframes animRipple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}
@keyframes animatePath {
    to {
        stroke-dashoffset: 0;
    }
}