/* The login page (login.asp): a glass panel over the live city (JavaScript/login.js, City3D/city3d.js in showcase mode). */
#login-content, #login-content input, #login-content button,
#login-content select, #login-content label, #login-content a {
    font-family: 'MuliRegular', helvetica, arial, sans-serif;
}

/* The scene: the blurred picture first, the 3D city fading in over it once drawn. */
#login-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #4E8E4E; pointer-events: none; }
#login-poster {
    position: absolute; inset: -16px; background-image: url(../images/backgroundmap.png); filter: blur(4px);
    animation: lefty 100s ease infinite;
}
#login-scene #city-3d { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
#login-scene #city-3d[data-ready="1"] { opacity: 1; }
#login-scene .city-3d-canvas, #login-scene .city-3d-canvas canvas { position: absolute; inset: 0; display: block; }
#login-scene .city-3d-overlay, #login-scene #city-3d-loading { display: none; }
/* A soft edge, so the panel stays the brightest thing on the page. */
#login-scene::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, 0) 35%, rgba(0, 30, 30, .35) 100%);
}

/* The panel. */
.login-glass {
    width: 360px; max-width: calc(100vw - 24px); margin: 0 auto; padding: 18px; box-sizing: border-box; text-align: left;
    border: 1px solid rgba(255, 255, 255, .65); border-radius: 14px;
    background: rgba(255, 255, 255, .58);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
    transition: opacity .35s ease, transform .35s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .login-glass { background: rgba(255, 255, 255, .9); }
}
body.login-leaving .login-glass { opacity: 0; transform: translateY(-8px) scale(.98); }
@media (prefers-reduced-motion: reduce) {
    #login-poster { animation: none; }
    #login-scene #city-3d, .login-glass { transition: none; }
}

.login-section + .login-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .1); }
.login-row { display: flex; gap: 10px; }
.login-glass .login-row input {
    flex: 1 1 0; min-width: 0; width: auto; height: 34px; box-sizing: border-box; margin: 0; padding: 0 10px;
    border: 1px solid rgba(0, 0, 0, .18); border-radius: 6px; background: rgba(255, 255, 255, .88); font-size: 14px;
}
.login-glass .login-row input:focus { outline: 2px solid #006666; outline-offset: 0; border-color: transparent; }
.login-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.login-actions-end { justify-content: flex-end; }
.login-keep { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #333; cursor: pointer; }
/* .flatbutton:hover (Master.css) swaps the height for a 25px bottom border, which pushed the text up here:
   the border stays at 4px and the hover only darkens the button. */
.login-glass .login-button, .login-glass .login-button:hover {
    display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 96px; height: 36px; padding: 0 18px; box-sizing: border-box;
    border-width: 0 0 4px; border-radius: 4px; font-size: 14px; line-height: 1; white-space: nowrap;
}
.login-glass .login-button:hover, .login-glass .login-button:focus-visible { box-shadow: inset 0 0 0 100px rgba(0, 0, 0, .1); }
.login-glass .login-button:disabled { box-shadow: none; }
.login-glass .login-button:disabled { cursor: progress; }
.login-glass .login-newuser {
    display: block; width: 100%; height: 34px; box-sizing: border-box; border-radius: 4px;
    padding: 0 8px; line-height: 30px; white-space: nowrap; text-align: center; text-decoration: none;
}
.login-glass .login-newuser:hover { height: 34px; border-bottom-width: 34px; }
.login-links { text-align: center; }
.login-howto { display: inline-block; margin-top: 10px; color: #006666; font-weight: bold; }
#login-content .inf { max-width: 560px; margin: 0 auto 15px; float: none; border-radius: 8px; padding: 6px 12px; box-sizing: border-box; font-size: 20px; }
#login-content #login-message { min-height: 0; margin: 0 0 12px; padding: 8px 10px; font-size: 15px; line-height: 1.3; }
#login-message[hidden] { display: none; }
