* {
    margin: 0;
    padding: 0;
}

body{
    background-image: linear-gradient(to bottom, #f9fbfd, #f3f4f6, #ededee, #e7e7e7, #e0e0e0);
    width: 100%;
    height: 100vh;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    text-align: center;
}

.brand-logo img {
    filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));
    width: 50%;
}

.form {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.login-text h2 {
    color: #12305c;
    font-size: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: 5px;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #d1d1d1;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
    outline: none;
    padding: 10px;
    -webkit-transition: .18s ease-out;
    -moz-transition: .18s ease-out;
    -o-transition: .18s ease-out;
    transition: .18s ease-out;
}

.form-control:hover {
     box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    color: #4b515d;
    border: 1px solid #B8B6B6;
    box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
}

.btn-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px;
}

.login-btn {
    background-color: #12305c;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 10px;
    width: 150px;
    text-align: center;
}

.forgot-password {
    margin: 10px;
    text-align: center;
}

.forgot-pass {
    text-decoration: none;
    color: #12305c;
    font-weight: bold;
}

.forgot-pass:hover {
    text-decoration: underline;
}

.reg-control {
    margin: 10px;
    text-align: center;
}

.reg_link {
    text-decoration: none;
    color: #12305c;
    font-weight: bold;
}

.reg_link:hover {
    text-decoration: underline;
}

#error {
    background: red;
    color: #fff;
}

.valid {
    border-radius: 5px;
    border: 2px solid green;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
    outline: none;
    padding: 10px;
    -webkit-transition: .18s ease-out;
    -moz-transition: .18s ease-out;
    -o-transition: .18s ease-out;
    transition: .18s ease-out;
}

.valid:hover {
    box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
}

.valid:focus {
    color: #4b515d;
    border: 2px solid green;
    box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
}

.not-valid {
    border-radius: 5px;
    border: 2px solid crimson;
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
    outline: none;
    padding: 10px;
    -webkit-transition: .18s ease-out;
    -moz-transition: .18s ease-out;
    -o-transition: .18s ease-out;
    transition: .18s ease-out;
}

.not-valid:hover {
    box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
}

.not-valid:focus {
    color: #4b515d;
    border: 2px solid crimson;
    box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
}



@media screen and (min-width: 481px){
    .form-group {
        display: flex;
        flex-direction: column;
        width: 400px;
        margin: 10px;
    }
    
    .form-control {
        border-radius: 5px;
        border: 1px solid #d1d1d1;
        box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
        outline: none;
        padding: 15px;
        -webkit-transition: .18s ease-out;
        -moz-transition: .18s ease-out;
        -o-transition: .18s ease-out;
        transition: .18s ease-out;
    }
    
    .form-control:hover {
         box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .form-control:focus {
        color: #4b515d;
        border: 1px solid #B8B6B6;
        box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
}

@media screen and (min-width: 600px) {
    body {
        width: 100%;
    }

    .wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 100px;
    }
    
    .form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .brand-logo {
        text-align: center;
    }
    
    .brand-logo img {
        filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));
        width: 50%;
    }
    
    .form {
        background-color: #fff;
        border-radius: 5px;
        box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }
    
    .login-text h2 {
        color: #12305c;
        font-size: 1.2rem;
    }
    
    .form-group {
        display: flex;
        flex-direction: column;
        width: 550px;
        margin: 10px;
    }
    
    .form-control {
        border-radius: 5px;
        border: 1px solid #d1d1d1;
        box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
        outline: none;
        padding: 20px;
        -webkit-transition: .18s ease-out;
        -moz-transition: .18s ease-out;
        -o-transition: .18s ease-out;
        transition: .18s ease-out;
    }
    
    .form-control:hover {
         box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .form-control:focus {
        color: #4b515d;
        border: 1px solid #B8B6B6;
        box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
    
    .btn-control {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 5px;
    }
    
    .login-btn {
        background-color: #12305c;
        border: none;
        border-radius: 5px;
        color: #fff;
        padding: 10px;
        width: 150px;
        text-align: center;
    }
    
    .forgot-password {
        margin: 10px;
        text-align: center;
    }
    
    .forgot-pass {
        text-decoration: none;
        color: #12305c;
        font-weight: bold;
    }
    
    .forgot-pass:hover {
        text-decoration: underline;
    }
    
    .reg-control {
        margin: 10px;
        text-align: center;
    }
    
    .reg_link {
        text-decoration: none;
        color: #12305c;
        font-weight: bold;
        margin-left: 30px;
    }
    
    .reg_link:hover {
        text-decoration: underline;
    }
    
    #error {
        background: red;
        color: #fff;
    }
    
    .valid {
        border-radius: 5px;
        border: 2px solid green;
        box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
        outline: none;
        padding: 20px;
        -webkit-transition: .18s ease-out;
        -moz-transition: .18s ease-out;
        -o-transition: .18s ease-out;
        transition: .18s ease-out;
    }
    
    .valid:hover {
        box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .valid:focus {
        color: #4b515d;
        border: 2px solid green;
        box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
    }
    
    .not-valid {
        border-radius: 5px;
        border: 2px solid crimson;
        box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.2);
        outline: none;
        padding: 20px;
        -webkit-transition: .18s ease-out;
        -moz-transition: .18s ease-out;
        -o-transition: .18s ease-out;
        transition: .18s ease-out;
    }
    
    .not-valid:hover {
        box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
    }
    
    .not-valid:focus {
        color: #4b515d;
        border: 2px solid crimson;
        box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
    }

}