/* Background styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #fcfcfd; /* Rich dark purple */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Standard container */
.container {
    text-align: center;
    padding: 30px;
    background-color: #2E1C62; /* Muted lavender */
    border-radius: 12px; /* Slightly smaller rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    width: 420px; /* Reduced size */
    max-width: 90%;
}
/* Background Image */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes the image cover the container */
    z-index: -1; /* Places the image behind the content */
}

/* Standard modal content */
.modal-content {
    background-color: rgba(255, 255, 255, 0.1); /* Light translucent background */
    padding: 20px;
    border-radius: 8px;
    width: 270px;
    max-width: 90%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 4px 6px rgba(255, 255, 255, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Logo */
.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

/* Dorm name */
.dorm-name {
    color: #ffffff;
    font-size: 2.5rem; /* Slightly smaller font */
    margin: 0;
    margin-bottom: 20px; /* Reduced margin */
}

/* Button */
.button {
    display: block;
    margin: 15px auto;
    padding: 12px 25px;
    font-size: 16px; /* Smaller font size */
    color: #ffffff;
    background: #006A8E;
    border: none;
    border-radius: 8px; /* Subtle roundness */
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.button:hover {
    background: #005D75;
    transform: scale(1.03);
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: white;
}

/* Input Fields */
input[type="text"],
input[type="password"] {
    width: 95%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Submit Button */
.submit-btn {
    background: #006A8E;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background: #005D75;
}

/* Loader Overlay */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.loader {
    width: 50px;
    height: 50px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
