* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}

body {
    background-color: #ffffff;
    background: linear-gradient(to right, #e2e2e2, #c9d6ff);
}

.main-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: hsl(0, 0%, 0%);
    margin-top: 2rem;
    margin-bottom: -1rem;
    font-family: "Poppins", sans-serif;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    animation: fadeInTitle 1s ease-out;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.container {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin: 70px auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.40);
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-3px);
}

form {
    margin: 0 2rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1.3rem;
    margin-bottom: 0.4rem;
}

.input-group {
    padding: 1% 0;
    position: relative;
}

.input-group i {
    position: absolute;
    color: black;
    left: 1px;  /* Adjust the position of the icon */
    top: 50%;
    transform: translateY(-50%);  /* Center the icon vertically */
}

input, select {
    color: inherit;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #757575;
    padding-left: 2.5rem;  /* Add space for the icon */
    padding-right: 1rem;  /* Add space to the right */
    font-size: 15px;
    height: 40px;
}

select {
    height: 40px;  /* Match the height with the input field */
}

input:focus, select:focus {
    background-color: transparent;
    outline: transparent;
    border-bottom: 2px solid hsl(0, 100%, 50%);
}

input::placeholder, select::placeholder {
    color: transparent;
}

label {
    color: #000000;
    position: relative;
    left: 1.2em;
    top: -1.3em;
    cursor: auto;
    transition: 0.3s ease all;
}

input:focus~label, input:not(:placeholder-shown)~label,
select:focus~label {
    top: -3em;
    color: hsl(0, 100%, 50%);
    font-size: 15px;
}

.recover {
    text-align: right;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.recover a {
    text-decoration: none;
    color: rgb(255, 0, 0);
}

.recover a:hover {
    color: blue;
    text-decoration: underline;
}

button {
    font-size: 1.1rem;
    padding: 8px 0;
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    background: rgb(0, 0, 0);
    color: white;
    cursor: pointer;
    transition: 0.9s;
}

button:hover {
    background: #ffffff;
    color: rgb(0, 0, 0);
    border: 2px solid #000000;
}

.or {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-align: center;
}

.icons {
    text-align: center;
}

.icons i {
    color: rgb(0, 0, 0);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid #dfe9f5;
    margin: 0 15px;
    transition: 1s;
}

.icons i:hover {
    background: #ffffff;
    font-size: 1.6rem;
    border: 2px solid rgb(0, 0, 0);
}

.links {
    display: flex;
    justify-content: space-around;
    padding: 0 4rem;
    margin-top: 0.9rem;
    font-weight: bold;
}

#signUpButton, #signInButton {
    color: rgb(255, 0, 0);
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: bold;
}

#signUpButton:hover, #signInButton:hover {
    text-decoration: underline;
    color: blue;
}

.messageDiv {
    background-color: hsl(327, 90%, 28%);
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    font-size: 1rem;
    opacity: 0;
    animation: fadeOut 7s forwards;
}
