html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.black-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

.white-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}
.login-container {
    background-color: black;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.golden-textfield {
    background-color: black;
    color: goldenrod;
    border: 2px solid goldenrod;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    width: 200px;
}

.golden-button {
    background-color: goldenrod;
    color: black;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
}
.image-container {
    width: 200px; /* Adjust as per your requirement */
    height: auto; /* Allows image to scale proportionally */
}
.image-container img {
    width: 100%; /* Ensures the image takes the full width of its container */
    height: auto; /* Allows image to scale proportionally */
    display: block; /* Removes default image spacing */
}

/* ===== Global responsive safety net (Req 1) =====
   Non-destructive rules: keep media (images/video) fluid and prevent
   fixed-width elements from forcing horizontal page scroll on phones. */
img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .login-container {
        width: 92%;
        max-width: 360px;
        box-sizing: border-box;
    }
    .golden-textfield {
        width: 100%;
        max-width: 260px;
        box-sizing: border-box;
    }
    /* tables inside user pages scroll instead of breaking the layout */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

