* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; font-family: system-ui, "Segoe UI", sans-serif; color: #3a2210; background: #2a1a10; }
.ascene { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20,10,5,.5), rgba(20,10,5,.22) 55%, rgba(20,10,5,.45)), url(/static/dusk-fond.jpg) center / cover no-repeat; }
.apage { position: relative; z-index: 1; width: 100%; max-width: 560px; min-height: 100vh; margin: 0 auto; padding: 26px 18px 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.atop { text-align: center; margin-bottom: 18px; }
.alogo { display: block; width: min(560px, 92vw); height: auto; margin: 0 auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.55)); }
.ititle { margin: 6px 0 0; font-family: "Palatino Linotype", Palatino, Georgia, serif; font-size: clamp(1.5rem, 5vw, 2.1rem); letter-spacing: .3em; padding-left: .3em; color: #f9dc9c; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.abox { width: 100%; padding: 34px 38px; border-radius: 18px; background: rgba(255,250,242,.95); border: 1px solid #e8d3b0; box-shadow: 0 22px 54px rgba(0,0,0,.5); }
.abox h2 { margin: 0 0 4px; text-align: center; font-family: "Palatino Linotype", Palatino, Georgia, serif; font-size: 1.5rem; color: #3a2210; }
.abox .s { margin: 0 0 22px; text-align: center; color: #8a6a4a; font-size: .92rem; }
.abox label { display: block; font-weight: 700; font-size: .86rem; margin: 0 0 6px; }
.fld { position: relative; margin-bottom: 16px; }
.fld .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: #8a6a4a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fld input { width: 100%; padding: 12px 42px; border-radius: 10px; border: 1px solid #ead2ab; background: #fbf0de; color: #3a2210; font: inherit; font-size: 1rem; }
.fld input:focus { outline: 2px solid #a8431f; }
.eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 4px; cursor: pointer; color: #8a6a4a; }
.eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.go { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 8px; padding: 13px; border: 0; border-radius: 10px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff; background: linear-gradient(180deg, #c45a30, #9c3f1c); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.go:hover { filter: brightness(1.08); }
.go svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alt { text-align: center; font-size: .88rem; color: #8a6a4a; margin: 18px 0 0; }
.alt a { color: #a8431f; font-weight: 700; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.err { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #fde8e0; border: 1px solid #e9a98f; color: #8c2a10; font-size: .9rem; }
.afoot { margin-top: 16px; font-size: .78rem; color: #f4ead8; text-shadow: 0 1px 4px rgba(0,0,0,.8); text-align: center; }
.rem { display: flex; align-items: center; gap: 9px; margin: -2px 0 4px; font-size: .88rem; color: #5a3d22; cursor: pointer; }
.rem input { width: 17px; height: 17px; accent-color: #a8431f; margin: 0; }
.rem + .go { margin-top: 10px; }
.chips { display: flex; gap: 12px; width: 100%; margin-top: 14px; }
.chip { flex: 1; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,250,242,.9); border: 1px solid #e8d3b0; box-shadow: 0 10px 26px rgba(0,0,0,.35); transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.chip:hover { transform: translateY(-3px); border-color: #e3b062; background: rgba(255,252,246,.98); box-shadow: 0 0 0 1px #e3b062, 0 0 18px rgba(227,176,98,.55), 0 14px 30px rgba(0,0,0,.4); }
.chip .ci { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(168,67,31,.12); border: 1px solid rgba(168,67,31,.28); transition: border-color .2s, background .2s; }
.chip:hover .ci { border-color: #e3b062; background: rgba(227,176,98,.22); }
.chip svg { width: 20px; height: 20px; fill: none; stroke: #a8431f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip b { display: block; font-size: .88rem; font-family: "Palatino Linotype", Palatino, Georgia, serif; }
.chip span { display: block; font-size: .74rem; color: #8a6a4a; line-height: 1.35; }
.off { margin-top: 16px; font-size: .8rem; color: #f4ead8; text-shadow: 0 1px 4px rgba(0,0,0,.8); text-align: center; }
.off b { color: #f9dc9c; }
