:root{
    --alert_width: 300px;
    background: #f4f4f4
}
body{
    margin:0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    z-index: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size:13px;
    height: 100%;
    width: 100%;
    background: rgb(139, 26, 96);
    }

#login_box {
    background: white;
    position: relative;
    width:400px;
    height:400px;
    /* min-width:250px;
    min-height:280px; */
    top: 150px;
    padding: 5px 30px 30px 30px ;
    display: block;
    text-align: center;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    box-sizing: border-box;
    margin: auto;
    font-size: 1.8em;
}   

#login_box h1{
    font-size: 1.8em;
    border-bottom: 1px solid #eee;
    margin: 20px 0;
    width: 100%;
}

#login_box input{
    width: 100%;
    padding: 5px;
    margin: 3px auto;
    min-height: 30px;
    border-radius: 4px;
}

#login_box img{
    width: 100px;
    height: 100px;
}

#login_box #login_error{
    background-color:red;
    width: 100%;
    color: white;
    margin: 3px auto;
    min-height: 30px;
    border-radius: 4px;
}

#login_form button{
    color: rgb(232,195,42);
    background: rgb(139, 26, 96);
    padding: 5px;
    margin: 3px auto;
    width: 100%;
    height: 60px;
    border-radius: 4px;
    border: 0px;
    margin-top: 15px;
}

#login_form button:hover{
    background: rgb(189, 32, 129);
    /* background: #BC2081;
    background: #3498db; */
}

.alert{
    background: green;
    position: absolute;
    left: calc(100% - var(--alert_width));
    top: 0px;
    width: var(--alert_width);
    height: 50px;
    padding: 10px;
    margin: auto;
    text-align: center;
    font-size: 2em !important;
    font-weight: bold !important;
    color: white !important; 
    border-radius: 15px;
    display: none;
    animation: alert_popup .5s backwards;
}


@keyframes alert_popup {
    from{
        opacity: 0;
        transform: translateY(-50px);
        /* width: 0; */
    }
    to{
        opacity: 1;
        transform: translateY(0px);
        /* width: var(--alert_width); */
    }
}
@keyframes alert_popout {
    from{
        opacity: 1;
        transform: translateY(0px);
        /* width: var(--alert_width); */
    }
    to{
        opacity: 0;
        transform: translateY(-50px);
        /* width: 0; */
    }

}

@media (max-width: 640px) {
    #login_box {
        top: 50px;
        width: 80%;
        max-height: 85%;
    }

    #login_box h1{
        font-size: 2em;
        border-bottom: 1px solid #eee;
        margin: 20px 0;
    }
    
    #login_box input{
        width: 100%;
        padding: 10px;
        margin: 10px auto;
        min-height: 20px;
        height: 50px;
        border-radius: 4px;
    }
    
    #login_box img{
        width: 100px;
        height: 100px;
    
    }
    
    #login_box #login_error{
        background-color:red;
        width: 100%;
        color: white;
        margin: 3px auto;
        min-height: 30px;
        border-radius: 4px;
    }
    
    #login_form button{
        color: rgb(232,195,42);
        background: rgb(139, 26, 96);
        padding: 15px;
        margin: 15px auto;
        width: 100%;
        height: 50px;
        border-radius: 10px;
        border: 0px;
        margin-top: 20px;
    }
    
    #login_form button:hover{
        background: rgb(189, 32, 129);
    
    }

    .alert{
        background: green;
        position: absolute;
        left: calc(100% - 300px);
        top: 0px;
        width: 300px;
        height: 50px !important;
        padding: 10px;
        margin: auto;
        text-align: center;
        font-size: 2em !important;
        font-weight: bold !important;
        color: white !important; 
        border-radius: 20px;
        display: none;
        animation: alert_popup .5s backwards;
    }
};
/* @media (max-height: 600px) {
    #login_box {
        height: 80% !important;
    }
}; */