:root {
    color-scheme: dark;
    font: 16px system-ui, sans-serif;
    background: linear-gradient(110deg, #10212ee8, #101b25b8), url("/portal-architecture-v1.jpg") center / cover fixed #182325;
    min-height: 100%;
    color: #eef4fa;
}
* { box-sizing: border-box; }
body { margin: 0; }
.groupware-auth, .personal-passkey-settings {
    width: min(440px, calc(100% - 32px));
    margin: clamp(24px, 8vh, 80px) auto;
}
.groupware-auth section {
    background: linear-gradient(150deg, #ffffff26, #ffffff08 55%), rgb(20 35 47 / 24%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid #ffffff6b;
    border-radius: 18px;
    box-shadow: 0 16px 46px #050c155e;
    padding: clamp(20px, 6vw, 36px);
}
.groupware-auth header, .personal-passkey-settings header {
    position: relative; display: flex; align-items: center; gap: 16px;
}
.groupware-auth header::after, .personal-passkey-settings header::after {
    content: ""; position: absolute; top: 50%; left: 0; width: 56px; height: 56px;
    transform: translateY(-50%); pointer-events: none; border-radius: 50%;
    mix-blend-mode: screen;
    background: radial-gradient(ellipse at center, #fff7d490 0%, #ffe4a15c 22%, #fbd17428 45%, transparent 69%) no-repeat;
    background-size: 80% 105%;
    animation: kuhr-logo-light 8s linear infinite;
}
@keyframes kuhr-logo-light {
    0% { background-position: -50% 100%; opacity: 0; }
    22% { opacity: .72; }
    50% { background-position: 55% 40%; opacity: 1; }
    78% { opacity: .72; }
    100% { background-position: 150% 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .groupware-auth header::after, .personal-passkey-settings header::after { display: none; }
}
.groupware-auth header img, .personal-passkey-settings header img { flex: 0 0 auto; border-radius: 50%; background: #fff; object-fit: contain; }
.groupware-auth :is(h1, h2) { margin: 0.6em 0; }
.groupware-auth :is(label, input, button) { display: block; width: 100%; }
.groupware-auth label { margin: 18px 0 6px; }
.groupware-auth input { min-height: 46px; padding: 10px 12px; border: 1px solid #c9d6df; border-radius: 8px; background: #f6fafc; color: #243543; font: inherit; }
.groupware-auth button { min-height: 46px; margin-top: 16px; padding: 10px; border: 1px solid #e8c984; border-radius: 9px; background: #e8c984; color: #2e2412; font: inherit; font-weight: 650; cursor: pointer; }
.groupware-auth button.secondary { background: #ffffff10; color: #fff; border-color: #ffffff6b; }
.groupware-auth button[hidden] { display: none; }
.groupware-auth a { color: #ffe3a2; }
.groupware-auth [role="alert"] { color: #ffcebd; }
.groupware-grants { padding-inline-start: 22px; }
.groupware-admin { width: min(1120px, calc(100% - 32px)); }
.groupware-admin > section {
    background: rgb(9 20 29 / 18%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.groupware-table { overflow-x: auto; }
.groupware-table table { width: 100%; border-collapse: collapse; text-align: left; }
.groupware-table :is(th, td) { padding: .8rem 1rem; border-bottom: 1px solid #ffffff24; }
.groupware-table thead th { color: #ffe3a2; white-space: nowrap; }
.groupware-admin button { width: auto; }
.groupware-admin details { margin: 0 0 18px; }
.groupware-admin details form { max-width: 420px; }
.groupware-admin select {
    display: block; width: 100%; min-height: 46px; padding: 10px 12px;
    background: #f6fafc; color: #243543; border: 1px solid #c9d6df; border-radius: 8px; font: inherit;
}
.groupware-admin input[type="checkbox"] {
    display: inline-block; width: auto; min-height: 0; margin-inline-end: 6px; accent-color: #e5c982;
}
