/* Recuperare cont + bannerul de email (RecoveryController, partials/email-health). Scoped pe .bh-rec / .bh-mailnag. */

.bh-rec {
    --r-pane: linear-gradient(160deg, var(--g-pane-a, rgba(255, 255, 255, .068)), var(--g-pane-b, rgba(255, 255, 255, .026)));
    --r-edge: var(--g-edge, rgba(255, 255, 255, .085));
    --r-text: var(--g-text, #e6ecea);
    --r-text-2: var(--g-text-2, #c3cdc9);
    --r-muted: var(--g-muted, #8f9d98);
    --r-strong: var(--g-strong, #fff);
    --r-green: var(--g-green, #17c964);
    --r-green-d: var(--g-green-d, #13b653);
    --r-green-soft: var(--g-green-soft, rgba(23, 201, 100, .14));
    --r-green-edge: var(--g-green-edge, rgba(23, 201, 100, .38));
    --r-gold: var(--g-gold, #f3bd3e);
    --r-red: var(--g-red, #ff5c6c);
    --r-tint: var(--g-tint, rgba(255, 255, 255, .045));
    --r-tint-2: var(--g-tint-2, rgba(255, 255, 255, .085));
    --r-radius: var(--g-r-lg, 18px);
    max-width: 620px;
    margin: 8px auto 40px;
    font-family: var(--g-font, Manrope, system-ui, sans-serif);
    color: var(--r-text);
    box-sizing: border-box;
}
.bh-rec *, .bh-rec *::before, .bh-rec *::after { box-sizing: border-box; }

.bh-rec .card { height: auto; margin-bottom: 16px; }
.bh-rec .card-body { padding: 24px; }
@media (max-width: 480px) { .bh-rec .card-body { padding: 18px 16px; } }

.bh-rec__head { display: flex; gap: 14px; align-items: center; margin: 4px 2px 18px; }
.bh-rec__icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: var(--r-green-soft); border: 1px solid var(--r-green-edge); color: var(--r-green); font-size: 24px;
}
.bh-rec__title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--r-strong); line-height: 1.2; }
.bh-rec__sub { margin: 4px 0 0; color: var(--r-muted); font-size: .95rem; line-height: 1.45; }

/* alegerea */
.bh-rec__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 420px) { .bh-rec__choices { grid-template-columns: 1fr; } }
.bh-rec__choice {
    display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px;
    background: var(--r-tint); border: 1px solid var(--r-edge); color: var(--r-text) !important;
    text-decoration: none !important; transition: background .15s, border-color .15s, transform .15s; min-width: 0;
}
.bh-rec__choice:hover { background: var(--r-tint-2); transform: translateY(-1px); }
.bh-rec__choice.is-active { background: var(--r-green-soft); border-color: var(--r-green-edge); }
.bh-rec__choice i { flex: none; font-size: 22px; color: var(--r-green); width: 26px; text-align: center; }
.bh-rec__choice b { display: block; font-weight: 800; color: var(--r-strong); font-size: .98rem; }
.bh-rec__choice small { display: block; color: var(--r-muted); font-size: .8rem; line-height: 1.3; margin-top: 2px; }
.bh-rec__choice > span { min-width: 0; }

/* formulare */
.bh-rec__label { display: block; font-weight: 700; color: var(--r-text-2); margin: 0 0 6px; font-size: .92rem; }
.bh-rec__field { position: relative; margin-bottom: 14px; }
.bh-rec .form-control { height: 50px; font-size: 1rem; border-radius: 12px; }
.bh-rec__field .bh-rec__eye {
    position: absolute; right: 6px; top: 31px; height: 40px; width: 40px; border: 0; background: transparent;
    color: var(--r-muted); border-radius: 10px; cursor: pointer;
}
.bh-rec__field .bh-rec__eye:hover { color: var(--r-strong); background: var(--r-tint); }
.bh-rec__field--eye .form-control { padding-right: 50px; }
.bh-rec__hint { color: var(--r-muted); font-size: .84rem; margin-top: 6px; line-height: 1.4; }
.bh-rec__btn { width: 100%; height: 52px; font-weight: 800; font-size: 1.02rem; border-radius: 13px; }
.bh-rec__btn[disabled] { opacity: .55; cursor: not-allowed; }
.bh-rec__link { color: var(--g-link, #6fe3a1); font-weight: 700; }

.bh-rec__err, .bh-rec__ok, .bh-rec__info {
    border-radius: 13px; padding: 12px 14px; margin-bottom: 14px; font-size: .93rem; line-height: 1.45;
    display: flex; gap: 10px; align-items: flex-start;
}
.bh-rec__err { background: rgba(255, 92, 108, .12); border: 1px solid rgba(255, 92, 108, .38); color: var(--r-text); }
.bh-rec__err i { color: var(--r-red); }
.bh-rec__ok { background: var(--r-green-soft); border: 1px solid var(--r-green-edge); }
.bh-rec__ok i { color: var(--r-green); }
.bh-rec__info { background: var(--r-tint); border: 1px solid var(--r-edge); color: var(--r-text-2); }
.bh-rec__err i, .bh-rec__ok i, .bh-rec__info i { font-size: 18px; margin-top: 1px; flex: none; }

.bh-rec__tips { margin: 14px 0 0; padding: 0; list-style: none; color: var(--r-text-2); font-size: .9rem; }
.bh-rec__tips li { display: flex; gap: 8px; padding: 4px 0; line-height: 1.4; }
.bh-rec__tips li i { color: var(--r-green); flex: none; margin-top: 2px; }

.bh-rec__steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.bh-rec__steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; line-height: 1.5; color: var(--r-text-2); }
.bh-rec__steps li::before {
    content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 9px;
    display: grid; place-items: center; font-weight: 800; font-size: .85rem;
    background: var(--r-green-soft); border: 1px solid var(--r-green-edge); color: var(--r-green);
}
.bh-rec__steps b { color: var(--r-strong); }

/* „Ai vrut sa scrii ...?” */
.bh-mailfix {
    display: none; margin-top: 7px; font-size: .88rem; color: var(--r-text-2, #c3cdc9);
    align-items: center; gap: 6px; flex-wrap: wrap;
}
.bh-mailfix.is-on { display: flex; }
.bh-mailfix button {
    border: 1px solid var(--g-green-edge, rgba(23, 201, 100, .38)); background: var(--g-green-soft, rgba(23, 201, 100, .14));
    color: var(--g-strong, #fff); border-radius: 999px; padding: 3px 11px; font-weight: 800; cursor: pointer; font-size: .86rem;
    max-width: 100%; overflow-wrap: anywhere; text-align: left;
}
.bh-mailfix button:hover { filter: brightness(1.12); }
.bh-mailfix.is-warn { color: var(--g-gold, #f3bd3e); }

/* puterea parolei */
.bh-pw { margin: -4px 0 14px; }
.bh-pw__bar { height: 6px; border-radius: 99px; background: var(--r-tint-2); overflow: hidden; }
.bh-pw__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--r-red); transition: width .2s, background .2s; }
.bh-pw__label { font-size: .82rem; color: var(--r-muted); margin-top: 6px; font-weight: 700; }
.bh-pw__rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
@media (max-width: 420px) { .bh-pw__rules { grid-template-columns: 1fr; } }
.bh-pw__rules li { font-size: .84rem; color: var(--r-muted); display: flex; gap: 6px; align-items: center; }
.bh-pw__rules li::before { content: "\25CB"; font-size: .9rem; width: 14px; text-align: center; }
.bh-pw__rules li.is-ok { color: var(--r-text); }
.bh-pw__rules li.is-ok::before { content: "\2713"; color: var(--r-green); font-weight: 800; }
.bh-pw__match { font-size: .84rem; margin-top: 6px; min-height: 1.2em; }
.bh-pw__match.is-ok { color: var(--r-green); }
.bh-pw__match.is-bad { color: var(--r-red); }

.bh-rec__pin { letter-spacing: .6em; text-align: center; font-size: 1.5rem !important; font-weight: 800; }

.bh-rec__done { text-align: center; padding: 10px 0 4px; }
.bh-rec__done .bh-rec__icon { margin: 0 auto 14px; width: 64px; height: 64px; font-size: 32px; border-radius: 20px; }
.bh-rec__done h2 { font-size: 1.4rem; font-weight: 800; color: var(--r-strong); margin: 0 0 8px; }
.bh-rec__done p { color: var(--r-text-2); margin: 0 auto 18px; max-width: 420px; line-height: 1.5; }

.bh-rec__mail { font-weight: 800; color: var(--r-strong); overflow-wrap: anywhere; }
.bh-rec__row { display: flex; gap: 10px; flex-wrap: wrap; }
.bh-rec__row > * { flex: 1 1 180px; }
.bh-rec__check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--r-text-2); margin: 0 0 14px; }
.bh-rec__check input { margin-top: 3px; }

/* ---------------------------------------------------------------- banner email (pe toate paginile) */
.bh-mailnag {
    position: relative; display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    margin: 0 0 18px; padding: 14px 16px; border-radius: var(--g-r-lg, 18px);
    background: linear-gradient(160deg, var(--g-pane-a, rgba(255, 255, 255, .068)), var(--g-pane-b, rgba(255, 255, 255, .026)));
    border: 1px solid rgba(243, 189, 62, .45); box-shadow: var(--g-hi, none), var(--g-shadow, none);
    color: var(--g-text, #e6ecea); font-family: var(--g-font, Manrope, system-ui, sans-serif); box-sizing: border-box;
}
.bh-mailnag[hidden] { display: none; }
.bh-mailnag.is-bad { border-color: rgba(255, 92, 108, .5); }
.bh-mailnag.is-info { border-color: var(--g-green-edge, rgba(23, 201, 100, .38)); }
.bh-mailnag__ic {
    flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px;
    background: rgba(243, 189, 62, .14); color: var(--g-gold, #f3bd3e);
}
.bh-mailnag.is-bad .bh-mailnag__ic { background: rgba(255, 92, 108, .14); color: var(--g-red, #ff5c6c); }
.bh-mailnag.is-info .bh-mailnag__ic { background: var(--g-green-soft, rgba(23, 201, 100, .14)); color: var(--g-green, #17c964); }
.bh-mailnag__txt { flex: 1 1 260px; min-width: 0; line-height: 1.45; font-size: .93rem; }
.bh-mailnag__txt b.bh-mailnag__t { display: block; color: var(--g-strong, #fff); font-size: 1rem; margin-bottom: 2px; }
.bh-mailnag__txt code { background: var(--g-tint-2, rgba(255, 255, 255, .085)); color: var(--g-strong, #fff); padding: 1px 6px; border-radius: 6px; font-size: .9em; overflow-wrap: anywhere; }
.bh-mailnag__act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bh-mailnag__act form { margin: 0; }
.bh-mailnag__act .btn { font-weight: 800; border-radius: 11px; white-space: nowrap; }
.bh-mailnag__later {
    background: transparent; border: 0; color: var(--g-muted, #8f9d98); font-weight: 700; font-size: .86rem; padding: 6px 8px; cursor: pointer; border-radius: 8px;
}
.bh-mailnag__later:hover { color: var(--g-strong, #fff); background: var(--g-tint, rgba(255, 255, 255, .045)); }
@media (max-width: 575px) {
    .bh-mailnag { padding: 12px 13px; gap: 10px; }
    .bh-mailnag__act { width: 100%; }
    .bh-mailnag__act .btn { flex: 1 1 auto; }
}

/* fara tema glass: culori lizibile pe tema veche */
html:not(.bh-glass) .bh-rec { --r-text: #d7dbe0; --r-strong: #fff; }
