/* General Styles */
html, body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    flex: 1; 
    display: flex;
    flex-direction: column;
    width: 100%;
}


/* Header */
header {
    background: #333;
    color: #fff;
    padding: 40px 15px;
    text-align: center;
    width: 100%;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header .logo {
    position: absolute;
    top: 20px;
    left: 15px;
    width: 80px;
}

/* Main Section */
main {
    flex: 1; 
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 0; 
    margin: 0; 
    box-sizing: border-box; 
}


/* Form Container */
.form-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #333;
    margin: 10px;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.form-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="email"],
.form-container select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

.form-container input[type="checkbox"] {
    margin-right: 10px;
}

/* Buttons */
button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0a9478;
}

/* Links */
.links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 1rem;
    flex-wrap: wrap;
}

.links a {
    color: #007bff;
    text-decoration: none;
    margin: 5px 10px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #0056b3;
}

/* Messages */
.message-container {
    margin-top: 20px;
    font-size: 1rem;
}

.message.success {
    color: #5cb85c;
}

.message.error {
    color: #d9534f;
}

.message.info {
    color: #17a2b8;
}

/* Hidden Elements */
.hidden {
    display: none;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .logo {
        width: 40px;
        top: 15px;
        left: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .form-container {
        max-width: 90%;
    }

    button {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    .form-container {
        padding: 15px;
    }

    button {
        font-size: 0.8rem;
        padding: 8px;
    }

    .links {
        flex-direction: column;
    }

    .links a {
        margin: 5px 0;
    }
}
