/* General page styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    overflow: hidden; /* Hide scrollbars on the body */
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 95%; /* Ensure the container takes up 95% of the available width */
    max-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    height: auto; /* Allow the height to adjust based on content */
    overflow-y: auto; /* Add vertical scrolling if needed */
    display: block; /* Ensure container content is fully visible */
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    margin-top: 0; /* Remove default margin */
    font-size: 1.5em;
    line-height: 1.2; /* Ensure the heading doesn't overflow */
}

.form-group {
    margin-bottom: 15px;
    width: 100%; /* Ensure form group takes up 100% of the container's width */
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.9em; /* Slightly smaller label to save space */
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    width: 100%; /* Ensure inputs take full width of form group */
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin: 0; /* Remove default margin */
}

.show-password {
    margin-top: 5px;
    font-size: 12px;
}

.submit-btn {
    width: 100%; /* Ensure submit button takes up 100% of the container's width */
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin-top: 15px; /* Ensure there is space above the button */
}

    .submit-btn:hover {
        background-color: #45a049;
    }

.message {
    text-align: center;
    margin-bottom: 15px;
    color: red;
    font-size: 0.9em; /* Smaller message text */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 8px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"] {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .submit-btn {
        font-size: 14px;
        padding: 8px;
    }

    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"] {
        padding: 8px;
        font-size: 12px;
    }
}
