/* Login page styles */
            @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap');
            :root {
                --bg: #0b1016;
                --panel: #111821;
                --panel-2: #0f151d;
                --text: #e9edef;
                --muted: #9aa7b2;
                --accent: #1f8bff;
                --accent-2: #23d96f;
                --stroke: #1b2732;
            }
            * { box-sizing: border-box; }
body {
                margin: 0;
                min-height: 100vh;
                display: flex;
                align-items: center;
                justify-content: center;
                background: radial-gradient(1200px 600px at 70% -10%, rgba(31,139,255,0.18), transparent 60%),
                            radial-gradient(900px 500px at 10% 110%, rgba(35,217,111,0.16), transparent 55%),
                            var(--bg);
                color: var(--text);
                font-family: "Sora", "Segoe UI", sans-serif;
                position: relative;
                overflow: hidden;
            }
            body::before {
                content: '';
                position: fixed;
                inset: 0;
                background-image: url('/static/background.png');
                background-size: 420px;
                opacity: 0.06;
                pointer-events: none;
            }
#login-shell {
                position: relative;
                z-index: 1;
                width: 100%;
                min-height: 100vh;
                padding: clamp(14px, 4vw, 32px);
                display: flex;
                align-items: center;
                justify-content: center;
            }
#login {
                width: min(520px, 100%);
                max-width: 100%;
                background: linear-gradient(160deg, rgba(20,28,38,0.96), rgba(15,23,31,0.98));
                border: 1px solid var(--stroke);
                border-radius: clamp(18px, 4vw, 26px);
                padding: clamp(22px, 5vw, 30px) clamp(18px, 4vw, 26px);
                box-shadow: 0 24px 60px rgba(0,0,0,0.45);
                backdrop-filter: blur(8px);
            }
#login .logo {
                display: block;
                width: clamp(140px, 40vw, 190px);
                max-width: 70%;
                margin: 0 auto 14px;
                filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
            }
            #login h3 {
                margin: 0;
                font-size: 20px;
                font-weight: 700;
                text-align: center;
            }
            #login p {
                margin: 6px 0 18px;
                text-align: center;
                color: var(--muted);
                font-size: 13px;
            }
            .field {
                display: grid;
                gap: 6px;
                margin-bottom: 12px;
            }
            .field label {
                font-size: 12px;
                color: var(--muted);
            }
            input {
                width: 100%;
                padding: 12px 14px;
                border-radius: 12px;
                border: 1px solid #223240;
                background: #0b131a;
                color: var(--text);
                font-size: 14px;
            }
            input::placeholder { color: #6f7f8a; }
            input:focus {
                outline: none;
                border-color: rgba(31,139,255,0.7);
                box-shadow: 0 0 0 2px rgba(31,139,255,0.15);
            }
            button {
                width: 100%;
                padding: 12px 14px;
                margin-top: 6px;
                background: linear-gradient(135deg, var(--accent), var(--accent-2));
                color: #07131a;
                border: none;
                border-radius: 12px;
                cursor: pointer;
                font-weight: 700;
                letter-spacing: 0.4px;
                text-transform: uppercase;
            }
            button:hover { filter: brightness(1.05); transform: translateY(-1px); }
            .entra-btn {
                margin-top: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 12px;
                padding: 14px 16px;
                background: linear-gradient(135deg, #1f8bff, #23d96f);
                color: #07131a;
                border: 1px solid rgba(255,255,255,0.08);
                border-radius: 14px;
                font-size: 15px;
                font-weight: 700;
                text-transform: none;
                letter-spacing: 0.2px;
                box-shadow: 0 14px 32px rgba(31,139,255,0.22), 0 10px 24px rgba(35,217,111,0.2);
            }
            .entra-btn:hover { filter: brightness(1.06); }
            .entra-btn:focus-visible {
                outline: 2px solid rgba(31,139,255,0.6);
                outline-offset: 2px;
            }
            .ms-logo {
                display: grid;
                grid-template-columns: repeat(2, 9px);
                grid-auto-rows: 9px;
                gap: 2px;
                filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
                padding: 4px;
                border-radius: 6px;
                background: rgba(255,255,255,0.18);
                box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
            }
            .ms-logo span {
                display: block;
                width: 9px;
                height: 9px;
                border-radius: 2px;
                box-shadow: 0 0 0 1px rgba(7,19,26,0.35);
            }
            .ms-red { background: #f25022; }
            .ms-green { background: #7fba00; }
            .ms-blue { background: #00a4ef; }
            .ms-yellow { background: #ffb900; }
            .divider {
                display: flex;
                align-items: center;
                gap: 10px;
                margin: 12px 0 6px;
                color: var(--muted);
                font-size: 12px;
                text-transform: uppercase;
                letter-spacing: 1px;
            }
            .divider::before,
            .divider::after {
                content: "";
                flex: 1;
                height: 1px;
                background: #1b2732;
            }
            .login-note {
                margin: 0 0 12px;
                text-align: center;
                color: var(--muted);
                font-size: 11px;
            }
            .admin-access {
                margin-top: 8px;
                border-radius: 12px;
                border: 0;
                background: transparent;
                padding: 0;
                text-align: center;
            }
            .admin-access summary {
                cursor: pointer;
                list-style: none;
                display: inline-flex;
                align-items: center;
                gap: 8px;
                padding: 4px 8px;
                border-radius: 999px;
                border: 1px dashed transparent;
                color: #7f8b95;
                font-size: 10px;
                letter-spacing: 0.4px;
                text-transform: uppercase;
                opacity: 0.7;
                text-decoration: underline dotted;
                text-underline-offset: 2px;
                transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            }
            .admin-access summary::-webkit-details-marker { display: none; }
            .admin-access summary::after {
                content: "▾";
                color: #6f7f8a;
                transition: transform 0.2s ease;
            }
            .admin-access summary:hover {
                color: var(--text);
                border-color: #1b2732;
                opacity: 1;
            }
            .admin-access[open] summary { color: var(--text); opacity: 1; }
            .admin-access[open] summary::after { transform: rotate(180deg); }
            .admin-body {
                margin-top: 12px;
                display: grid;
                gap: 8px;
            }
            .admin-access .field { margin-bottom: 0; }
            .admin-login-btn {
                margin-top: 4px;
                background: #0b131a;
                color: var(--text);
                border: 1px solid #243240;
                text-transform: uppercase;
                letter-spacing: 0.3px;
                box-shadow: none;
            }
            .admin-login-btn:hover { filter: brightness(1.08); }
            #msg { color: #ff9a9a; font-size: 12px; min-height: 18px; margin-top: 10px; text-align: center; }
            .privacy-action { display: flex; justify-content: center; margin-top: 12px; }
            .privacy-link {
                display: inline-flex;
                align-items: center;
                width: auto;
                padding: 6px 10px;
                margin-top: 0;
                background: transparent;
                color: var(--muted);
                border: 1px solid transparent;
                border-radius: 999px;
                text-decoration: none;
                font-size: 11px;
                font-weight: 600;
                letter-spacing: 0.2px;
                text-transform: none;
            }
            .privacy-link:hover { color: var(--text); border-color: var(--stroke); filter: none; transform: none; }

            body.modal-open { overflow: hidden; }
            .privacy-modal {
                position: fixed;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: clamp(16px, 4vw, 36px);
                background: rgba(6, 10, 14, 0.72);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.2s ease;
                z-index: 20;
            }
            .privacy-modal.is-open { opacity: 1; pointer-events: auto; }
            .privacy-card {
                width: min(760px, 100%);
                max-height: 82vh;
                background: var(--panel);
                border: 1px solid var(--stroke);
                border-radius: 18px;
                padding: clamp(18px, 3vw, 26px);
                display: flex;
                flex-direction: column;
                box-shadow: 0 24px 60px rgba(0,0,0,0.55);
            }
            .privacy-header {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: 16px;
                border-bottom: 1px solid var(--stroke);
                padding-bottom: 12px;
            }
            .privacy-title { margin: 0; font-size: 18px; }
            .privacy-updated { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
            .privacy-close {
                width: auto;
                margin-top: 0;
                padding: 6px 10px;
                background: transparent;
                color: var(--muted);
                border: 1px solid var(--stroke);
                border-radius: 999px;
                font-size: 12px;
                font-weight: 600;
                text-transform: none;
                letter-spacing: 0;
            }
            .privacy-close:hover { color: var(--text); filter: none; transform: none; }
            .privacy-body {
                margin-top: 14px;
                color: #d6dde2;
                font-size: 13px;
                line-height: 1.6;
                overflow: auto;
                padding-right: 6px;
            }
            .privacy-body h5 {
                margin: 14px 0 6px;
                font-size: 14px;
                color: var(--text);
            }
            .privacy-body p { margin: 0 0 10px; color: var(--muted); }
            .privacy-body ul {
                margin: 0 0 10px 18px;
                padding: 0;
                color: var(--muted);
            }
            .privacy-body li { margin-bottom: 6px; }

@media (max-width: 720px) {
                body { align-items: stretch; }
                body::before { background-size: 360px; opacity: 0.08; }
                #login-shell { align-items: stretch; }
                #login { min-height: 72vh; }
            }

