/* Access recovery sheet (recovery.js). Colours come from login-stage.css (--ls-*); the fallbacks are the dark theme. */
html.rc-lock { overflow: hidden; }
.rc-root { position: fixed; inset: 0; z-index: 3000; display: none; align-items: flex-end; justify-content: center; background: rgba(5, 8, 12, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.rc-root.rc-open { display: flex; }
.rc-root *, .rc-root *::before, .rc-root *::after { box-sizing: border-box; }
.rc-sheet { position: relative; width: min(460px, 100%); max-height: 94vh; overflow-y: auto; padding: 26px 20px 24px; color: var(--ls-text, #eaecef); background: var(--ls-solid, #141922); border: 1px solid var(--ls-line, #232b37); border-bottom: 0; border-radius: 28px 28px 0 0; box-shadow: 0 -24px 70px rgba(0, 0, 0, .5); animation: rc-up .3s cubic-bezier(.2, .8, .2, 1); }
@media (min-width: 560px) {
  .rc-root { align-items: center; padding: 24px; }
  .rc-sheet { padding: 30px 28px 28px; border-bottom: 1px solid var(--ls-line, #232b37); border-radius: 28px; animation-name: rc-pop; }
}
@keyframes rc-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rc-pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.rc-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rc-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--ls-input, #0e131a); color: var(--ls-muted, #848e9c); cursor: pointer; }
.rc-close:hover { color: var(--ls-text, #eaecef); }
.rc-badge { width: 58px; height: 58px; margin: 0 0 14px; display: grid; place-items: center; border-radius: 20px; color: var(--ls-accent, #27d9a2); background: color-mix(in srgb, var(--ls-accent, #27d9a2) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ls-accent, #27d9a2) 28%, transparent); }
.rc-badge .rc-ico { width: 28px; height: 28px; }
.rc-title { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.rc-lead { margin: 8px 0 18px; color: var(--ls-muted, #848e9c); font-size: 14.5px; line-height: 1.5; }

.rc-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 16px; background: var(--ls-input, #0e131a); border: 1px solid var(--ls-line, #232b37); }
.rc-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: var(--ls-muted, #848e9c); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .18s, color .18s; }
.rc-seg button.on { background: var(--ls-accent, #27d9a2); color: var(--ls-ink, #04130d); }

.rc-fields { display: grid; gap: 14px; }
.rc-field { display: grid; gap: 7px; }
.rc-label { color: var(--ls-muted, #848e9c); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.rc-label em { font-style: normal; font-weight: 500; opacity: .75; }
.rc-input { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; border-radius: 16px; background: var(--ls-input, #0e131a); border: 1px solid var(--ls-line, #232b37); color: var(--ls-muted, #848e9c); transition: border-color .15s, box-shadow .15s; }
.rc-input:focus-within { border-color: var(--ls-accent, #27d9a2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-accent, #27d9a2) 22%, transparent); color: var(--ls-accent, #27d9a2); }
.rc-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ls-text, #eaecef); font: inherit; font-size: 16px; }
/* styles.css paints every <input> per theme with a more specific selector; the frame (.rc-input) draws the field, so the input itself must stay bare. */
.rc-root .rc-input input { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0; }
.rc-input input::placeholder { color: color-mix(in srgb, var(--ls-muted, #848e9c) 70%, transparent); }
.rc-eye { width: 34px; height: 34px; display: grid; place-items: center; margin-right: -6px; border: 0; border-radius: 10px; background: transparent; color: var(--ls-muted, #848e9c); cursor: pointer; }
.rc-bot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rc-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--ls-accent, #27d9a2) 8%, transparent); color: var(--ls-muted, #848e9c); font-size: 12.5px; line-height: 1.45; }
.rc-privacy .rc-ico { width: 18px; height: 18px; margin-top: 1px; color: var(--ls-accent, #27d9a2); }
.rc-error { min-height: 0; margin: 0; color: var(--ls-dn, #ff6b70); font-size: 13.5px; font-weight: 600; }
.rc-error:empty { display: none; }

.rc-send { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; border: 0; border-radius: 18px; background: var(--ls-accent, #27d9a2); color: var(--ls-ink, #04130d); font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: transform .15s, filter .15s; }
.rc-send:hover { filter: brightness(1.06); }
.rc-send:active { transform: scale(.985); }
.rc-send b { font-weight: 800; }
.rc-send-quiet { margin-top: 22px; background: var(--ls-input, #0e131a); color: var(--ls-text, #eaecef); border: 1px solid var(--ls-line, #232b37); }
.rc-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ls-ink, #04130d) 30%, transparent); border-top-color: var(--ls-ink, #04130d); animation: rc-turn .7s linear infinite; }
.rc-busy .rc-send { pointer-events: none; opacity: .85; }
.rc-busy .rc-spin { display: block; }
.rc-busy .rc-send .rc-ico { display: none; }
@keyframes rc-turn { to { transform: rotate(360deg); } }
.rc-link { padding: 8px; border: 0; background: none; color: var(--ls-muted, #848e9c); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rc-link[hidden], .rc-form[hidden], .rc-done[hidden] { display: none; }

.rc-done { text-align: center; padding-top: 8px; }
.rc-done .rc-lead { margin: 10px auto 0; max-width: 34ch; }
.rc-check { width: 84px; height: 84px; margin: 6px auto 16px; }
.rc-check svg { width: 100%; height: 100%; fill: none; stroke: var(--ls-accent, #27d9a2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rc-check circle { stroke-dasharray: 145; stroke-dashoffset: 145; opacity: .35; animation: rc-draw .6s ease-out forwards; }
.rc-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: rc-draw .4s .35s ease-out forwards; }
@keyframes rc-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .rc-sheet, .rc-check circle, .rc-check path { animation: none; stroke-dashoffset: 0; } }
