/* Sign-in pages (/anmelden/, AuthPages) on the Exposé gate look, screens of the approved mockup "Anmelden ohne Passwort"
   (Till 28.11.2026): start, passkey waiting ring, 6 code boxes, errors, lock pause, passkey offer, sunrise on success.
   Night by default, day by html[data-theme="light"] (theme-boot.php); progress always yellow -> blue -> green. */
:root {
    --ee-auth-dim: rgba(255, 255, 255, .62);
    --ee-auth-faint: rgba(255, 255, 255, .42);
    --ee-auth-sky-dim: .7;
    --ee-sun-n1: #06070c; --ee-sun-n2: #141a30; --ee-sun-d1: #16234a; --ee-sun-d2: #7a4a3a; --ee-sun-d3: #d08050; --ee-sun-y1: #16294a; --ee-sun-y2: #46584e;
    --ee-sun-hill1: #1f3d2b; --ee-sun-hill2: #284c33; --ee-sun-tree: #1b3a25; --ee-sun-field: #2c5a36; --ee-sun-band: #4d3d29; --ee-sun-shade: #03040a;
    --ee-sun-post: #6b7782; --ee-sun-pv: #0b5a96; --ee-sun-grid: #3d86bd; --ee-sun-frame: #8996a3; --ee-sun-stem: #3ea04d; --ee-sun-leaf: #3ea04d; --ee-sun-leaf2: #5fbf6a;
    --ee-sun-ink: #fff; --ee-sun-glow: 0 2px 18px rgba(0, 0, 0, .5);
    --ee-ill-sky: rgba(63, 161, 77, .12); --ee-ill-grass: #2c5a36; --ee-ill-wood: #9c6d3f; --ee-ill-sign: #a97f4b; --ee-ill-pv: #0069b2; --ee-ill-grid: #3d86bd;
    --ee-ill-post: #6b7782; --ee-ill-wool: #fff; --ee-ill-wool-o: #6f7a74; --ee-ill-sheep: #33393f; --ee-ill-face: #22262c;
}
html[data-theme="light"] {
    --ee-auth-dim: #5b6577;
    --ee-auth-faint: #8a94a3;
    --ee-auth-sky-dim: .96;
    --ee-sun-n1: #3b4c7e; --ee-sun-n2: #a08ca6; --ee-sun-d1: #7d9bd0; --ee-sun-d2: #f6c08a; --ee-sun-d3: #ffd88f; --ee-sun-y1: #9fd0f0; --ee-sun-y2: #eef6ee;
    --ee-sun-hill1: #a6d4a2; --ee-sun-hill2: #8cc48f; --ee-sun-tree: #6fae72; --ee-sun-field: #bfe3c4; --ee-sun-band: #d8c29a; --ee-sun-shade: #1c2450;
    --ee-sun-post: #7d8a93; --ee-sun-pv: #0069b2; --ee-sun-grid: #5aa3d8; --ee-sun-frame: #d6dde3; --ee-sun-stem: #3e8f4a; --ee-sun-leaf: #3ea04d; --ee-sun-leaf2: #6cc070;
    --ee-sun-ink: #10231a; --ee-sun-glow: 0 1px 14px rgba(255, 255, 255, .75);
    --ee-ill-sky: #e7f3ec; --ee-ill-grass: #bfe3c4; --ee-ill-wood: #b07a45; --ee-ill-sign: #c89a5b; --ee-ill-pv: #0069b2; --ee-ill-grid: #5aa3d8;
    --ee-ill-post: #7d8a93; --ee-ill-wool-o: #cfd6d2; --ee-ill-face: #fff;
}

/* ---------- layout + type ---------- */
.ee-auth__c { padding-top: 24px; padding-bottom: 24px; }
.ee-auth [hidden] { display: none !important; } /* JS-toggled parts (code field, boxes, ring) beat their display rules */
.ee-auth__ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ee-auth .ee-auth__h { margin: 0 0 12px; font-size: 64px; line-height: 1.02; max-width: 16ch; }
.ee-auth .ee-auth__h--sm { font-size: 44px; line-height: 1.08; }
.ee-auth__p { margin: 0; max-width: 30em; font: 400 19px/1.45 var(--xp-font); color: var(--ee-text-secondary); }
.ee-auth__p b { color: var(--ee-text-primary); font-weight: 600; }
.ee-auth .xp-hint { color: var(--ee-auth-dim); max-width: 420px; }

/* ---------- form ---------- */
.ee-auth__form { margin-top: 30px; width: min(400px, 100%); display: flex; flex-direction: column; gap: 8px; text-align: left; }
.ee-auth__lbl { font: 500 13px/1.3 var(--xp-font); color: var(--ee-auth-dim); margin-top: 4px; }
.ee-auth__in { width: min(400px, 100%); height: 52px; border-radius: 14px; padding: 0 16px; border: 1px solid rgba(var(--ee-fg-rgb), .14); background: rgba(var(--ee-tint-rgb), .78); color: var(--ee-text-primary); font: 500 17px/1 var(--xp-font); outline: none; }
.ee-auth__in::placeholder { color: var(--ee-auth-faint); }
.xp .ee-auth__in:focus, .xp .ee-auth__in:focus-visible { outline: none; border-color: var(--xp-green); box-shadow: 0 0 0 3px rgba(48, 209, 88, .25); } /* ring on the rounded field, not the square .xp outline */
.ee-auth__in--code { font-size: 26px; letter-spacing: .35em; text-align: center; }
.ee-auth__check { display: flex; gap: 8px; align-items: center; margin-top: 6px; font: 400 14px/1.4 var(--xp-font); color: var(--ee-auth-dim); }
.ee-auth .ee-auth__go { width: min(400px, 100%); margin-top: 14px; font-size: 17px; }
.ee-auth__go .ee-auth__ic { width: 22px; height: 22px; stroke-width: 2; }
/* with a passkey the code button steps back to a link under the main action (mockup s1); without one it stays the CTA */

/* ---------- links + messages ---------- */
.ee-auth__links { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; }
.ee-auth__link { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; color: var(--xp-green-ink); font: 500 15px/1.4 var(--xp-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ee-auth__link .ee-auth__ic { width: 17px; height: 17px; }
.ee-auth__link--plain { color: var(--ee-auth-dim); }
.ee-auth__inline { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ee-auth__links .ee-auth__inline { margin: 0; }
.ee-auth__msg { display: flex; gap: 10px; align-items: flex-start; width: min(400px, 100%); margin: 20px 0 0; padding: 12px 16px; border-radius: 14px; text-align: left; font: 500 14.5px/1.45 var(--xp-font); background: rgba(var(--ee-fg-rgb), .07); border: 1px solid rgba(var(--ee-fg-rgb), .12); color: var(--ee-text-primary); }
.ee-auth__msg .ee-auth__ic { width: 19px; height: 19px; margin-top: 1px; color: var(--ee-auth-dim); }
.ee-auth__msg:has([data-ee-pk-send]) { flex-wrap: wrap; }
.ee-auth__msg [data-ee-pk-send] { flex-basis: 100%; justify-content: flex-start; padding-left: 29px; }
.ee-auth__msg small { display: block; font-weight: 400; font-size: 14px; color: var(--ee-text-secondary); }
.ee-auth__msg--err { background: rgba(255, 69, 58, .10); border-color: rgba(255, 105, 97, .45); }
.ee-auth__msg--err .ee-auth__ic { color: var(--xp-err); }
.ee-auth__msg--info { background: rgba(var(--ee-fg-rgb), .07); border-color: rgba(var(--ee-fg-rgb), .12); }
.ee-auth__msg--info .ee-auth__ic { color: var(--ee-auth-dim); }

/* ---------- one-time code: 6 boxes (ee-auth.js), the plain field without JS ---------- */
.ee-auth__form--code { align-items: center; }
.ee-auth__form--code .ee-auth__plain { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.ee-otp { display: flex; gap: 10px; justify-content: center; }
.ee-otp__sep { width: 8px; }
.ee-otp input { width: 56px; height: 68px; padding: 0; border-radius: 14px; text-align: center; border: 1px solid rgba(var(--ee-fg-rgb), .16); background: rgba(var(--ee-tint-rgb), .78); color: var(--ee-text-primary); font: 600 30px/1 var(--xp-font); font-variant-numeric: tabular-nums; outline: none; caret-color: var(--xp-green); transition: border-color .15s, box-shadow .15s, background .15s; }
.xp .ee-otp input:focus, .xp .ee-otp input:focus-visible { outline: none; border-color: var(--xp-green); box-shadow: 0 0 0 3px rgba(48, 209, 88, .25); }
.ee-otp.is-err input { border-color: var(--xp-err); box-shadow: 0 0 0 3px rgba(255, 69, 58, .16); }
.ee-otp.is-busy input { opacity: .6; }
.ee-otp__st { min-height: 24px; margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font: 500 14.5px/1.5 var(--xp-font); color: var(--ee-text-secondary); }
.ee-otp__st.is-err { color: var(--xp-err); }
.ee-auth__dots { display: inline-flex; gap: 5px; }
.ee-auth__dots i { width: 7px; height: 7px; border-radius: 50%; background: #eecb00; animation: ee-auth-dot 1s infinite ease-in-out; }
.ee-auth__dots i:nth-child(2) { background: #2f8fd8; animation-delay: .15s; }
.ee-auth__dots i:nth-child(3) { background: #3ea04d; animation-delay: .3s; }
@keyframes ee-auth-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- passkey waiting (s2) ---------- */
.ee-auth__wait { display: flex; flex-direction: column; align-items: center; }
.xp-gate.is-dim .xp-gate__sky { filter: blur(18px) saturate(.8) brightness(var(--ee-auth-sky-dim)); }
.xp-gate.is-dim .ee-auth__c > :is(.ee-auth__h, .ee-auth__p, .ee-auth__msg) { display: none; } /* s2: only the ring and its text */
.ee-auth__ring { position: relative; width: 132px; height: 132px; margin: 0 0 30px; display: grid; place-items: center; }
.ee-auth__ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(238, 203, 0, 0) 0deg, #eecb00 90deg, #2f8fd8 200deg, #3ea04d 300deg, rgba(62, 160, 77, 0) 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); animation: ee-auth-spin 2.8s linear infinite; }
.ee-auth__ring::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: rgba(var(--ee-fg-rgb), .07); box-shadow: inset 0 0 0 1px rgba(var(--ee-fg-rgb), .10); animation: ee-auth-breathe 2.8s ease-in-out infinite; }
.ee-auth__ring .ee-auth__ic { position: relative; z-index: 1; width: 46px; height: 46px; stroke-width: 1.6; color: var(--ee-text-primary); }
@keyframes ee-auth-spin { to { transform: rotate(360deg); } }
@keyframes ee-auth-breathe { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1); opacity: 1; } }

/* ---------- lock pause (s5c) ---------- */
.ee-auth__ill { width: min(360px, 100%); height: auto; margin: 0 0 6px; }
.ill-sky { fill: var(--ee-ill-sky); } .ill-grass { fill: var(--ee-ill-grass); } .ill-sun { fill: #eecb00; opacity: .85; }
.ill-pv { fill: var(--ee-ill-pv); } .ill-grid { fill: none; stroke: var(--ee-ill-grid); stroke-width: 1.4; } .ill-post { fill: var(--ee-ill-post); }
.ill-wood { fill: var(--ee-ill-wood); } .ill-gate rect { fill: var(--ee-ill-sign); } .ill-gate path { stroke: var(--ee-ill-sign); }
.ill-hang { fill: none; stroke: var(--ee-ill-sign); stroke-width: 3; stroke-linecap: round; }
.ill-clock { fill: var(--ee-ill-face); stroke: var(--ee-ill-sign); stroke-width: 5; } .ill-hand { stroke: var(--ee-ill-sheep); stroke-width: 4; stroke-linecap: round; }
.ill-sheep { fill: var(--ee-ill-sheep); } .ill-wool circle { fill: var(--ee-ill-wool); stroke: var(--ee-ill-wool-o); stroke-width: 4; paint-order: stroke; }
.ill-z { font: 800 26px var(--xp-font); text-anchor: middle; } .ill-z1 { fill: #eecb00; } .ill-z2 { fill: #0069b2; } .ill-z3 { fill: #3ea04d; }
.ee-auth__lock { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; width: min(320px, 100%); }
.ee-auth__lock-t { font: 700 30px/1 var(--xp-font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ee-text-primary); }
.ee-auth__lock-bar { width: 100%; height: 6px; border-radius: 3px; background: rgba(var(--ee-fg-rgb), .10); overflow: hidden; }
.ee-auth__lock-bar i { display: block; height: 100%; width: var(--p, 3%); border-radius: 3px; background: linear-gradient(90deg, #eecb00, #2f8fd8, #3ea04d); background-size: 320px 100%; }
.ee-auth__lock small { font: 400 13.5px var(--xp-font); color: var(--ee-auth-dim); }

/* ---------- passkey offer after the first code sign-in (s6) ---------- */
.ee-auth__offer { position: relative; display: flex; align-items: center; gap: 18px; width: min(860px, 100%); padding: 18px 20px 18px 22px; border-radius: 16px; text-align: left; background: rgba(var(--ee-tint-rgb), .78); border: 1px solid rgba(62, 160, 77, .40); box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .12); overflow: hidden; }
.ee-auth__offer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#eecb00, #0069b2, #3ea04d); }
.ee-auth__offer-ico { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(63, 161, 77, .18); color: var(--xp-green-ink); }
.ee-auth__offer-ico .ee-auth__ic { width: 28px; height: 28px; stroke-width: 1.7; }
.ee-auth__offer-t { flex: 1; min-width: 0; }
.ee-auth__offer-t h1 { margin: 0 0 2px; font: 600 16px/1.4 var(--xp-font); color: var(--ee-text-primary); }
.ee-auth__offer-t p { margin: 0; font: 400 13.5px/1.5 var(--xp-font); color: var(--ee-auth-dim); }
.ee-auth__offer-a { display: flex; gap: 8px; align-items: center; }
.xp .ee-auth__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: #1f6f43; color: #fff; font: 600 14px/1 var(--xp-font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 6px 16px rgba(31, 111, 67, .25); }
.ee-auth__btn .ee-auth__ic { width: 16px; height: 16px; stroke-width: 2.2; }
.xp .ee-auth__btn--ghost { background: rgba(var(--ee-tint-rgb), .5); color: var(--ee-text-primary); border-color: rgba(var(--ee-fg-rgb), .14); box-shadow: none; }
html[data-theme="light"] .ee-auth__offer { background: #fff; border-color: #b9ddc9; box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06); }
html[data-theme="light"] .ee-auth__offer-ico { background: #e7f3ec; color: #14532d; }

/* ---------- sunrise on success (s4, ee-auth.js) ---------- */
.ee-sun { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: var(--ee-sun-n1); cursor: pointer; }
.ee-sun svg { display: block; width: 100%; height: 100%; }
.ee-sun .sky-n { fill: url(#ee-sun-n); } .ee-sun .sky-d { fill: url(#ee-sun-d); } .ee-sun .sky-y { fill: url(#ee-sun-y); }
.ee-sun .star { fill: #fff; }
.ee-sun .sun-disc { fill: #ffd84a; } .ee-sun .sun-core { fill: #fff3b0; }
.ee-sun .hill1 { fill: var(--ee-sun-hill1); } .ee-sun .hill2 { fill: var(--ee-sun-hill2); } .ee-sun .tree { fill: var(--ee-sun-tree); }
.ee-sun .field { fill: var(--ee-sun-field); } .ee-sun .band { fill: var(--ee-sun-band); } .ee-sun .shade { fill: var(--ee-sun-shade); }
.ee-sun .post, .ee-sun .pivot { fill: var(--ee-sun-post); }
.ee-sun .panel { fill: var(--ee-sun-pv); } .ee-sun .cells { fill: none; stroke: var(--ee-sun-grid); stroke-width: 1.2; } .ee-sun .pframe { fill: var(--ee-sun-frame); }
.ee-sun .glint { fill: url(#ee-sun-gl); }
.ee-sun .stem { fill: none; stroke: var(--ee-sun-stem); stroke-width: 2.2; stroke-linecap: round; }
.ee-sun .leaf { fill: var(--ee-sun-leaf); } .ee-sun .leaf2 { fill: var(--ee-sun-leaf2); } .ee-sun .grain { fill: #e9c84a; }
.ee-sun .crop, .ee-sun .sun { transform-box: fill-box; }
.ee-sun .crop { transform-origin: 50% 100%; }
.ee-sun .tbl, .ee-sun .glint { transform-box: view-box; transform-origin: 0 0; }
.ee-sun__greet { position: absolute; left: 0; right: 0; top: 15%; padding: 0 20px; text-align: center; color: var(--ee-sun-ink); pointer-events: none; opacity: 0; }
.ee-sun__h { margin: 0; font-size: 54px; line-height: 1.05; letter-spacing: -.025em; text-shadow: var(--ee-sun-glow); }
.ee-sun__p { margin: 10px 0 0; font: 400 19px/1.4 var(--xp-font); opacity: .92; text-shadow: var(--ee-sun-glow); }
.ee-sun__bar { position: absolute; left: 0; top: 0; width: 100%; height: 3px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #eecb00, #2f8fd8, #3ea04d); }
.ee-sun__skip { position: absolute; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(var(--ee-fg-rgb), .14); color: var(--ee-sun-ink); font: 600 13px var(--xp-font); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ee-sun__skip kbd { font: 600 11px var(--xp-font); padding: 1px 5px; border-radius: 4px; background: rgba(var(--ee-fg-rgb), .14); }

@media (prefers-reduced-motion: reduce) {
    .ee-auth__ring::before, .ee-auth__ring::after, .ee-auth__dots i { animation-duration: 6s; }
}

/* ---------- phone width ---------- */
@media (max-width: 600px) {
    .ee-auth .ee-auth__c { justify-content: flex-start; padding: calc(96px + env(safe-area-inset-top)) 20px 24px; }
    .ee-auth .ee-auth__c .xp-logo { margin-bottom: 34px; }
    .ee-auth .ee-auth__c .xp-logo > svg, .ee-auth .ee-auth__c .xp-logo img { height: 24px; }
    .ee-auth .ee-auth__h { font-size: 42px; }
    .ee-auth .ee-auth__h--sm { font-size: 32px; }
    .ee-auth__p { font-size: 17px; }
    .ee-otp { gap: 7px; }
    .ee-otp input { width: 46px; height: 58px; font-size: 26px; }
    .ee-otp__sep { width: 2px; }
    .ee-auth__offer { flex-wrap: wrap; }
    .ee-auth__offer-a { width: 100%; }
    .ee-auth__offer-a .ee-auth__btn { flex: 1; }
    .ee-sun__h { font-size: 36px; }
    .ee-sun__p { font-size: 16px; }
    .ee-sun__skip kbd { display: none; }
}

/* ---------- other views (password, sessions, security, root) ---------- */
.ee-auth__list { margin-top: 24px; width: min(480px, 100%); text-align: left; }
.ee-auth__list ul { list-style: none; margin: 6px 0 16px; padding: 0; font: 400 15px/1.6 var(--xp-font); color: var(--ee-text-primary); }
.ee-auth__h2 { font: 600 15px/1.3 var(--xp-font); color: var(--ee-auth-dim); margin: 12px 0 0; }
.ee-auth__more { margin-top: 22px; }
