﻿/* =========================================================
   RIZTEL TRUCKING SERVICES
   FORGOT PASSWORD - CSS
   Matches the existing login page theme
   ========================================================= */

/* ── Page wrapper ─────────────────────────────────────────── */
.fp-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(110deg, var(--login-background, #071a31) 0%, var(--login-primary, #0b3162) 52%, var(--login-secondary, #206aca) 100%);
    padding: 20px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.fp-page {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ── Back link ────────────────────────────────────────────── */
.fp-back-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .04em;
    transition: color .2s;
    align-self: flex-start;
}
.fp-back-link:hover { color: #fff; }

/* ── Brand ────────────────────────────────────────────────── */
.fp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 4px;
}
.fp-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.fp-brand strong {
    display: block;
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.fp-brand small {
    display: block;
    font-size: .56rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Card ─────────────────────────────────────────────────── */
.fp-card {
    width: 100%;
    background: var(--login-card-background, #fff);
    border-radius: 12px;
    box-shadow: 0 24px 56px rgba(0,0,0,.26);
    padding: 36px 40px 32px;
    border: 1px solid rgba(255,255,255,.15);
}

/* ── Progress steps ───────────────────────────────────────── */
.fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
}
.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.fp-step span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    border: 2px solid #d1d5db;
    background: #f9fafb;
    color: #9ca3af;
    transition: all .3s ease;
}
.fp-step label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: #9ca3af;
    text-transform: uppercase;
    transition: color .3s;
    white-space: nowrap;
}
.fp-step.active span {
    background: var(--login-primary, #0b3162);
    border-color: var(--login-primary, #0b3162);
    color: #fff;
}
.fp-step.active label { color: var(--login-primary, #0b3162); }
.fp-step.done span {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.fp-step.done span::before { content: "✓"; }
.fp-step.done span > * { display: none; }
.fp-step.done label { color: #16a34a; }

.fp-step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    min-width: 30px;
    max-width: 60px;
    margin-bottom: 18px;
}

/* ── Pane icon ────────────────────────────────────────────── */
.fp-pane-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f1fa;
    color: var(--login-primary, #0b3162);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 18px;
}
.fp-pane-icon.success {
    background: #d1fae5;
    color: #059669;
}
.fp-pane-icon.large { width: 72px; height: 72px; font-size: 2.2rem; }

/* ── Typography ───────────────────────────────────────────── */
.fp-title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--login-heading, #102a4b);
    text-align: center;
}
.fp-subtitle {
    margin: 0 0 24px;
    color: #6b7280;
    font-size: .88rem;
    line-height: 1.65;
    text-align: center;
}

/* ── Alert ────────────────────────────────────────────────── */
.fp-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 7px;
    font-size: .81rem;
    margin-bottom: 18px;
}
.fp-alert-error {
    background: #fff0f1;
    color: #991b1b;
    border-left: 3px solid #dc2626;
}
.fp-alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}

/* ── Form field ───────────────────────────────────────────── */
.fp-field {
    margin-bottom: 18px;
}
.fp-field label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.fp-input-wrap {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fbfcfd;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
}
.fp-input-wrap:focus-within {
    border-color: var(--login-secondary, #206aca);
    box-shadow: 0 0 0 4px rgba(32,106,202,.11);
    background: #fff;
}
.fp-input-wrap > i {
    width: 44px;
    text-align: center;
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}
.fp-input-wrap input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 8px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .88rem;
    color: #111827;
}
.fp-input-wrap input::placeholder { color: #a7b0bd; }
.fp-eye-btn {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
}
.fp-eye-btn:hover { color: var(--login-secondary, #206aca); }

/* ── OTP boxes ────────────────────────────────────────────── */
.fp-otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.fp-otp-box {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: var(--login-primary, #0b3162);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.fp-otp-box:focus {
    border-color: var(--login-secondary, #206aca);
    box-shadow: 0 0 0 4px rgba(32,106,202,.12);
    background: #fff;
}

/* ── Timer ────────────────────────────────────────────────── */
.fp-timer {
    text-align: center;
    font-size: .75rem;
    color: #6b7280;
    margin-bottom: 18px;
}
.fp-timer strong { color: var(--login-primary, #0b3162); }
.fp-expired { color: #dc2626; font-weight: 700; }

/* ── Button ───────────────────────────────────────────────── */
.fp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 7px;
    background: var(--login-primary, #0b3162);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .2s;
    box-shadow: 0 8px 18px rgba(11,49,98,.22);
    margin-top: 4px;
}
.fp-btn:hover:not(:disabled) {
    background: var(--login-secondary, #206aca);
    transform: translateY(-1px);
}
.fp-btn:disabled { opacity: .7; cursor: wait; }
.fp-btn-text { display: inline-flex; align-items: center; }
.fp-btn-spinner { display: flex; align-items: center; gap: 8px; font-size: .82rem; }

/* ── Spinner ──────────────────────────────────────────────── */
.fp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fp-spin .7s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* ── Resend row ───────────────────────────────────────────── */
.fp-resend-row {
    text-align: center;
    margin-top: 16px;
    font-size: .8rem;
    color: #6b7280;
}
.fp-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--login-secondary, #206aca);
    font-weight: 700;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
}
.fp-link-btn:disabled { color: #9ca3af; cursor: default; text-decoration: none; }
.fp-link-btn.small { font-size: .76rem; }
.fp-muted { color: #9ca3af; margin-left: 4px; }

/* ── Footer note ──────────────────────────────────────────── */
.fp-foot-note {
    text-align: center;
    margin-top: 18px;
    font-size: .78rem;
    color: #6b7280;
}
.fp-foot-note a, .fp-foot-note .fp-link-btn {
    color: var(--login-secondary, #206aca);
    font-weight: 700;
}

/* ── Password strength ────────────────────────────────────── */
.fp-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.fp-strength-bar {
    height: 5px;
    flex: 1;
    border-radius: 10px;
    background: #e5e7eb;
    transition: background .3s, width .3s;
}
.fp-strength-bar.bar-1 { background: linear-gradient(90deg, #ef4444 20%, #e5e7eb 20%); }
.fp-strength-bar.bar-2 { background: linear-gradient(90deg, #f97316 40%, #e5e7eb 40%); }
.fp-strength-bar.bar-3 { background: linear-gradient(90deg, #eab308 60%, #e5e7eb 60%); }
.fp-strength-bar.bar-4 { background: linear-gradient(90deg, #22c55e 80%, #e5e7eb 80%); }
.fp-strength-bar.bar-5 { background: #22c55e; }
#strengthLabel {
    font-size: .72rem;
    font-weight: 700;
    min-width: 70px;
    color: #6b7280;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 520px) {
    .fp-card { padding: 26px 20px 24px; }
    .fp-otp-box { width: 42px; height: 50px; font-size: 1.3rem; }
    .fp-otp-row { gap: 7px; }
    .fp-title { font-size: 1.35rem; }
    .fp-step-line { min-width: 18px; }
}