* {
    box-sizing: border-box;
}

body {
    background-color: #569bbe;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

label {
    color: white;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.msg-box {
    z-index: 200;
    position: fixed;
    width: 15%;
    margin: auto;
}

.main-login-form {
    max-width: 500px;
    max-height: 400px;
    margin: auto;
    background: #014694;
    padding: 20px 45px 20px 25px;
    border-radius: 10px;
}

input[type='password'],
input[type='text'] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
}

input[type='password']:focus,
input[type='text']:focus {
    border: 1px solid #5db6db;
    box-shadow: 0 0 10px #b9eaff;
    outline: none !important;
}

.logbtn {
    background: rgb(39, 160, 210);
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    display: block;
    margin-right: auto;
    margin-left: auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.logbtn:hover {
    background: rgb(15, 120, 165);
}

.name {
    margin: 1.2rem;
    color: white;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

/* form errors and request messages and alerts */
.messages {
   
    list-style: none;
    justify-content: center;
    text-align: center;
    animation: hideMe 6s forwards;
}

.alert {
    margin-top: 0;
    font-size: 1rem;
    font-weight: bold;
    padding: 1rem;
    border-radius: 5px;
}

.alert-error {
    background-color: #e61414;
    border-color: #ebcccc;
    color: white;
}

.alert-success {
    background-color: #16c722;
    border-color: #ebcccc;
    color: white;
}

.alert-info {
    background-color: #0d6ec8;
    border-color: #ebcccc;
    color: white;
}

.alert-warning {
    background-color: #eefa0d;
    border-color: #ebcccc;
    color: black;
}

@keyframes hideMe {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

/* end of form errors and request messages and alerts */

/* media queries  */
@media(max-width: 500px) {

.main-login-form {
    max-width: 50rem;
    height: 30rem;
}

.msg-box {
    width: 50%;
}

}
