/* ==========================================================================
   LOGIN PAGE
   Layout adapted from the "Blur Login" CodePen
   (https://codepen.io/EcxalCar12/pen/RwNOydr) - glass panel over a
   full-bleed background. Only used by login.php.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Heebo', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #05070f; /* fallback if the image is missing */
    background-image: url('../plugins/bootstrap/img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* The panel from the pen, namespaced so it can never leak into another page. */
.login-window {
    width: 400px;
    max-width: calc(100vw - 32px);
    min-height: 380px;
    padding: 40px;
    text-align: center;
    border: 1px solid white;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    -webkit-backdrop-filter: blur(20px) brightness(200%);
    backdrop-filter: blur(20px) brightness(200%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

.login-window__title {
    display: block;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 4px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.login-window__subtitle {
    display: block;
    margin-bottom: 22px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
}

.login-window form {
    width: 100%;
}

.login-window label {
    display: block;
    text-align: left;
    margin: 14px 2px 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255, 255, 255, .82);
}

.login-window input[type="text"],
.login-window input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border-radius: 8px;
    border: 1px solid white;
    color: #fff !important;
    background: transparent;
    outline: none;
}

.login-window input[type="text"]::placeholder,
.login-window input[type="password"]::placeholder {
    color: rgba(255, 255, 255, .65);
}

.login-window input[type="text"]:focus,
.login-window input[type="password"]:focus {
    background: rgba(0, 0, 0, .25);
    box-shadow: none;
    border: 1px solid white;
}

.login-window input[type="submit"] {
    width: 100%;
    margin-top: 22px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    color: #16323f;
    background: #fff;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    font-family: inherit;
    letter-spacing: .6px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-window input[type="submit"]:hover {
    background: #CEE2D2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.login-window input[type="submit"]:active {
    transform: translateY(1px);
}

.login-window__error,
.login-window__debug {
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    line-height: 1.45;
}

.login-window__error {
    background: rgba(179, 38, 30, .35);
    border: 1px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.login-window__debug {
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #FFE9A8;
    font-size: 11px;
}

.login-window__debug pre {
    margin: 6px 0 0;
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
}

.login-credit {
    margin: 18px 0 0;
    font-size: 11.5px;
    letter-spacing: .3px;
    color: rgba(255, 255, 255, .55);
    text-align: center;
}

.login-credit a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.login-credit a:hover {
    color: #fff;
    text-decoration: underline;
}

/* The panel is a fixed 380px tall on the pen; on short screens (phones in
   landscape) let it shrink instead of clipping the fields. */
@media (max-height: 560px) {
    body {
        align-items: flex-start;
        padding: 20px 0;
    }

    .login-window {
        min-height: 0;
        padding: 26px 28px;
    }
}
