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

body, html {
    height: 100%;
    width: 100%;
    min-width: 360px;
    font-family: 'Poppins', sans-serif;
    background: url('/static/img/Maya_Background.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
    height: 100%;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    min-width: 250px;
    width: 100%;
    text-align: center;
}

.login-box h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.error-message {
    color: #d9534f;
    /* Bootstrap danger color for error */
    background-color: #f8d7da;
    /* Light red background */
    border: 1px solid #f5c6cb;
    /* Slightly darker red border */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
    /* Align the text to the left */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
}

.form-group input[type="checkbox"] {
    margin-right: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.btn.login {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #6a4cd8;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn.login:hover {
    background-color: #573bb3;
}

.signup-link {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.signup-link a {
    color: #6a4cd8;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Media Queries for Mobile Responsive Design */
@media (max-width: 768px) {
    body,
        html {
            height: 100%;
            width: 100%;
            font-family: 'Poppins', sans-serif;
            background: url('/static/img/Maya_Background.jpg') no-repeat bottom right;
            background-size: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #3800AB;
        }
    
    .container {
        padding: 20px;
        max-width: 420px;
        min-width: 300px;
        height: 100%;
    }

    .login-box {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .login-box img {
        max-width: 100%;
        min-width: 100px;
    }

    .login-box h2 {
        font-size: 1.5rem;
    }

    .login-box p {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        font-size: 0.9rem;
    }

    .btn.login {
        font-size: 0.9rem;
        padding: 10px;
    }

    .signup-link {
        font-size: 0.8rem;
    }
}