/* Persönliche Konten – kein Drittanbieter und keine externen QR-Dienste. */
.login-page { min-height:100vh; display:grid; place-items:center; padding:32px 18px; }
.login-card { width:min(100%,580px); margin:0; padding:32px; border:1px solid var(--line); border-radius:24px; background:var(--card); box-shadow:var(--shadow); }
.login-heading { display:flex; align-items:center; gap:18px; margin-bottom:24px; }
.login-monogram { display:grid; place-items:center; width:64px; height:74px; flex-shrink:0; background:#4e813d; color:white; border-radius:16px 4px 16px 4px; font-size:28px; font-weight:900; letter-spacing:-4px; padding-right:5px; }
.login-heading h1 { font-size:26px; line-height:1.2; margin:6px 0; }
.login-heading p { color:var(--muted); margin:0; font-size:14px; }
.login-card form { display:grid; gap:18px; margin-top:24px; }
.login-card [hidden],.account-dialog [hidden] { display:none!important; }
.login-card label,.account-dialog label { min-width:0; font-size:14px; }
.login-card code { overflow-wrap:anywhere; }
.login-card footer { padding:24px 0 0; font-size:12px; }
.login-card input { font-size:16px; }
#totp-qr { display:block; margin:16px auto; background:white; border:12px solid white; box-sizing:content-box; max-width:calc(100% - 24px); height:auto; }
#totp-secret { display:block; padding:12px 0; user-select:all; }
#recovery-codes { padding:16px; background:var(--soft); border:1px solid var(--line); user-select:all; line-height:1.8; }
.auth-check { display:flex; flex-direction:row; align-items:center; gap:10px; margin:18px 0; }
.auth-check input { width:auto; }
.account-dialog { width:min(680px,calc(100vw - 24px)); max-height:calc(100vh - 30px); overflow:auto; border:1px solid var(--line); border-radius:18px; padding:26px; }
.account-dialog::backdrop { background:#0008; }
.account-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.account-dialog form { display:grid; gap:12px; padding:18px 0; }
.account-dialog summary { cursor:pointer; font-weight:700; padding:12px 0; }
.account-dialog .auth-users { display:grid; gap:10px; }
.account-dialog .auth-user { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px; border:1px solid var(--line); border-radius:10px; }
.account-dialog .auth-user small { display:block; color:var(--muted); }
.auth-expired { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); z-index:100; width:min(700px,calc(100% - 32px)); padding:18px; background:var(--card); border:2px solid var(--green); border-radius:12px; box-shadow:0 8px 40px #0005; }
.auth-expired a { color:var(--green); font-weight:700; }
.account-page { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:42px 0 70px; }
.account-hero { margin-bottom:24px; }
.account-hero h1 { margin:.35rem 0; font-size:clamp(2rem,4vw,3.3rem); }
.account-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-top:22px; }
.account-grid .panel { margin:0; min-width:0; }
.account-form { display:grid; gap:14px; }
.account-form label { display:grid; gap:6px; }
.account-form input,.account-form select { width:100%; box-sizing:border-box; }
.profile-picture { display:grid; place-items:center; width:112px; height:112px; border-radius:50%; overflow:hidden; border:2px solid var(--line); background:var(--green2); color:var(--green); font-size:30px; font-weight:900; }
.profile-picture img { width:100%; height:100%; object-fit:cover; }
#totp-change-qr { display:block; margin:16px auto; background:white; border:12px solid white; max-width:calc(100% - 24px); height:auto; }
#totp-change-secret { display:block; overflow-wrap:anywhere; user-select:all; padding:12px 0; }
#new-recovery-codes { padding:16px; background:var(--soft); border:1px solid var(--line); user-select:all; line-height:1.8; }
.button-link { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; padding:10px 16px; border-radius:7px; font-weight:700; }
.users-grid .users-wide { grid-column:1/-1; }
.auth-users { display:grid; gap:10px; }
.auth-user { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--card); }
.auth-user small { display:block; margin-top:5px; color:var(--muted); }
.user-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.link-result { margin-top:18px; padding:16px; border:1px solid var(--green); border-radius:10px; background:var(--green2); }
.copy-row { display:flex; gap:8px; }
.copy-row input { flex:1; min-width:0; }
.onboarding-card { width:min(100%,680px); }
.onboarding-steps { line-height:1.8; }
@media(max-width:760px) { .account-grid { grid-template-columns:1fr; } .auth-user { align-items:flex-start; flex-direction:column; } .user-actions { justify-content:flex-start; } }
@media(max-width:520px) { .login-card { padding:22px; } .login-heading { gap:12px; } .login-heading h1 { font-size:22px; } .account-page { width:min(100% - 20px,1180px); padding-top:24px; } .copy-row { flex-direction:column; } }

