/* Forgot password flow pages */
:root {
    --fp-page-bg: #dce6f1;
    --fp-card-bg: #f8f8f8;
    --fp-card-border: #e5e5e5;
    --fp-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    --fp-text-muted: #a8a7a7;
    --fp-text-main: #111111;
    --fp-input-border: #bababa;
    --fp-maroon: #8b0000;
    --fp-maroon-dark: #6f0000;
}

body.forgot-page {
    background: var(--fp-page-bg);
}

.fp-main {
    min-height: calc(100vh - 70px);
    background:
        linear-gradient(rgba(224, 233, 242, 0.86), rgba(224, 233, 242, 0.86)),
        url('../assets/PUP.jpg') center / cover no-repeat;
    padding: 52px 20px 64px;
}

.fp-stage {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.fp-card {
    width: min(730px, 100%);
    background: var(--fp-card-bg);
    border: 1px solid var(--fp-card-border);
    border-radius: 20px;
    box-shadow: var(--fp-card-shadow);
    padding: 14px 30px 30px;
    animation: fp-rise 440ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fp-rise {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fp-brand {
    width: 172px;
    max-width: 60%;
    margin-bottom: 8px;
}

.fp-title {
    margin: 0;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--fp-text-main);
    letter-spacing: -0.02em;
}

.fp-subtitle {
    margin: 12px 0 26px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--fp-text-muted);
}

.fp-form-group {
    margin-bottom: 16px;
}

.fp-label {
    display: block;
    margin-bottom: 7px;
    font-family: 'Lato', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #303030;
}

.fp-input-wrap {
    position: relative;
}

.fp-input {
    width: 100%;
    height: 53px;
    border-radius: 10px;
    border: 1px solid var(--fp-input-border);
    background: #f8f8f8;
    padding: 0 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #202020;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-input::placeholder {
    color: #b0b0b0;
}

.fp-input:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}

.fp-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #444;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fp-primary-btn {
    width: 100%;
    min-height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--fp-maroon);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fp-primary-btn:hover {
    background: var(--fp-maroon-dark);
    transform: translateY(-1px);
}

.fp-primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.fp-inline {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.fp-inline-muted {
    color: #333;
    font-weight: 400;
}

.fp-chip-btn {
    border: none;
    border-radius: 999px;
    background: var(--fp-maroon);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 3px 10px;
    cursor: pointer;
}

.fp-back-link {
    margin-top: 10px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.fp-back-link:hover {
    text-decoration: underline;
}

.fp-back-icon {
    width: 14px;
    height: 14px;
}

.fp-icon-wrap {
    width: 108px;
    height: 108px;
    margin: 20px auto 0;
    display: grid;
    place-items: center;
    color: #0d0d0d;
}

.fp-success-btn {
    display: block;
    width: min(200px, 100%);
    margin: 30px auto 0;
    min-height: 53px;
    border-radius: 20px;
    border: none;
    background: var(--fp-maroon);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.fp-alert {
    margin: 10px 0 16px;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    display: none;
}

.fp-alert.show {
    display: block;
}

.fp-alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.fp-alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.fp-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 13, 13, 0.38);
    z-index: 2000;
}

.fp-modal.open {
    display: flex;
}

.fp-modal-panel {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    padding: 28px 26px 24px;
    text-align: center;
    animation: fp-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fp-modal-title {
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--fp-text-main);
}

.fp-modal-body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--fp-text-muted);
}

.fp-modal-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.fp-modal-btn {
    border: none;
    border-radius: 999px;
    background: var(--fp-maroon);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 24px;
    cursor: pointer;
}

.fp-modal-btn:hover {
    background: var(--fp-maroon-dark);
}

.fp-card.fp-forgot {
    min-height: 444px;
}

.fp-card.fp-check-email {
    min-height: 444px;
}

.fp-card.fp-reset {
    min-height: 476px;
}

.fp-card.fp-success {
    min-height: 322px;
}

@media (max-width: 768px) {
    .fp-main {
        padding: 30px 12px 40px;
    }

    .fp-card {
        padding: 18px 16px 22px;
        border-radius: 14px;
    }

    .fp-title {
        font-size: 30px;
    }

    .fp-subtitle {
        font-size: 14px;
    }

    .fp-success-btn {
        min-height: 46px;
        font-size: 20px;
    }
}
