/**
 * Password recovery — complements modern-login (floating fields reused).
 * One visible step at a time; Masar navy/orange.
 */
:root {
    --pr-navy: #15314b;
    --pr-orange: #ff9900;
    --pr-orange-dark: #e68600;
    --pr-muted: #64748b;
    --pr-bg-soft: #f5f7fb;
}

.pr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--pr-orange);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    min-height: 44px;
    transition: color 0.2s ease;
}
.pr-back-link:hover {
    color: var(--pr-orange-dark);
}

/* خطوة واحدة ظاهرة فقط */
.pr-step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--pr-bg-soft);
    border: 1px solid #e8eef5;
    margin-bottom: 1.75rem;
}

.pr-form-stack {
    margin-top: 0.25rem;
}

/* مسافة إضافية بين الشارة والحقل حتى لا يتراكب الـ floating label */
.pr-step-badge + .pr-feedback:not(.hidden) {
    margin-top: 0.25rem;
}
.pr-step-badge + .pr-feedback.hidden + .pr-form-stack,
.pr-step-badge + .pr-form-stack {
    margin-top: 0.5rem;
}
.pr-panel .input-group {
    margin-top: 0.35rem;
}
.pr-panel .input-group .floating-label {
    z-index: 2;
}
.pr-step-badge__num {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-navy);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.pr-step-badge__label {
    font-weight: 700;
    color: var(--pr-navy);
    font-size: 0.9rem;
}
.pr-step-badge__of {
    color: var(--pr-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* إخفاء اللوحات غير النشطة بشكل مضمون */
.pr-panel[hidden],
.pr-panel.hidden {
    display: none !important;
}

.pr-feedback {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: right;
}
.pr-feedback.is-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.pr-feedback.is-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.floating-input.is-invalid {
    border-color: #ef4444 !important;
}

.pr-btn-spinner {
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pr-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes pr-spin {
    to { transform: rotate(360deg); }
}

.pr-notes {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: var(--pr-bg-soft);
    border: 1px solid #e8eef5;
    text-align: right;
}
.pr-notes__title {
    margin: 0 0 0.65rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--pr-navy);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.pr-notes__title i {
    color: var(--pr-orange);
}
.pr-notes__list {
    margin: 0;
    padding-right: 1.1rem;
    color: var(--pr-muted);
    font-size: 0.82rem;
    line-height: 1.75;
}
.pr-notes__list li + li {
    margin-top: 0.35rem;
}

.pr-toast {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 80;
}
@media (min-width: 640px) {
    .pr-toast {
        right: auto;
        width: 26rem;
    }
}
.pr-toast__card {
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(15, 42, 84, 0.18);
    padding: 0.9rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.pr-toast__icon {
    color: #16a34a;
    font-size: 1.25rem;
}
.pr-toast__title {
    font-weight: 800;
    color: var(--pr-navy);
    font-size: 0.9rem;
}
.pr-toast__msg {
    color: var(--pr-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
    .pr-btn-spinner {
        animation: none;
    }
}
