/* Forgot and reset password: a centred glass card on the shared theme (theme.css supplies colours, background and glass). */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-base); }
body { margin: 0; min-height: 100vh; background: transparent; color: var(--text-primary); font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.ap-wrap { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 72px 16px 40px; }
.ap-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 24px; padding: 38px 34px; box-shadow: var(--card-shadow); }
:root[data-skin="summer"] .ap-card { background: rgba(62,34,88,calc(var(--glass) + .1)); }
:root[data-glass="on"]:not([data-skin="light"]) .ap-card { -webkit-backdrop-filter: blur(24px) saturate(135%); backdrop-filter: blur(24px) saturate(135%); }
:root[data-glass="off"] .ap-card { background: var(--bg-modal); }
.ap-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ap-logo img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.ap-logo b { display: block; font-size: 17px; font-weight: 900; line-height: 1.15; color: var(--text-heading); }
.ap-logo small { display: block; margin-top: 3px; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.ap-card h1 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -.01em; color: var(--text-heading); }
.ap-card p { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.ap-card p b { color: var(--text-primary); }
.ap-field { margin-bottom: 15px; }
.ap-field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ap-input { position: relative; }
.ap-input input { width: 100%; height: 48px; padding: 0 64px 0 14px; border: 1px solid var(--border-input); border-radius: 12px; background: var(--bg-input); color: var(--text-primary); font: inherit; font-size: 14.5px; }
.ap-input input::placeholder { color: var(--text-faint); }
.ap-input input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ap-eye { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; background: none; color: var(--text-muted); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 8px; }
.ap-eye:hover { color: var(--text-heading); }
.ap-btn { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.ap-btn:hover:not(:disabled) { background: var(--accent-hover); }
.ap-btn:disabled { opacity: .55; cursor: not-allowed; }
.ap-note { margin: 18px 0 0 !important; text-align: center; font-size: 14px; color: var(--text-muted); }
.ap-note a { color: var(--text-accent); font-weight: 700; text-decoration: none; }
.ap-note a:hover { text-decoration: underline; }
.ap-msg { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.ap-msg.ok { background: rgba(34,197,94,.14); color: #86efac; }
.ap-msg.bad { background: rgba(239,68,68,.14); color: #fca5a5; }
:root[data-skin="light"] .ap-msg.ok { color: #166534; } :root[data-skin="light"] .ap-msg.bad { color: #991b1b; }
.ap-rules { margin: 4px 0 16px; padding: 0; list-style: none; font-size: 13px; color: var(--text-faint); display: grid; gap: 3px; }
.ap-rules li::before { content: "○ "; }
.ap-rules li.ok { color: #4ade80; }
:root[data-skin="light"] .ap-rules li.ok { color: #166534; }
.ap-rules li.ok::before { content: "✓ "; }
