/* Login Page Style v1.0: only affects the login page (and its password pages) */

/* Full-window photograph */
#UICenter.LoginPage.slideshow-enabled {
    display: flex !important;
    align-items: center;
    position: relative;
    min-height: 100vh;
    background: #0d0f12;
}
#UICenter.LoginPage.slideshow-enabled > #login-slideshow {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0;
}
#UICenter.LoginPage.slideshow-enabled .login-slide {
    inset: 0 !important;
}
#UICenter.LoginPage.slideshow-enabled > #login-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 10, 14, 0.72) 0%, rgba(8, 10, 14, 0.35) 38%, rgba(8, 10, 14, 0) 65%);
}

/* The login column */
#UICenter.LoginPage.slideshow-enabled > #CentralSpaceLogin {
    position: relative;
    z-index: 1;
    width: 380px !important;
    margin: 0 0 0 7vw !important;
    padding: 48px 0 !important;
    overflow: visible !important;
    background: none !important;
    color: #fff;
}

/* Logo in white */
#UICenter.LoginPage #CentralSpaceLogin img:not(#login_box img) {
    filter: brightness(0) invert(1);
    opacity: 0.95;
    max-width: 260px;
    height: auto;
}

/* Frosted-glass box */
#UICenter.LoginPage #login_box {
    background: rgba(18, 20, 26, 0.55) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35) !important;
    padding: 32px !important;
    color: #fff !important;
}
#UICenter.LoginPage #login_box label,
#UICenter.LoginPage #login_box h1,
#UICenter.LoginPage #login_box p {
    color: #fff;
}
#UICenter.LoginPage #login_box label {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Fields */
#UICenter.LoginPage #login_box input[type="text"],
#UICenter.LoginPage #login_box input[type="email"],
#UICenter.LoginPage #login_box input[type="password"] {
    background: rgba(255, 255, 255, 0.94) !important;
    color: #111 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    min-height: 44px;
    box-shadow: none !important;
}
#UICenter.LoginPage #login_box input[type="text"]:focus,
#UICenter.LoginPage #login_box input[type="email"]:focus,
#UICenter.LoginPage #login_box input[type="password"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9) !important;
    outline-offset: 2px;
}

/* Button */
#UICenter.LoginPage #login_box input[type="submit"],
#UICenter.LoginPage #login_box button[type="submit"] {
    width: 100%;
    min-height: 46px;
    background: #fff !important;
    color: #111 !important;
    border: 0 !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease;
}
#UICenter.LoginPage #login_box input[type="submit"]:hover,
#UICenter.LoginPage #login_box button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* Links */
#UICenter.LoginPage #CentralSpaceLogin a,
#UICenter.LoginPage #CentralSpaceLogin .login-links a {
    color: rgba(255, 255, 255, 0.85) !important;
}
#UICenter.LoginPage #CentralSpaceLogin a:hover {
    color: #fff !important;
}

/* Hide time zone, language and footer */
#UICenter.LoginPage #CentralSpaceLogin div:has(> select),
#UICenter.LoginPage #CentralSpaceLogin .Question:has(select),
#UICenter.LoginPage #login-footer,
#UICenter.LoginPage #CentralSpaceLogin #Footer {
    display: none !important;
}

/* Phones and small tablets: photograph behind, box centred */
@media (max-width: 768px) {
    #UICenter.LoginPage.slideshow-enabled {
        justify-content: center;
    }
    #UICenter.LoginPage.slideshow-enabled > #CentralSpaceLogin {
        width: calc(100% - 32px) !important;
        max-width: 420px;
        margin: 0 auto !important;
        order: 0;
    }
    #UICenter.LoginPage.slideshow-enabled .login-slide {
        position: absolute !important;
        height: auto !important;
        visibility: visible !important;
    }
    #UICenter.LoginPage.slideshow-enabled > #login-slideshow::after {
        background: rgba(8, 10, 14, 0.45);
    }
}
