html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    color: #3f4148;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    box-sizing: border-box;
    overflow-x: hidden;
    background-color: #0D1E1C; /* Page background color */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items towards the top */
    padding-top: 5%; /* Adjust padding to position the container higher */
}

.container {
    background-color: #f7f7f7; /* Container color */
    width: 90%;
    max-width: 600px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    text-align: left;
    border-radius: 0;
    box-sizing: border-box;
    position: relative;
    margin: 0 20px;
}

.logo {
    text-align: center;
    padding: 5px 0; /* Add padding to center the logo */
    background: transparent; /* Ensure no background color */
    position: relative;
    height: auto; /* Allow height to adjust based on content */
    width: 90%; /* Make logo width 90% of the grey line */
    margin: 0 auto 10px; /* Center the logo and add margin-bottom */
}

.logo img {
    max-width: 100%;
    height: auto;
}

hr {
    border: none;
    border-top: 2px solid #707070;
    width: 90%;
    margin: 10px auto 20px auto; /* Adjust margin for spacing */
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px; /* Use gap for consistent spacing between elements */
    margin-bottom: 15px;
}

input[type="text"], input[type="password"], button {
    width: 72%; /* 80% of the grey line's 90% width */
    height: 40px;
    padding: 10px;
    border: 1px solid #b0b0b0;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 0; /* Ensure sharp corners */
}

button {
    width: 72%; /* Same width as input boxes */
    height: 40px;
    padding: 10px;
    border: 1px solid #b0b0b0;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 0; /* Ensure sharp corners */
    background-color: #00693e;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

button:hover {
    background-color: #004f2a;
}

#error-message {
    color: red;
    visibility: hidden;
    text-align: center;
    margin-bottom: 15px;
}

.footer-text {
    text-align: center;
    color: #000000; /* Make copyright text black */
    font-size: 12px;
    margin-top: 20px;
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    html, body {
        justify-content: center; /* Center the container horizontally on mobile devices */
        align-items: center; /* Center the container vertically */
        padding-top: 0; /* Remove padding-top to center vertically */
    }

    body {
        font-size: 12px;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    .logo {
        padding: 10px 0; /* Adjust padding to center the logo on mobile */
        margin: 10px auto; /* Center the logo vertically within its container */
    }

    hr {
        width: 90%;
        margin: 20px auto; /* Adjust margin for spacing */
    }

    .input-group {
        width: 100%;
        gap: 15px; /* Ensure consistent spacing */
    }

    button {
        margin-top: 0; /* Ensure equal spacing between the password box and button */
    }

    .footer-text {
        font-size: 12px;
    }
}
