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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    background-image: url("{% static 'images/loginback.jpg' %}");
    background-size: cover;
    background-position: center;
}

.container {
    display: flex;
    width: 70%;
    max-width: 1000px;
    height: 450px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left {
    background-color: #ffc815;
    width: 45%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.left img {
    height: 100px;
    margin-bottom: 20px;
}

.left h1 {
    font-family: 'Arial', sans-serif;
    color: #585858;
    font-size: 2rem;
    margin-bottom: 10px;
}

.left h3 {
    font-family: 'Arial', sans-serif;
    color: #585858;
    font-size: 1rem;
    margin-top: 0;
}

.right {
    background-color: #585858;
    width: 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    color: white;
    text-align: center;
}

.right h2 {
    font-family: 'Arial', sans-serif;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.input-field {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
}

.input-field:focus {
    outline: none;
    border: 2px solid #ffc815;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #ffc815;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    color: #585858;
    cursor: pointer;
}

.login-button:hover {
    background-color: #f7c300;
}

.alert-success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
.alert-error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.alert-warning { color: #856404; background-color: #fff3cd; border: 1px solid #ffeeba; }
.alert-info { color: #0c5460; background-color: #d1ecf1; border: 1px solid #bee5eb; }

/* Responsive Design Media Queries */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        height: auto;
        flex-direction: column;
        box-shadow: none;
    }

    .left, .right {
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    .left {
        background-color: #ffc815;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 0;
    }

    .right {
        background-color: #585858;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
        border-top-right-radius: 0;
    }

    .left img {
        height: 80px;
        margin-bottom: 10px;
    }

    .left h1 {
        font-size: 1.5rem;
    }

    .left h3 {
        font-size: 0.9rem;
    }

    .right h2 {
        font-size: 1.5rem;
    }

    .input-field {
        padding: 12px;
        font-size: 1rem;
    }

    .login-button {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
    }

    .left h1 {
        font-size: 1.3rem;
    }

    .left h3 {
        font-size: 0.8rem;
    }

    .right h2 {
        font-size: 1.3rem;
    }

    .right p {
        font-size: 0.9rem;
    }
}