/* Universal styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body styling with gradient background */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #000000 0%, #003366 100%);
}

/* Container for the forms */
.container {
    background: #fff;
    width: 100%;
    max-width: 400px; /* Adjust the maximum width */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title for the forms */
.form-title {
    font-size: 2em;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Grouping input and label */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Input field styling */
.input-group input {
    width: 100%;
    height: 40px;
    font-size: 1em;
    color: #333;
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Focused input field styling */
.input-group input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Label styling */
.input-group label {
    display: block;
    font-size: 0.875em;
    color: #666;
    margin-bottom: 0.25rem;
}

/* Error message styling */
.messageDiv {
    background-color: #dc3545;
    color: #fff;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 0.875em;
    display: none;
}

/* Button styling */
.btn {
    font-size: 1.1em;
    padding: 0.75rem;
    border-radius: 5px;
    outline: none;
    border: none;
    width: 100%;
    background: #007BFF;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button hover effect */
.btn:hover {
    background: #0056b3;
}

/* Recover password link styling */
.recover {
    text-align: right;
    margin-bottom: 1rem;
}

.recover a {
    color: #007BFF;
    text-decoration: none;
    font-size: 0.875em;
}

.recover a:hover {
    text-decoration: underline;
}

/* Links between forms */
.links {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    width: 100%;
    margin-top: 1rem;
}

.links p {
    margin: 0;
}

.links button {
    border: none;
    background: transparent;
    color: #007BFF;
    font-size: 1em;
    cursor: pointer;
}

.links button:hover {
    text-decoration: underline;
}

/* Media Queries for Responsive Design */

/* Styles for tablets and smaller screens */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 1.5rem;
    }

    .form-title {
        font-size: 1.5em;
    }

    .input-group input {
        height: 35px;
        font-size: 0.9em;
    }

    .btn {
        font-size: 1em;
    }
}

/* Styles for mobile phones */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    .form-title {
        font-size: 1.2em;
    }

    .input-group input {
        height: 30px;
        font-size: 0.8em;
    }

    .btn {
        font-size: 0.9em;
    }

    .recover a {
        font-size: 0.75em;
    }

    .links button {
        font-size: 0.875em;
    }
}
