:root{--bg:#f3f1ed;--panel:#fff;--ink:#282622;--muted:#746f67;--line:#ded9d0;--line-strong:#c9c1b6;--accent:#99633c;--accent-soft:#f1e5d9;--danger:#a23e36;--shadow:0 18px 55px rgba(36,32,27,.12);--focus:0 0 0 3px rgba(153,99,60,.22)}
*{box-sizing:border-box}
body{margin:0;font-family:"Segoe UI Variable Text","Segoe UI",Inter,Arial,sans-serif;color:var(--ink);background:radial-gradient(circle at 82% 8%,#eee0d2 0,transparent 30%),linear-gradient(145deg,#f8f6f2,#efede8);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}
button,input{font:inherit;transition:.16s ease}
.login-page{min-height:100vh}
header{height:70px;display:flex;align-items:center;gap:13px;padding:0 24px;border-bottom:1px solid rgba(201,193,182,.75);background:rgba(248,246,242,.78);backdrop-filter:blur(10px)}
header strong{font-size:15px;letter-spacing:-.01em}
.brand-mark{width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#e8d2bc,#c99160);color:#2b241e;display:grid;place-items:center;font-size:20px;font-weight:800;box-shadow:0 7px 18px rgba(60,43,28,.17),inset 0 1px rgba(255,255,255,.6)}
.login-stage{min-height:calc(100vh - 70px);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:34px}
.hidden{display:none}
.login-box,.login-card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:var(--shadow)}
.login-box{width:min(430px,100%)}
.login-box span{font-size:11px;font-weight:750;letter-spacing:.08em;color:var(--accent)}
.login-box h1,.login-card h1{margin:8px 0 12px;font-size:24px;line-height:1.2;letter-spacing:-.025em}
.login-box p{color:var(--muted);margin-bottom:20px}
.login-box input,.credentials input{width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:11px;padding:11px 12px;background:#fff;color:var(--ink);outline:0}
.login-box input:hover,.credentials input:hover{border-color:#afa497}
.login-box input:focus,.credentials input:focus{border-color:var(--accent);box-shadow:var(--focus)}
.login-box button,.credentials>button{width:100%;min-height:44px;margin-top:15px;background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:11px;padding:11px 14px;font-weight:700;cursor:pointer;box-shadow:0 7px 18px rgba(40,38,34,.16)}
.login-box button:hover,.credentials>button:hover{background:#151412;border-color:#151412;transform:translateY(-1px)}
.login-card{width:370px}
.credentials label{display:block;margin:12px 0 6px;font-size:12px;font-weight:650;color:#665f57}
.password-row{display:flex}
.password-row input{border-radius:11px 0 0 11px}
.password-row button{width:46px;border:1px solid var(--line-strong);border-left:0;background:#f9f7f3;border-radius:0 11px 11px 0;cursor:pointer;color:var(--muted)}
.password-row button:hover{background:var(--accent-soft);color:var(--ink)}
.remember{display:flex!important;align-items:center;gap:8px;font-weight:500!important;color:var(--muted)!important}
.remember input{width:auto;min-height:auto;accent-color:var(--accent)}
.user-tiles{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:24px;margin-top:38px;max-width:1440px}
.user-tile{width:164px;border:1px solid transparent;border-radius:16px;background:transparent;padding:8px;cursor:pointer;text-align:center;color:var(--ink)}
.user-tile:hover{background:rgba(255,255,255,.6);border-color:var(--line);transform:translateY(-2px)}
.user-tile img{width:150px;height:auto;max-width:100%;object-fit:contain;border-radius:12px;border:3px solid transparent;background:#e6ddd4;margin:auto;display:block;box-shadow:0 8px 22px rgba(36,32,27,.08)}
.avatar-fallback{width:150px;height:224px;border-radius:12px;border:3px solid transparent;background:linear-gradient(145deg,#ebe4dc,#ddd2c6);margin:auto;display:grid;place-items:center;font-size:44px;font-weight:750}
.user-tile.selected img,.user-tile.selected .avatar-fallback{border-color:var(--accent);box-shadow:var(--focus)}
.user-tile strong{display:block;margin-top:9px}
.error{min-height:20px;color:var(--danger);margin-top:10px;font-size:13px}
:where(button,input):focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:var(--focus)}
@media(max-width:650px){header{height:62px;padding:0 14px}.brand-mark{width:40px;height:40px}.login-stage{min-height:calc(100vh - 62px);padding:20px}.login-card{width:100%;padding:22px}.user-tiles{margin-top:24px;gap:10px}.user-tile{width:116px}.user-tile img{width:102px;height:auto}.avatar-fallback{width:102px;height:153px}}

/* v4.1.5: dieselbe helle Bildschirmtastatur vor und nach der Anmeldung. */
.login-touch-keyboard{position:fixed;z-index:20000;left:0;right:0;bottom:0;display:none;padding:8px 12px 12px;border-top:1px solid #bcb3aa;background:rgba(247,244,239,.98);color:var(--ink);box-shadow:0 -16px 44px rgba(28,24,20,.22);backdrop-filter:blur(10px)}
.login-touch-keyboard.is-open{display:block}
.login-touch-keyboard-head{max-width:980px;margin:0 auto 6px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.login-touch-keyboard-head button{width:40px;height:34px;border:0;background:transparent;color:var(--ink);font-size:23px;cursor:pointer}
.login-touch-keyboard-rows{max-width:980px;margin:auto;display:grid;gap:5px}.login-touch-keyboard-row{display:flex;justify-content:center;gap:5px}.login-touch-keyboard-row button{flex:1;max-width:76px;min-width:42px;min-height:48px;border:1px solid #cbc2b8;border-radius:9px;background:#fff;color:#292622;font:700 16px/1 system-ui;box-shadow:0 2px 5px rgba(34,28,23,.08);touch-action:manipulation}
.login-touch-keyboard-row button:active{background:#e9dacb;transform:translateY(1px)}
.login-touch-keyboard-row .keyboard-shift{flex:1.7;max-width:132px;min-width:104px;font-size:13px}.login-touch-keyboard-row .keyboard-shift.is-active{border-color:#8c5a35;background:#9c6b43;color:#fff;box-shadow:inset 0 0 0 2px rgba(255,255,255,.2),0 3px 9px rgba(92,57,30,.2)}
.login-touch-keyboard-actions button:first-child{flex:5;max-width:430px}.login-touch-keyboard-actions button{max-width:170px;font-size:13px}
.login-touch-keyboard-open .login-stage{padding-bottom:330px}
@media(max-width:650px){.login-touch-keyboard{padding:8px 5px 10px}.login-touch-keyboard-row{gap:3px}.login-touch-keyboard-row button{min-width:0;flex:1;min-height:46px;padding:0 4px}.login-touch-keyboard-row .keyboard-shift{min-width:78px;flex:1.7;font-size:11px}.login-touch-keyboard-actions button{min-width:0;font-size:11px}.login-touch-keyboard-open .login-stage{padding-bottom:300px}}
