.login {
    background-color: #333;
    display: grid;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: auto;
}

.login-wrapper {
    width: 100%;
    max-width: 600px;
    /* Adjust width as necessary */
    margin: 10% auto;
    /* Center the form on the page */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000000;
    /* Background color for the form */
    border-radius: 50%;
    /* Creates a circle */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Soft shadow for 3D effect */
    transition: all 0.3s ease;
    overflow: hidden;
    /* Ensures no overflow outside the circle */
    height: 600px;
    /* Match width for perfect circle */
    min-height: 300px;
    min-width: 300px;
}

@media (max-width: 1024px) {

    .login-wrapper {
        height: 100vw;
        /* Set height equal to the viewport width */

        max-height: 90vw;
        /* Keep height equal to max-width */
        min-height: 90vw;
        /* Minimum height matches the minimum width */

        margin: 20% auto;
    }

    .login {
        padding: 15% 5%;

    }

    .login form {
        width: 100%;
        padding: 5% 10% 10% 10%;
    }

    .login-wrapper {
        border-radius: 5px;
        height: 100%;
        /* Set height equal to the viewport width */

        max-height: 100%;
        /* Keep height equal to max-width */
        min-height: 100%;
        /* Minimum height matches the minimum width */

        padding: 20px;
        margin: 0;
    }

    .login-wrapper h2 {
        margin-top: 0;
        margin-bottom: 20px;
        color: #ffffff;

    }

    .form-group {
        display: flex;
        flex-direction: column;
        align-items: start;
        width: 100%;
    }

    .form-group label {
        font-size: 1.1rem;
        /* Responsive font size */
        color: #b4b4b4;
        margin-bottom: 5px;
    }

    .form-control {
        width: 80%;
        /* Responsive width */
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 20px;
        /* Rounded edges for inputs */
        margin-bottom: 10px;
        /* Space between form inputs */
    }

    .btn {
        padding: 10px 20px;
        margin-top: 10px;
        border-radius: 5px;
        /* Rounded button */
        border: none;
        background-color: #007BFF;
        color: white;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

    .btn:hover {
        background-color: #0056b3;
    }

    .alert {
        color: #721c24;
        background-color: #f8d7da;
        border-color: #f5c6cb;
        padding: 10px;
        width: 80%;
        text-align: center;
        border-radius: 20px;
        margin-bottom: 10px;
    }
}

/* Responsive adjustments for tablets and mobiles */
@media (max-width: 768px) {
    .login-wrapper {
        height: 100vw;
        /* Set height equal to the viewport width */
        max-height: 90vw;
        /* Keep height equal to max-width */
        min-height: 90vw;
        /* Minimum height matches the minimum width */

        margin: 20% auto;
    }
}



.login {
    padding: 5%;

}

.login form {
    width: 100%;
}

.login-wrapper {
    border-radius: 15px;
    height: 100%;
    /* Set height equal to the viewport width */

    max-height: 100%;
    /* Keep height equal to max-width */
    min-height: 100%;
    /* Minimum height matches the minimum width */

    padding: 25px;
    margin: 0;
}

.login-wrapper h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;

}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    margin-bottom: 10px;
}

.username {
    margin-bottom: 10px;
}

.form-group:last-child {
    align-items: center;
}

.form-group label {
    font-size: 1.1rem;
    /* Responsive font size */
    color: #b4b4b4;
    margin-bottom: 5px;
}

.form-control {
    width: 80%;
    /* Responsive width */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    /* Rounded edges for inputs */
    margin-bottom: 10px;
    /* Space between form inputs */
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    /* Rounded button */
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.alert {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    width: 80%;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 10px;
}

.log {
    padding: 10%;
}

@media (max-width: 768px) {
    .login form {
        padding: 0;
        width: 100%;
    }

    .login {
        background-color: #333;
        display: grid;
        justify-items: center;
        align-items: center;
        width: 100%;
        height: auto;
        padding: 5%;
    }

    .login-wrapper {
        height: 100%;
    }

    .login-wrapper {
        max-width: 600px;
        margin: 10% auto;
        padding: 20px;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        min-height: 300px;
        min-width: 300px;
    }
}