/* From Uiverse.io by yashasvi9199 */
body {
    background-color: blueviolet;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1.5em;
    background-color: #171717;
    border-radius: 20px;
    transition: 0.4s ease-in-out;
}

.card {
    background-image: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
    border-radius: 22px;
    transition: all 0.3s;
    max-width: 400px; /* Restrict width to make it compact */
    margin: 0 auto; /* Center the form horizontally */
    margin-top: 50px;
}

.card2 {
    border-radius: 0;
    transition: all 0.2s;
}

.card2:hover {
    transform: scale(0.98);
    border-radius: 20px;
}

.card:hover {
    box-shadow: 0px 0px 30px 1px rgba(0, 255, 117, 0.3);
}

#heading {
    text-align: center;
    margin: 2em; 
    color: rgb(255, 255, 255);
    font-size: 1.2em;
}

.field {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-radius: 25px;
    padding: 0.6em;
    border: none;
    outline: none;
    color: white;
    background-color: #171717;
    box-shadow: inset 2px 5px 10px rgb(5, 5, 5);
}

.input-icon {
    height: 1.3em;
    width: 1.3em;
    fill: white;
}

.input-field {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    color: #d3d3d3;
}

.form .btn {
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: 2.5em; 
}

.button1{
    padding: 0.5em;
    border-radius: 5px;
    margin-right: 0.5em;
    border: none;
    outline: none;
    transition: 0.4s ease-in-out;
    background-color: #252525;
    color: white;
}

.button1:hover{
    background-color: black;
    color: white;

}
.flash-message {
    text-align: center;
}
.flash-message.danger {
    color: #dc3142;
}

/* Optional: Add media queries for mobile responsiveness */
@media (max-width: 480px) {
    .form {
        padding: 1em;
        max-width: 100%;
    }

    #heading {
        font-size: 1.1em;
    }

    .button1{
        padding: 0.4em;
        font-size: 0.9em;
    }

    .field {
        padding: 0.4em;
    }
}
