/* Sign-in backdrop + language picker (core, theme-independent). Loaded by partials/auth-scene. */
.auth-scene { position: fixed; inset: 0; z-index: 0; background-size: cover; background-position: center; pointer-events: none; }
.auth-scene--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .38)); }
body:has(> .auth-scene) { background: transparent !important; }
body:has(> .auth-scene) > :not(.auth-scene):not(script):not(link):not(.auth-lang) { position: relative; z-index: 1; background: transparent !important; }

/* the card floats over the scene as frosted glass; inputs keep their solid theme styling */
body:has(> .auth-scene) main > [class*="card"] {
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(255, 255, 255, .5) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12);
    backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
html[data-color-scheme="dark"] body:has(> .auth-scene) main > [class*="card"] { background: rgba(22, 24, 30, .62) !important; border-color: rgba(255, 255, 255, .12) !important; }
@media (prefers-color-scheme: dark) {
    html:not([data-color-scheme="light"]) body:has(> .auth-scene) main > [class*="card"] { background: rgba(22, 24, 30, .62) !important; border-color: rgba(255, 255, 255, .12) !important; }
}

/* language dropdown: flag | name */
.auth-lang { position: fixed; top: 14px; right: 16px; z-index: 2; font: 500 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; }
.auth-lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 999px; color: #fff; background: rgba(15, 20, 35, .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; user-select: none; }
.auth-lang summary::-webkit-details-marker { display: none; }
.auth-lang summary:hover, .auth-lang[open] summary { background: rgba(15, 20, 35, .6); }
.auth-lang__chev { transition: transform .15s; }
.auth-lang[open] .auth-lang__chev { transform: rotate(180deg); }
.auth-lang__flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.auth-lang__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: rgba(255, 255, 255, .96); color: #1b1f2a; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.auth-lang__menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.auth-lang__menu a:hover { background: rgba(0, 0, 0, .06); }
.auth-lang__menu a.is-active { background: rgba(47, 111, 237, .12); font-weight: 600; }
@media (max-width: 640px) { .auth-lang { top: 10px; right: 10px; } }
