@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

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

@font-face {
    font-family: sanss;
    src: url(../font/sans.ttf);
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.5;
    letter-spacing: 1px;
}

input[type=password]{

    &::-webkit-input-placeholder {
            font-size: 15px;
            color: rgba(71, 87, 98, 0.8);
        }
    
    &::input-placeholder {
        color: rgba(71, 87, 98, 0.8);
    }
}

#app {
    width: 350px;
    height: auto;
    padding: 10px;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);

    h2 {
            font-size: 30px;
            color: black;
            margin-bottom: 40px;
            font-family: "sanss";
        }
}


.input_container {
    display: block;
    margin: 0 auto;
    width: 320px;
    height: auto;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

#app input[type=password] {
    width: 320px;
    height: auto;
    border: 1px solid transparent;
    background: #EEEEEE;
    color: #475762;
    font-size: 15px;
    border-radius: 4px;
    padding: 12px 12px;
    overflow: hidden;
    outline: none;
    transition: all 0.3s;

    &:focus {
            border: 2px solid #2196F3;
            transition: all 0.3s;
        }
}

.password_length {
    padding: 2px 10px;
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    background: #FBD490;
    color: rgba(71, 87, 98, 0.8);
    border-radius: 4px;
    font-size: 13px;
    display: none;
    transition: all 0.1s;
}

.valid_password_length {
    background: #00AD7C;
    color: rgba(255, 255, 255, 0.9);
}

.show_password_length {
    display: block;
}

.lnu_container {
    display: block;
    margin: 10px auto;
    width: 320px;
    height: auto;
    display: flex;
    justify-content: space-between;

    p {
            width: 100px;
            height: auto;
            font-size: 12px;
            line-height: 1.2;
            text-align: center;
            border-radius: 2px;
            padding: 5px;
            color: rgba(71, 87, 98, 0.8);
            background: linear-gradient(to right, #00AD7C 50%, #eee 50%);
            background-size: 201% 100%;
            background-position: right;
            transition: background 0.3s;
        }
}

.lowercase_valid,
.number_valid,
.uppercase_valid {
    background-position: left !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.valid_password_container {
    display: block;
    margin: 10px auto;
    border-radius: 4px;
    position: relative;
    background: #00AD7C;
    width: 20px;
    height: 20px;
    visibility: hidden;
    opacity: 0;
}

.show_valid_password_container {
    visibility: visible;
    opacity: 1;
}

.tick {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: white;
    stroke-width: 25;
    stroke-linecap: round;
    stroke-dasharray: 180;
    stroke-dashoffset: 180;
}

.checked {
    -webkit-animation: draw 0.5s ease forwards;
    animation: draw 0.5s ease forwards;
}

@-webkit-keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}