/* ============================================
   FORGOT PASSWORD & RESET PASSWORD STYLES
   forgot_password.css
   ============================================ */

/* -----------------------------------------------
   BACK LINK (top of form)
----------------------------------------------- */
.fp-back-link {
    margin-bottom: 24px;
}

.fp-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.fp-back-link a:hover {
    color: #ffffff;
}

/* -----------------------------------------------
   LOCK / SHIELD ICON
----------------------------------------------- */
.fp-icon {
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 18px;
}

/* -----------------------------------------------
   SUBTITLE
----------------------------------------------- */
.fp-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* -----------------------------------------------
   ALERT BOXES (success / error)
----------------------------------------------- */
.fp-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.55;
    margin-bottom: 20px;
}

.fp-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.fp-alert-success {
    background: rgba(39, 174, 96, 0.18);
    border: 1.5px solid rgba(39, 174, 96, 0.45);
    color: #d4f5e4;
}

.fp-alert-error {
    background: rgba(229, 62, 62, 0.18);
    border: 1.5px solid rgba(229, 62, 62, 0.45);
    color: #ffd5d5;
}

/* -----------------------------------------------
   SUBMIT BUTTON
----------------------------------------------- */
.fp-submit-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: #6c63ff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-family: inherit;
    letter-spacing: 0.2px;
}

.fp-submit-btn:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fp-submit-btn:active {
    transform: translateY(0);
}

/* -----------------------------------------------
   SUCCESS STATE ACTIONS
----------------------------------------------- */
.fp-success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.fp-back-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: #6c63ff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.15s;
}

.fp-back-btn:hover {
    background: #f0f0ff;
    transform: translateY(-2px);
}

.fp-resend-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.fp-resend-note a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

/* -----------------------------------------------
   STATE CARDS (invalid / expired / success)
----------------------------------------------- */
.fp-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0;
    gap: 14px;
}

.fp-state-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.fp-state-card p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.65;
    max-width: 340px;
    margin: 0;
}

.fp-state-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.fp-state-success {
    background: rgba(39, 174, 96, 0.25);
    border: 2px solid rgba(39, 174, 96, 0.55);
    color: #6effa8;
}

.fp-state-error {
    background: rgba(229, 62, 62, 0.25);
    border: 2px solid rgba(229, 62, 62, 0.55);
    color: #ff9090;
}

.fp-state-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid rgba(255, 193, 7, 0.5);
    color: #ffe08a;
}

.fp-back-link-btn {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.fp-back-link-btn:hover {
    color: white;
}

/* -----------------------------------------------
   PASSWORD STRENGTH BAR
----------------------------------------------- */
.fp-strength-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 4px;
}

.fp-strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.fp-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: #ff4d4d;
    transition: width 0.3s ease, background 0.3s ease;
}

.fp-strength-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    min-width: 72px;
    text-align: right;
}

/* -----------------------------------------------
   PASSWORD REQUIREMENTS CHECKLIST
----------------------------------------------- */
.fp-requirements {
    list-style: none;
    padding: 0;
    margin: 8px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fp-requirements li {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    padding-left: 22px;
    position: relative;
    transition: color 0.2s;
}

.fp-requirements li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    transition: color 0.2s, content 0.2s;
}

.fp-requirements li.passed {
    color: rgba(255, 255, 255, 0.9);
}

.fp-requirements li.passed::before {
    content: '✓';
    color: #6effa8;
}

/* -----------------------------------------------
   UPDATE: login.php "Forgot Password?" link fix
   (overrides the existing .forgot style to be
   a proper clickable link color)
----------------------------------------------- */
.forgot {
    display: block;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 6px;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.forgot:hover {
    color: #ffffff !important;
    text-decoration: underline;
}
