/* =============================================================
   YasCash - Forgot Password
   Keeps the same visual language used by the public login screen.
   ============================================================= */

.yc-forgot-page {
    --yc-fp-accent: #2563eb;
    --yc-fp-accent-soft: rgba(37, 99, 235, .08);
    --yc-fp-success: #16a34a;
    --yc-fp-success-soft: rgba(22, 163, 74, .09);
    --yc-fp-border: rgba(148, 163, 184, .24);
    --yc-fp-muted: #64748b;
}

.yc-forgot-card {
    min-height: 590px;
}

.yc-forgot-brand-zone {
    overflow: hidden;
}

.yc-forgot-brand-content {
    position: relative;
    z-index: 2;
    width: min(330px, 100%);
    margin: auto;
    text-align: center;
}

.yc-forgot-brand-content h1 {
    margin: 18px 0 0;
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1.25;
    letter-spacing: -.9px;
}

.yc-forgot-brand-content > p {
    max-width: 310px;
    margin: 18px auto 0;
    color: var(--yc-fp-muted);
    font-size: 13px;
    line-height: 1.9;
}

.yc-forgot-shield {
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    margin: 10px auto 0;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(239, 246, 255, .78));
    color: var(--yc-fp-accent);
    box-shadow: 0 18px 46px rgba(37, 99, 235, .12);
    transform: rotate(-3deg);
}

.yc-forgot-shield svg {
    width: 53px;
    height: 53px;
    transform: rotate(3deg);
}

.yc-forgot-security-list {
    display: grid;
    gap: 9px;
    margin-top: 24px;
    text-align: right;
}

.yc-forgot-security-list > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .47);
    font-size: 11px;
    font-weight: 700;
}

.yc-forgot-security-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(22, 163, 74, .10);
    color: var(--yc-fp-success);
    font-size: 12px;
    font-weight: 900;
}

.yc-forgot-form-zone {
    position: relative;
}

.yc-forgot-back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 26px;
    color: inherit;
    opacity: .72;
    text-decoration: none;
    font-size: 11px;
    font-weight: 750;
    transition: opacity .18s ease, transform .18s ease, color .18s ease;
}

.yc-forgot-back-link:hover {
    color: var(--yc-fp-accent);
    opacity: 1;
    transform: translateX(2px);
}

.yc-forgot-back-link svg {
    width: 16px;
    height: 16px;
}

.yc-forgot-form-head {
    margin-bottom: 30px;
}

.yc-forgot-form-head p {
    max-width: 430px;
}

.yc-forgot-form .yc-login16-field {
    margin-bottom: 22px;
}

.yc-forgot-form input[dir="ltr"] {
    text-align: left;
}

.yc-forgot-submit {
    margin-top: 2px;
}

.yc-forgot-submit svg,
.yc-forgot-primary-link svg {
    width: 18px;
    height: 18px;
}

.yc-forgot-help-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 18px;
    padding: 12px 13px;
    border: 1px solid var(--yc-fp-border);
    border-radius: 13px;
    background: rgba(148, 163, 184, .055);
    color: var(--yc-fp-muted);
    font-size: 10.5px;
    line-height: 1.75;
}

.yc-forgot-help-icon {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: var(--yc-fp-accent);
}

.yc-forgot-help-icon svg {
    width: 100%;
    height: 100%;
}

/* Success state */

.yc-forgot-success {
    width: 100%;
    text-align: center;
    animation: ycForgotIn .36s ease both;
}

.yc-forgot-success-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    margin: 2px auto 18px;
    border: 1px solid rgba(22, 163, 74, .20);
    border-radius: 24px;
    background: var(--yc-fp-success-soft);
    color: var(--yc-fp-success);
    box-shadow: 0 14px 36px rgba(22, 163, 74, .10);
}

.yc-forgot-success-icon svg {
    width: 50px;
    height: 50px;
}

.yc-forgot-success h2 {
    margin: 10px 0 7px;
    font-size: 27px;
    line-height: 1.35;
    letter-spacing: -.35px;
}

.yc-forgot-success-intro {
    max-width: 420px;
    margin: 0 auto 20px;
    color: var(--yc-fp-muted);
    font-size: 12px;
    line-height: 1.8;
}

.yc-forgot-email-box {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 13px 14px;
    margin: 0 0 13px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 14px;
    background: var(--yc-fp-accent-soft);
    text-align: right;
}

.yc-forgot-email-icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(37, 99, 235, .11);
    color: var(--yc-fp-accent);
}

.yc-forgot-email-icon svg {
    width: 21px;
    height: 21px;
}

.yc-forgot-email-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.yc-forgot-email-copy small {
    color: var(--yc-fp-muted);
    font-size: 9.5px;
    font-weight: 700;
}

.yc-forgot-email-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 800;
}

.yc-forgot-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    margin-bottom: 20px;
    border: 1px solid var(--yc-fp-border);
    border-radius: 13px;
    background: rgba(148, 163, 184, .055);
    text-align: right;
}

.yc-forgot-info-icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, .10);
    color: var(--yc-fp-accent);
    font-size: 11px;
    font-weight: 900;
}

.yc-forgot-info-box > div {
    display: grid;
    gap: 3px;
}

.yc-forgot-info-box strong {
    font-size: 10.5px;
}

.yc-forgot-info-box span:last-child {
    color: var(--yc-fp-muted);
    font-size: 10px;
    line-height: 1.7;
}

.yc-forgot-primary-link {
    text-decoration: none;
}

.yc-forgot-secondary-link {
    display: inline-block;
    margin-top: 13px;
    color: var(--yc-fp-accent);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.yc-forgot-secondary-link:hover {
    text-decoration: underline;
}

@keyframes ycForgotIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cover common dark-theme selectors while keeping login's own theme intact. */
html[data-theme="dark"] .yc-forgot-page,
html[data-bs-theme="dark"] .yc-forgot-page,
body[data-theme="dark"] .yc-forgot-page,
body.dark .yc-forgot-page,
.dark-theme .yc-forgot-page {
    --yc-fp-accent: #60a5fa;
    --yc-fp-success: #4ade80;
    --yc-fp-border: rgba(148, 163, 184, .20);
    --yc-fp-muted: #94a3b8;
}

html[data-theme="dark"] .yc-forgot-shield,
html[data-bs-theme="dark"] .yc-forgot-shield,
body[data-theme="dark"] .yc-forgot-shield,
body.dark .yc-forgot-shield,
.dark-theme .yc-forgot-shield {
    background: linear-gradient(145deg, rgba(30, 41, 59, .88), rgba(15, 23, 42, .72));
}

html[data-theme="dark"] .yc-forgot-security-list > div,
html[data-bs-theme="dark"] .yc-forgot-security-list > div,
body[data-theme="dark"] .yc-forgot-security-list > div,
body.dark .yc-forgot-security-list > div,
.dark-theme .yc-forgot-security-list > div {
    background: rgba(15, 23, 42, .24);
}

@media (max-width: 820px) {
    .yc-forgot-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .yc-forgot-brand-zone {
        display: none;
    }

    .yc-forgot-form-zone {
        min-height: 560px;
    }
}

@media (max-width: 560px) {
    .yc-forgot-form-zone {
        min-height: auto;
    }

    .yc-forgot-back-link {
        margin-bottom: 22px;
    }

    .yc-forgot-success h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-forgot-success,
    .yc-forgot-back-link {
        animation: none;
        transition: none;
    }
}
