/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden; /* Prevents scrolling */
}

/* Overlay for the form */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Form Container */
.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 320px;
    animation: slideIn 0.7s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center elements inside the form */
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 20px;
}

.header-logo img {
    margin-right: 10px;
}

.header-logo h2 {
    font-size: 22px;
    color: #333;
}

.form-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    text-align: center; /* Center the heading text */
}

.form-label {
    display: block;
    width: 100%; /* Make labels full width */
    margin-bottom: 15px;
    color: #555;
}

.form-label span {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #333;
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.2);
    outline: none;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.submit-button:active {
    background-color: #1e7e34;
    transform: translateY(0);
}

.form-footer {
    font-size: 14px;
    color: #666;
    text-align: center; /* Center align the paragraph text */
}

.form-footer .login-link {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer .login-link:hover {
    color: #218838;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
