/* Sky + card layout for admin/login.html and the pages extending it */
body.login {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #0b87d1 0%, #2fa3e0 45%, #8fcdf0 78%, #e9f6fd 100%) fixed;
    color: #3c3c3c;
    font-family: var(--font-family-primary);
    font-weight: 400;
}
body.login #container {
    background: none;
    border: none;
    margin: 0;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.login #main {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}
body.login #content {
    --body-fg: #333;  /* the card stays light in dark mode */
    background: #fff;
    border-radius: 20px;
    padding: 2.4rem 1.8rem 2rem;
    margin: 0;
}
body.login #content-main { float: none; width: auto; }
.lr-logo { display: block; height: 46px; margin: 0 auto 1.6rem; }

body.login #content h1, body.login #content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.4rem;
    padding: 0;
    background: none;
    text-transform: none;
    letter-spacing: normal;
}
body.login #content p { color: #6f6f73; font-size: 0.9rem; line-height: 1.75; }
body.login #content label { color: #333; font-weight: 600; font-size: 0.85rem; }

body.login #content input:where(:not([type=submit], [type=hidden], [type=checkbox])) {
    width: 100%;
    height: auto;
    margin: 0;
    box-sizing: border-box;
    border: 1.5px solid #c9c9cd;
    border-radius: 4px;
    padding: 0.8rem 0.9rem;
    font: inherit;
    font-size: 1.05rem;
    color: #333;
    background: #fff;
    outline: none;
}
body.login #content input:focus { border-color: #0b8fd6; }

/* label sits on the input border, as in the design */
.lr-field { position: relative; margin-top: 1.4rem; }
.lr-field label {
    position: absolute;
    top: -0.72rem;
    left: 0.75rem;
    padding: 0 0.35rem;
    background: #fff;
}

body.login #content .errorlist, body.login #content .errornote, body.login #content .error {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    border: none;
    background: none;
    color: #c62828;
    font-weight: 400;
    font-size: 0.88rem;
    line-height: 1.5;
}

body.login .submit-row { padding: 0; margin: 0; border: none; background: none; text-align: left; }
body.login #content input[type=submit], body.login #content .button {
    display: block;
    width: 100%;
    height: auto;
    margin: 1.8rem 0 0;
    padding: 0.85rem 1rem;
    border: 2px solid #ec008c;
    border-radius: 4px;
    background: #ec008c;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    cursor: pointer;
}
body.login #content input[type=submit]:hover, body.login #content .button:hover { background: #c80077; border-color: #c80077; }
body.login #content form:invalid input[type=submit], body.login #content form:invalid .button {
    background: #b4b4b8;
    border-color: #b4b4b8;
    color: rgba(255, 255, 255, 0.85);
}

body.login #content a:link, body.login #content a:visited { color: #ec008c; font-weight: 600; }
.lr-link { display: block; margin-top: 1rem; text-align: center; font-size: 0.9rem; }
/* Microsoft SSO (dev2), secondary to the pink sign in */
.lr-or { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.2rem; color: #6f6f73; font-size: 0.8rem; }
.lr-or::before, .lr-or::after { content: ""; flex: 1; border-top: 1px solid #e3e3e6; }
body.login #content a.lr-ms { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-top: 1.2rem; padding: 0.75rem 1rem; border: 1.5px solid #c9c9cd; border-radius: 4px; background: #fff; color: #333; font-weight: 600; text-decoration: none; }
body.login #content a.lr-ms:hover { border-color: #0b8fd6; background: #f7fbfe; }

.lr-clouds { position: fixed; left: 0; bottom: 0; width: 100%; height: 140px; z-index: -1; pointer-events: none; }
