﻿:root {
    --brand-dark: #1e2436;
    --brand-accent: #4f6cf6;
    --brand-accent2: #6d8bff;
    --success-green: #2fb344;
    --danger-red: #dc3545;
}

.fp-modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 45px rgba(30,36,54,.2);
    padding: .5rem;
}

.fp-title {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.15rem;
}

/* ===== STEP INDICATOR ===== */
.fp-steps {
    display: flex;
    align-items: center;
    padding: 0 .5rem;
}

.fp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.fp-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eceef4;
    color: #9aa0b4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    transition: all .3s ease;
}

.fp-step span {
    font-size: .68rem;
    color: #9aa0b4;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.fp-step.active .fp-step-circle {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    color: #fff;
    box-shadow: 0 4px 10px rgba(79,108,246,.35);
}

.fp-step.active span {
    color: var(--brand-dark);
    font-weight: 600;
}

.fp-step.completed .fp-step-circle {
    background: var(--success-green);
    color: #fff;
}

.fp-step-line {
    flex-grow: 1;
    height: 2px;
    background: #eceef4;
    margin: 0 4px;
    margin-bottom: 18px;
    transition: background .3s ease;
}

    .fp-step-line.completed {
        background: var(--success-green);
    }

/* ===== ICON BOX ===== */
.fp-icon-box {
    width: 56px;
    height: 56px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.fp-icon-success {
    background: linear-gradient(135deg, var(--success-green), #57d16b);
}

/* ===== INPUTS ===== */
.input-group-custom .form-control,
.input-group-custom .input-group-text {
    border: 1px solid #e3e6f0;
    padding: .65rem .85rem;
}

.input-group-custom .input-group-text {
    background: #f4f6fb;
    color: #6a7086;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.input-group-custom .form-control {
    border-radius: 0 10px 10px 0;
}

    .input-group-custom .form-control:focus {
        box-shadow: none;
        border-color: var(--brand-accent);
    }

.input-group-custom .toggle-password {
    cursor: pointer;
    background: #f4f6fb;
    border-left: none;
    color: #8a90a3;
}

/* ===== OTP BOXES ===== */
.otp-input-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.otp-box {
    width: 52px !important;
    height: 52px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid #e3e6f0;
    border-radius: 10px !important;
    color: var(--brand-dark);
}

    .otp-box:focus {
        border-color: var(--brand-accent);
        box-shadow: 0 0 0 3px rgba(79,108,246,.12);
    }

.otp-timer {
    font-size: .82rem;
    color: #8a90a3;
}

.fp-resend-link {
    font-size: .85rem;
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: 600;
}

.fp-back-link {
    display: block;
    text-align: center;
    font-size: .83rem;
    color: #8a90a3;
    text-decoration: none;
}

    .fp-back-link:hover {
        color: var(--brand-accent);
    }

/* ===== PASSWORD RULES (reused from reset modal) ===== */
.password-rules {
    background: #f8f9fc;
    border-radius: 12px;
    padding: .85rem .5rem;
    margin-left: 0;
    margin-right: 0;
}

.rule-item {
    display: flex;
    align-items: center;
    font-size: .84rem;
    color: #b0b4c0;
    transition: color .2s ease;
}

    .rule-item .rule-icon {
        color: #d7d9e2;
        margin-right: 6px;
        font-size: .95rem;
        transition: color .2s ease, transform .2s ease;
    }

    .rule-item.valid {
        color: #37414f;
    }

        .rule-item.valid .rule-icon {
            color: var(--success-green);
            transform: scale(1.1);
        }

/* ===== BUTTONS ===== */
.btn-fp-primary {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent2));
    color: #fff;
    font-weight: 600;
    padding: .7rem;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 16px rgba(79,108,246,.35);
    transition: transform .15s ease;
}

    .btn-fp-primary:hover {
        color: #fff;
        transform: translateY(-1px);
    }

    .btn-fp-primary:disabled {
        opacity: .6;
        transform: none;
        box-shadow: none;
    }

/* ===== SUCCESS ICON ===== */
.fp-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success-green), #57d16b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    animation: pop-in .4s ease;
}

@keyframes pop-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .modal-dialog {
        margin: 1rem;
    }

    .otp-box {
        width: 38px !important;
        height: 46px;
        font-size: 1.05rem;
    }

    .otp-input-group {
        gap: 6px;
    }

    .fp-step span {
        font-size: .6rem;
    }
}
