/* csritik-max - forgotPassword.css */

/* dark overlay behind modal */
.fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* show when active */
.fp-overlay.active { display: flex; }

/* modal box - matches form-box style */
.fp-modal {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4),
                inset 0 0 16px rgba(0, 212, 255, 0.2);
    animation: formEntrance 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes formEntrance {
    0%   { opacity: 0; transform: rotateX(20deg) translateY(40px); }
    100% { opacity: 1; transform: rotateX(0deg)  translateY(0); }
}

/* heading - matches h2 style */
.fp-modal h3 {
    color: #00d4ff;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: glow 2s infinite alternate;
    margin: 0;
}

@keyframes glow {
    from { text-shadow: 0 0 5px  rgba(0, 212, 255, 0.5); }
    to   { text-shadow: 0 0 15px rgba(0, 212, 255, 0.8); }
}

/* subtitle text */
.fp-modal p {
    color: rgba(0, 212, 255, 0.7);
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
}

/* input group - matches .input-group style */
.fp-input-group {
    position: relative;
}

.fp-input-group input {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    color: #00d4ff;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    outline: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.fp-input-group input::placeholder {
    color: rgba(0, 212, 255, 0.4);
}

.fp-input-group input:focus {
    border-bottom-color: transparent;
}

/* glow line under input - matches .glow-line */
.fp-glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.5),
        #00d4ff,
        rgba(0, 212, 255, 0.5),
        transparent);
    transition: 0.4s;
}

.fp-input-group input:focus ~ .fp-glow-line {
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

/* submit button - matches .login-btn */
.fp-submit {
    width: 100%;
    padding: 12px 0;
    background: #000;
    border: 1px solid #00d4ff;
    border-radius: 25px;
    color: #00d4ff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
}

/* sweep glow on button hover */
.fp-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.2),
        rgba(0, 212, 255, 0.3),
        rgba(0, 212, 255, 0.2),
        transparent);
    transition: 0.5s;
}

.fp-submit:hover::before { left: 100%; }

.fp-submit:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                inset 0 0 10px rgba(0, 212, 255, 0.3);
    transform: scale(1.03);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.7);
}

.fp-submit:active { transform: scale(0.98); }

/* close button */
.fp-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: rgba(0, 212, 255, 0.6);
    transition: 0.3s;
    line-height: 1;
}

.fp-close:hover {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}

/* toast - matches cyber theme */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 99999;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}