html { direction: rtl; }
body:has(.standardframe) {
    background-image: url(/images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.standardframe {
    margin: 3rem auto;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: right;
    width: 16rem;          /* was 12rem — title wrapped */
    padding: 2rem;
}

.standardframe .title {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    white-space: nowrap;
}

.standardframe .inputlabelpair {
    margin-bottom: 0.8rem;
    /* override ems.css' .inputlabelpair { width: 49% } meant for 2-col forms */
    width: 100%;
}

.standardframe .inputlabelpair label {
    display: block;
    margin-bottom: 0.25rem;
}

.standardframe .inputlabelpair input {
    width: 100%;
    padding: 0.3rem;
    box-sizing: border-box;
}

/* Native-style button (legacy uses unstyled <asp:Button>).
   leopard.css' global input[type=button] makes ALL buttons chunky blue +
   margin-bottom 3rem. Override with explicit values inside .standardframe. */
.standardframe .loginbutton {
    margin: 1rem 0 0 0;
    padding: 0.3rem 1.5rem;
    cursor: pointer;
    background-color: buttonface;
    color: black;
    border: 1px solid #999;
    border-radius: 0.2rem;
    font-size: 1rem;
}

.standardframe .errorMessage {
    color: red;
    display: block;
    margin: 0.5rem 0;
}

.standardframe #passwordForgotten {
    margin-top: 0.5rem;
    color: blue;
    cursor: pointer;
    text-decoration: underline;
}
