/* Glas-Schicht: halbtransparente Flächen mit Unschärfe, große Rundungen, Karten-Einblendung (landing.js).
   Liegt als letztes Stylesheet im Kopf und ändert nur das Aussehen, keine Struktur.
   Farbton der Flächen: --glass-rgb (je System gesetzt). */

:root {
    --glass-rgb: 18, 11, 46;
    --glass-line: rgba(255, 255, 255, .14);
    --glass-shine: rgba(255, 255, 255, .16);
    --r-card: 22px;
    --r-field: 14px;
}

/* Flächen */
.card, .bg-panel, .modal-box, aside#sidebar, .sys-card {
    background: linear-gradient(145deg, rgba(var(--glass-rgb), .84), rgba(var(--glass-rgb), .68));
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border-color: var(--glass-line);
    box-shadow: inset 0 1px 0 var(--glass-shine), 0 12px 40px -14px rgba(0, 0, 0, .65);
}
.card, .modal-box, .sys-card { border-radius: var(--r-card); }
.modal-box { border-radius: 26px; }
aside#sidebar { border-right: 1px solid var(--glass-line); }
@media (min-width: 1024px) {
    aside#sidebar { top: 12px; bottom: 12px; left: 12px; height: auto; border: 1px solid var(--glass-line); border-radius: 26px; }
}

/* Rundungen überall */
.rounded, .rounded-md { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }
.rounded-2xl { border-radius: 24px; }
.btn, .tab, .badge { border-radius: 9999px; }
.btn { padding-left: 20px; padding-right: 20px; }
.input, select.input, textarea.input { border-radius: var(--r-field); background: rgba(0, 0, 0, .42); border-color: var(--glass-line); }
.sys-frame { border-radius: 20px; }
table.data-table { border-radius: 14px; }
img.rounded-full { border-radius: 9999px; }

/* Lesbarkeit */
.label, table.data-table th { color: #b9c0cc; }
table.data-table td { border-bottom-color: rgba(255, 255, 255, .08); }

.btn-secondary { background: rgba(255, 255, 255, .05); border-color: var(--glass-line); }
.btn-primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px -8px var(--c-accent); }

/* Ohne Blur-Unterstützung: dichter Hintergrund */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card, .bg-panel, .modal-box, aside#sidebar, .sys-card { background: rgb(var(--glass-rgb)); }
}

:root { --glass-rgb: 20, 20, 20; }
.bg-brand.bg-brand-dim { opacity: .32; }

/* ── Anmeldeseite: links das Markenbild, rechts ein schlichtes, flaches Formularfeld ── */
body:has(> main.card), body:has(> main > .card.max-w-sm) { background: rgb(var(--glass-rgb)); }
body:has(> main.card) > .bg-brand, body:has(> main > .card.max-w-sm) > .bg-brand {
    right: 480px; opacity: 1 !important; background-size: cover; background-position: center;
    animation: login-zoom 60s ease-in-out infinite alternate;
}
body > main.card, body > main > .card.max-w-sm {
    position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 100%; margin: 0; padding: 56px 48px;
    display: flex; flex-direction: column; justify-content: center; overflow-y: auto;
    border: 0; border-left: 1px solid var(--glass-line); border-radius: 0; box-shadow: none;
    background: rgb(var(--glass-rgb)); -webkit-backdrop-filter: none; backdrop-filter: none;
    animation: login-slide .7s cubic-bezier(.16, 1, .3, 1) both;
}
body > main.card > *, body > main > .card.max-w-sm > * { animation: login-up .6s cubic-bezier(.16, 1, .3, 1) both; }
body > main.card > :nth-child(1), body > main > .card.max-w-sm > :nth-child(1) { animation-delay: .18s; }
body > main.card > :nth-child(2), body > main > .card.max-w-sm > :nth-child(2) { animation-delay: .24s; }
body > main.card > :nth-child(3), body > main > .card.max-w-sm > :nth-child(3) { animation-delay: .30s; }
body > main.card > :nth-child(4), body > main > .card.max-w-sm > :nth-child(4) { animation-delay: .36s; }
body > main.card > :nth-child(n+5), body > main > .card.max-w-sm > :nth-child(n+5) { animation-delay: .42s; }

body > main.card > .flex.flex-col.items-center, body > main > .card.max-w-sm > .flex.flex-col.items-center { align-items: flex-start; margin-bottom: 1.8rem; }
body > main.card img.rounded-full, body > main > .card.max-w-sm img.rounded-full { width: 44px; height: 44px; border: 0; margin-bottom: 1.1rem; }
body > main.card h1, body > main > .card.max-w-sm h1 { font-size: 1.45rem; line-height: 1.2; font-weight: 600; letter-spacing: 0; text-shadow: none; animation: none; text-transform: none; }
body > main.card .text-center, body > main > .card.max-w-sm .text-center { text-align: left; }
body > main.card .input, body > main > .card.max-w-sm .input { min-height: 46px; border-radius: 10px; }
body > main.card .input:focus, body > main > .card.max-w-sm .input:focus { box-shadow: none; outline: 2px solid var(--c-accent); outline-offset: 1px; }
body > main.card .btn, body > main > .card.max-w-sm .btn { border-radius: 10px; min-height: 46px; }
body > main.card .btn-primary, body > main > .card.max-w-sm .btn-primary { background: var(--c-accent); box-shadow: none; }

@keyframes login-slide { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes login-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes login-zoom { from { transform: scale(1); } to { transform: scale(1.05); } }

@media (max-width: 899px) {
    body:has(> main.card) > .bg-brand, body:has(> main > .card.max-w-sm) > .bg-brand { right: 0; }
    body > main.card, body > main > .card.max-w-sm { width: 100%; padding: 40px 24px; background: rgba(var(--glass-rgb), .92); border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    body > main.card, body > main > .card.max-w-sm, body > main.card > *, body > main > .card.max-w-sm > *, .bg-brand { animation: none !important; }
}
