@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body{
    background: url(images/makazi.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: rgba(255, 255, 255, 0.353);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); 
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 70%;
    max-width: 900px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80vh;
    min-height: 450px; 
    box-sizing: border-box; 
}

.log-in form{
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin-right: 50px;

    a{
        text-decoration: 0;
        color: #540891;
        font-weight: 700;
        margin-bottom: 20px;
    }

    p{
        margin-top: 20px;
    }

    label{
        color: #540891;
        font-size: 15px;
    }

    #submit{
        background-color: #540891;
        color: #fff;
        font-size: 20px;
        font-weight: 500;
    }

    select{
        align-self: center;
        margin-bottom: 10px;
        border: 0;
        outline: 0;
        width: 50%;
        padding: 10px;
        margin-left: 100px;
        border-radius: 20px;
    }

    option{
        background-color: #540891;
        border-radius: 20px;
        color: #fff;
    }
}

input {
    width: 100%; 
    max-width: 100%; 
    padding: 11px 15px; 
    border-radius: 20px;
    outline: 0;
    border: 2px solid #540891;
    background-color: rgba(255, 255, 255, 0.8);
    color: #1e1e2f;
    font-size: 14px;
    box-sizing: border-box; 
    margin-bottom: 5px; 
    transition: all 0.2s ease;
}


input:focus {
    border-color: #3b0566;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(84, 8, 145, 0.2);
}


.alert-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: slideDown 0.3s ease-out; 
}

/* msg */
.error-alert {
    background-color: #fff5f5;
    border: 1px solid #eacffc;
    color: #540891;
}

.alert-icon {
    font-size: 16px;
}

.alert-text {
    flex-grow: 1;
    line-height: 1.4;
}

.alert-box {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 10px;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media only screen and (max-width: 800px){
     .login-container {
        flex-direction: column; 
        width: 92%;
        height: auto; 
        min-height: unset;
        padding: 30px 20px; 
        gap: 25px; 
    }

    .log-in-form {
        max-width: 100%; 
    }
    
    .log-in-form select {
        padding: 12px; 
    }

     input {
        padding: 12px 15px; 
        font-size: 15px; 
    }

    .log-in-pre{
        img{
            width: 100px;
        }
    }
}
