/* Password Reset Modal Styles */
.password-reset-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.password-reset-content {
    background: linear-gradient(135deg, #2a2a4a 0%, #3a3a5a 100%);
    margin: 10vh auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
                0 1px 8px rgba(122, 71, 255, 0.2);
    animation: modalFadeIn 0.4s ease-out;
    border: 1px solid rgba(122, 71, 255, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.password-reset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(122, 71, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.password-reset-header h2 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.6em;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.password-reset-header h2:before {
    content: '🔒';
    margin-right: 10px;
    font-size: 0.9em;
}

.password-reset-close {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.password-reset-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.password-reset-body {
    color: #c0c0c0;
    font-size: 1.05em;
    line-height: 1.6;
}

#forgotPasswordForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#forgotPasswordForm label {
    color: #e0e0e0;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
    font-size: 1em;
}

#forgotPasswordForm input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(122, 71, 255, 0.3);
    background-color: rgba(42, 42, 74, 0.6);
    color: #e0e0e0;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

#forgotPasswordForm input[type="email"]:focus {
    border-color: var(--logbtn-color);
    box-shadow: 0 0 0 3px rgba(122, 71, 255, 0.2);
    outline: none;
}

#forgotPasswordForm input[type="email"]::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

#forgotPasswordForm button {
    background: linear-gradient(to right, var(--logbtn-color), var(--secondary-color));
    color: white;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(122, 71, 255, 0.25);
}

#forgotPasswordForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(122, 71, 255, 0.35);
    background: linear-gradient(to right, #8a57ff, #9747ff);
}

#forgotPasswordForm button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(122, 71, 255, 0.25);
}

#forgotPasswordForm button:before {
    content: '✉️';
    font-size: 0.95em;
}

#forgotPasswordForm button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

#forgotPasswordMessage {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    animation: messageSlideIn 0.3s ease-out;
    display: none;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 500px) {
    .password-reset-content {
        margin: 5vh auto;
        padding: 20px;
        width: 95%;
    }
    
    .password-reset-header h2 {
        font-size: 1.4em;
    }
    
    #forgotPasswordForm input[type="email"],
    #forgotPasswordForm button {
        padding: 12px 14px;
    }
}
