/* Base styles for the form and its container */
.parent {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

form {
    background-color: #f7ccac;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.062);
    border-radius: 10px;
    position: relative;
}

.form_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.062);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Background styling */
.form_main::before {
    position: absolute;
    content: "";
    width: 200px;
    height: 200px;
    background-color: rgb(209, 193, 255);
    transform: rotate(45deg);
    left: -100px;
    bottom: -100px;
    z-index: 1;
    border-radius: 50%;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.082);
}

/* Heading styling */
.heading {
    font-size: 1.5em;
    color: #2e2e2e;
    font-weight: 700;
    margin: 10px 0;
    z-index: 2;
}

/* Input container styling */
.inputContainer {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    z-index: 2;
}

.inputIcon {
    position: absolute;
    left: 10px;
    color: #2e2e2e;
}

.inputField {
    width: calc(100% - 40px); /* Adjust to account for icon */
    height: 40px;
    background-color: transparent;
    border: 2px solid rgb(173, 173, 173);
    border-radius: 5px;
    color: black;
    font-size: 1em;
    padding-left: 40px;
    box-sizing: border-box;
}

.inputField:focus {
    outline: none;
    border-color: rgb(199, 114, 255);
}

.inputField::placeholder {
    color: rgb(80, 80, 80);
    font-size: 1em;
}

/* Button styling */
#button {
    width: 100%;
    border: none;
    background-color: rgb(162, 104, 255);
    height: 40px;
    color: white;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
}

#button:hover {
    background-color: rgb(126, 84, 255);
}

/* Forgot link styling */
.forgotLink {
    font-size: 0.9em;
    font-weight: 500;
    color: rgb(44, 24, 128);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
}

/* Error message styling */
.invalid-text {
    font-size: 0.9em;
    color: red;
    margin-top: 10px;
}
.inputField {
    width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
    .form_main {
        width: 90%;
        padding: 15px;
    }
    
    .inputField {
        width: 100%;
        font-size: 0.9em;
        height: 35px;
    }
    
    #button {
        height: 35px;
        font-size: 0.9em;
    }
    
    .heading {
        font-size: 1.2em;
    }
}
