* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: #160f0b;
}

.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #160f0b;
}

/* Preserve the original 16:9 proportions.
   Anchor the artwork at the top so the Horsemen stay visible.
   Any excess height is cropped from the bottom. */
.scene-stage {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max(100vw, calc(100dvh * 1672 / 941));
    aspect-ratio: 1672 / 941;
    container-type: inline-size;
    background: #160f0b url('../assets/homepage-approved.jpg')
                center top / 100% 100% no-repeat;
}

#entrance-form {
    position: absolute;
    inset: 0;
    margin: 0;
}

#entrance-form input {
    position: absolute;
    left: 33%;
    width: 32.5%;
    height: 7.7%;
    padding: 0 3.6%;
    color: #ead8b8;
    background: transparent;
    border: 0;
    border-radius: 6px;
    outline: none;
    font: 1.55cqw Georgia, serif;
}

#entrance-form input::placeholder {
    color: #d0b991;
    opacity: 1;
}

#entrance-form input:focus {
    box-shadow: inset 0 0 0 2px rgba(202,154,96,.7);
}

#entrance-form .user-input {
    top: 52.8%;
}

#entrance-form .password-input {
    top: 62.8%;
}

#entrance-form button {
    position: absolute;
    left: 34%;
    top: 73%;
    width: 31.9%;
    height: 9.2%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #f0dfbd;
    font: 700 1.72cqw Georgia, serif;
    letter-spacing: .28em;
    cursor: pointer;
}

#entrance-form button:focus-visible {
    outline: 2px solid #dfb47a;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Leave the denied page alone. */
.denied-page {
    min-height: 100vh;
    overflow: hidden;
    background: #050404;
}

.denied-art {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    background: url('../assets/denied.jpg') center top / cover no-repeat;
}

@media (max-width: 700px) {
    #entrance-form input {
        font-size: 2cqw;
    }

    #entrance-form button {
        font-size: 2.2cqw;
    }
}
