/* Basic resets */
html, body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px; /* Default font size for rem scaling */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: linear-gradient(135deg, rgb(71, 196, 231), rgb(91, 214, 217), rgb(45, 170, 246), rgb(106, 191, 218));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    justify-content: space-between;
}

/* Logo container styles */
.logo-container {
    position: absolute;
    top: 0.625rem; /* 10px */
    left: 1.25rem; /* 20px */
    text-align: left;
}

.logo {
    width: 9.375rem; /* 150px */
    height: auto;
}

.logo-text {
    margin-top: 0.3125rem; /* 5px */
    font-size: 1rem;
    color: #007BFF;
}

/* Container for form and content */
.container {
    background-color: rgba(244, 244, 244, 0.9);
    padding: 1.875rem; /* 30px */
    border-radius: 0.5rem; /* 8px */
    width: 60% !important; /* Force width to 90% of the screen */
    max-width: 43.75rem !important; /* 500px */
    margin: 3.125rem auto; /* 50px */
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.1); /* 15px */
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 1.25rem; /* 20px */
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem; /* 10px */
}

label {
    font-weight: bold;
    margin-top: 0.9375rem; /* 15px */
    font-size: 1rem;
    text-align: left;
    align-self: flex-start;
}

input[type="file"] {
    margin-bottom: 0.625rem; /* 10px */
}

button {
    margin-top: 1.25rem; /* 20px */
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 0.75rem; /* 12px */
    font-size: 1rem;
    border-radius: 0.25rem; /* 4px */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #7aa7d9;
    cursor: not-allowed;
}

.message {
    color: #007BFF;
    font-size: 1rem;
    margin-top: 1.25rem; /* 20px */
}

/* Footer styles */
footer {
    bottom: 0.625rem; /* 10px */
    right: 1.25rem; /* 20px */
    color: #000;
    text-align: center; /* Center the footer text */
    position: relative; /* Remove absolute positioning */
    margin-top: auto; /* Push to bottom */
    padding: 0.625rem; /* Add padding */
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1.25rem;
        padding: 1.25rem; /* 20px */
        width: 85% !important;
    }

    h1 {
        font-size: 1.5rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.625rem; /* 10px */
    }

    .logo-container {
        position: relative; /* Remove absolute positioning */
        text-align: center; /* Center align */
        margin: 0.625rem 0; /* Add spacing */
    }

    .logo {
        width: 6rem; /* Adjust size for mobile */
        height: auto;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    footer {
        bottom: 0.625rem;
        right: 1.25rem;
        text-align: center; /* Center the footer text */
    }
}
