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

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

form {
    margin: 0 1rem;
}

.form-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    padding: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group i {
    position: absolute;
    color: #777;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

input {
    width: 100%;
    padding: 10px 40px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #333;
}

label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    transition: 0.3s ease all;
}

input:focus ~ label,
input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 12px;
    color: #333;
    background: #fff;
    padding: 0 5px;
}

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

.recover a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.recover a:hover {
    color: #000;
}

button {
    font-size: 1.1rem;
    padding: 10px 0;
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    background: #333;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background: #000;
}

.or {
    font-size: 1rem;
    margin: 1.5rem 0;
    text-align: center;
    color: #777;
    position: relative;
}

.or::before,
.or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #ddd;
}

.or::before {
    left: 0;
}

.or::after {
    right: 0;
}

.icons {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.icons i {
    color: #333;
    font-size: 1.5rem;
    margin: 0 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.icons i:hover {
    color: #000;
}

.links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.links p {
    margin-right: 10px;
    color: #777;
}

#signUpButton,
#signInButton {
    color: #333;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.messageDiv {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeOut 7s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    form {
        margin: 0;
    }

    .form-title {
        font-size: 1.5rem;
    }

    input {
        font-size: 14px;
    }

    .icons i {
        font-size: 1.2rem;
    }
}