/*
  Forgot Password Flow Styles
*/

.fp-main-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

/* Back Button */
.fp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'PlusJakartaSans-SemiBold', sans-serif;
    font-size: 14px;
    color: #595959;
    text-decoration: none;
    margin-bottom: 176px;
    align-self: flex-start;
      width: 24px;
    height: 24px;
}

.fp-back-btn img {
    width: 100%;
    height: 100%;
}

.fp-back-btn-title {
    font-family: 'Inter_28pt-SemiBold', sans-serif;
    font-size: 16px;
    color: #737373;
}

.fp-back-btn:hover {
    opacity: 0.8;
    transform: translateX(-2px);
}



.fp-title {}

/* Slider Viewport */
.fp-slider-viewport {
    display: grid;
    grid-template-columns: 100%;
    grid-template-areas: "fp-stack";
    position: relative;
    overflow: hidden;
    /* Adding significant padding to allow the proceed button to zoom out without clipping */
    padding: 16px;
    margin: -16px;
    width: calc(100% + 32px);
}

/* Step Animations */
.fp-step {
    grid-area: fp-stack;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(40px);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease, visibility 0s 0.6s;
}

.fp-step.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.1s, opacity 0.5s ease 0.1s, visibility 0s 0s;
}

.fp-step.slide-out-left {
    transform: translateX(-40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.fp-step.slide-out-right {
    transform: translateX(40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* OTP Specific Additions for styling matches */
.fp-otp-container {
    margin-bottom: 24px;
    justify-content: space-between;
    display: flex;
    gap: 12px;
}

.fp-otp-input {
    flex: 1;
    max-width: 96px;
    min-width: 0;
    height: 96px;
    border: 0.3px solid #737373;
    border-radius: 8px;
    text-align: center;
    font-family: 'PlusJakartaSans-Bold', sans-serif;
    font-size: 20px;
    color: #737373;
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

@media (max-width: 750px) {
    .fp-otp-container {
        gap: 8px;
        /* Slightly reduce gap on extremely small screens */
    }

    .fp-otp-input {
        height: 60px;
        /* Prevent it from looking extremely stretched on small phones while maintaining width ratio */
    }
}

.fp-otp-input:focus {
    border-color: #1452CA;
    box-shadow: 0 0 0 4px rgba(20, 82, 202, 0.1);
    outline: none;
}

.fp-otp-input::placeholder {
    color: #737373;
    font-weight: 500;
}

.fp-resend-text {
    margin-top: 24px;
    text-align: center;
    font-family: 'PlusJakartaSans-Regular', sans-serif;
    font-size: 14px;
    color: #475467;
}

#fp-resend-btn {
    background: none;
    border: none;
    padding: 0;
    color: #1452CA;
    font-family: 'PlusJakartaSans-SemiBold', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

#fp-resend-btn:hover {
    text-decoration: underline;
}

/* Proceed Button Fixes */
.fp-proceed-btn {
    margin-top: 16px;
    width: 100%;
    /* Ensure it spans the form container */
    box-sizing: border-box;
}


@media (max-width: 899px) {
    .fp-back-btn {
    display: none;
}

.fp-main-container {
    padding-top: 0px;
}
}